-
1. Re: a4j:status and Loading message
ralf.mueller Jan 23, 2008 3:33 AM (in response to vedgunjan)Here is an working example:
<h:form id="form" enctype="multipart/form-data">
<a4j:status id="ajaxStatusId" onstart="Richfaces.showModalPanel('form:ajaxLoadingModalBox',{width:450, top:200})" onstop="Richfaces.hideModalPanel('form:ajaxLoadingModalBox')" />
.....
This is the modal panel:
<rich:modalPanel id="ajaxLoadingModalBox" minHeight="125" minWidth="250"
height="75" width="250" zindex="2000" style="background-color: #FFFFFF; width: 100%; border-width: 1px; border-color: black; border-style: solid; text-align: center;">
<f:facet name="header">
<h:outputText value="#{msg.titel_globalWait}"/>
</f:facet>
<h:panelGrid columns="1" style="width: 100%; border-width: 0px; text-align: center;">
<h:outputText value="#{msg.global_pleaseWait}" style="font-weight: bold;"/>
<h:graphicImage value="/app/images/progressbar.gif"/>
</h:panelGrid>
</rich:modalPanel>
and this is the component:
<a4j:commandButton styleClass="standardButton"
action="#{chassis.save}"
value="#{msg.global_save}"
status="ajaxStatusId" ajaxSingle="false"
immediate="false" /> -
2. Re: a4j:status and Loading message
holstead Jan 30, 2008 2:47 PM (in response to vedgunjan)I just implemented this technique and its working, however the modalPanel only shows for the first request for each component and not subsequent requests. Any ideas why?
eg: I have a selectOneMenu that onchange populates a datatable. On the first change it shows/hides the modal. When selecting another value the modal is absent.
Thanks. -
3. Re: a4j:status and Loading message
holstead Jan 30, 2008 5:49 PM (in response to vedgunjan)I replaced the richfaces.showModalPanel and richfaces.hidModalPanel calls with my javascript functions so I could see whats getting called. I'm noticing AFTER the first request from each component it only triggers the onstop function. hmm?
-
4. Re: a4j:status and Loading message
holstead Jan 30, 2008 6:18 PM (in response to vedgunjan)found someone already submitted bug:
http://jira.jboss.org/jira/browse/RF-1990 -
5. Re: a4j:status and Loading message
holstead Jan 31, 2008 10:10 AM (in response to vedgunjan)Issue not showing 3.1.4 GA, yay.