-
1. Re: RichFaces a4j:status problem in richfaces 4.2.2
healeyb Jul 18, 2012 6:03 AM (in response to pdhung3012)I ended up doing it like this:
<h:outputScript name="jquery.js"/>
<h:form prependId="false">
<h:graphicImage id="ajaxBusy" style="visibility: hidden" .../>
a4j:status onstart="jQuery('#ajaxBusy').css('visibility','visible')"
onstop="jQuery('#ajaxBusy').css('visibility','hidden')"
onerror="jQuery('#ajaxBusy').css('visibility','hidden')"/>
Note that I found visibility: hidden better than display: none because the former reserves space in the DOM and doesn't
move other elements about as can happen with display: none.
NOTE: for this to work, you're going to need to use a4j:command...or h:command... with a child a4j:ajax tag (latter not
tested but ought to work).
Regards,
Brendan.
-
2. Re: RichFaces a4j:status problem in richfaces 4.2.2
pdhung3012 Jul 18, 2012 5:25 AM (in response to healeyb)Thank you for your help .
Finally I found my mistake.
this a4j:support tag works only for <a4j:commandButton>, commandLink... not h:command
-
3. Re: RichFaces a4j:status problem in richfaces 4.2.2
healeyb Jul 18, 2012 6:01 AM (in response to pdhung3012)Ah RF3, not RF4. Can't actually remember why I ended up using onstart rather than facets, presumably the
only way I could get it to work. Glad you've solved it anyway.
-
4. Re: RichFaces a4j:status problem in richfaces 4.2.2
renyoumad Nov 5, 2012 4:37 AM (in response to pdhung3012)I have a project. The status can't work when i add a h:commandLink in page, removed it, all is ok.