Reputation: 10288
I've created an overlay that will popup whenever someone wants to upload a file to the system. The Gui looks like this (when the overlay is up)
I have two problems with this:
The implementation looks something like this:
<h:panelgroup layout="block" styleClass="overlayClass">
<rich:fileUpload styleClass="uploadStyleClass"... />
<a4j:support event="onclick" action="#{mrBean.switchOverlayState}" reRender="..."/>
</h:panelGroup>
The CSS:
.overlayClass {
Opacity: 0.5;
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
background: #000;
}
.uploadStyleClass {
opacity: 1.0;
...
}
Thanks for the help!
Upvotes: 2
Views: 2898