• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
chen young
Ranch Hand
Posts: 197
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 426
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
chen young
Ranch Hand
Posts: 197
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes it's because of <p:fileDownload>
while working with this tag you have to set ajax=false
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic