0

I am trying to trigger a p:fileDownload using PrimeFaces from a command button in a data table.

It is working with Ajax="false", but I need to ensure page validation is bypassed. I have tried setting immediate="true" on the command button but it doesn't work.

Any advice appreciated.

Should immediate="true" work in this instance?

Eonasdan
  • 7,563
  • 8
  • 55
  • 82
smackenzie
  • 2,880
  • 7
  • 46
  • 99

1 Answers1

0

The issue was actually because my data table was not writing the selected value to the bean, because Immediate was set to true. So I was trying to download a null....I am now using an Ajax row select listener to write the selected object to the bean, so it is working now....

Thanks

I

smackenzie
  • 2,880
  • 7
  • 46
  • 99