• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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


 
Ranch Hand
Posts: 426
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic