aspose file tools*
The moose likes JSF and the fly likes Animate image not working via <p:commandButton type=”submit” Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Animate image not working via <p:commandButton type=”submit”" Watch "Animate image not working via <p:commandButton type=”submit”" New topic
Author

Animate image not working via <p:commandButton type=”submit”

chen young
Ranch Hand

Joined: Sep 09, 2005
Posts: 197
Hi,

Here is the scenario:

I have the following command button in gen.xhtml file:


The idea is to lock the screen until the process is done.
While the screen is lock a dialog will appear with an animate image.

The dialog in the main.xhtml file:


The problem:
Apparently the image is animated only if the command button type is “button” which is not fit to this case.

Is there any workaround here ?

Thanks


Mark Reyes
Ranch Hand

Joined: Jul 09, 2007
Posts: 426
Not sure about this case as I dont have a working JSF workspace right now but please check this



You have set the ajax option to false, which means that you are doing a synchronous post attempt which would submit
all of your data and cause a browser refresh as a whole.


Sean Clark ---> I love this place!!!
Me ------> I definitely love this place!!!
chen young
Ranch Hand

Joined: Sep 09, 2005
Posts: 197
yes it's because of <p:fileDownload>
while working with this tag you have to set ajax=false
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Animate image not working via <p:commandButton type=”submit”