-
1. Re: RF + JasperReports
nbelaevski May 17, 2009 4:30 PM (in response to elf)Hello,
AJAX requests are invisible to end-user, so that's the reason why no dialog appears. Also please take a look to recently created issue: https://jira.jboss.org/jira/browse/RF-7019 -
2. Re: RF + JasperReports
elf May 18, 2009 5:54 AM (in response to elf)In this case is the refreshing of whole page the good solution ?
May be it will be better to open new clear page and from there propose to download file ? In case of yes coluld you please drop me a piece of code how I can do it ? Click on ajax button, open new page and call action from new page ?
Or may be there is another good solution for this ? -
3. Re: RF + JasperReports
nbelaevski May 18, 2009 6:13 AM (in response to elf)Use h:commandButton to initiate download request or use a4j:commandButton and redirect to the file (e.g. redirect to servlet that will output the file)
-
4. Re: RF + JasperReports
elf May 18, 2009 5:38 PM (in response to elf)nbelaevski, thank you for help.
I think the best solution for me will be to open new page by clicking on the ajax button and then propose user to download file. I want existing page stay as is.
Please drop me the piece of code how I can open new page by clicking on ajax button and fire action from this new page.
Thanks in advance. -
5. Re: RF + JasperReports
nbelaevski May 18, 2009 6:26 PM (in response to elf)How about using rich:modalPanel component instead of creating new page?
-
6. Re: RF + JasperReports
elf May 19, 2009 12:20 AM (in response to elf)My ajax button is already on modalPanel (I wrote in first post).
If it is possible to download file from modalPanel, so may be there is mistake in my code above ?
If it is not possible to download file using ajax button on modalPanel, I would prefer to open new page and download file from there.
Thank you. -
7. Re: RF + JasperReports
nbelaevski May 19, 2009 6:04 AM (in response to elf)Use h:commandButton and "target" attribute to open new page.
-
8. Re: RF + JasperReports
elf May 24, 2009 10:46 AM (in response to elf)nbelaevski, please post the piece of code. I don't understand how I can do that.
Thanks in advance. -
9. Re: RF + JasperReports
nbelaevski May 25, 2009 6:52 AM (in response to elf)<h:commandButton target="_blank">...</h:commandButton>
will open new popup window as a result of button action execution. -
10. Re: RF + JasperReports
elf Jun 1, 2009 12:46 PM (in response to elf)nbelaevski, I can not find attribute TARGET in TLD.
Could you please point me where I can find it ?
P.S. I have been trying to open new page using javax.faces.component.html.HtmlCommandButtom. -
11. Re: RF + JasperReports
nbelaevski Jun 1, 2009 4:28 PM (in response to elf)You are right, and I was wrong - very sorry for that. There's no such supported attribute at h:commandButton, only h:commandLink supports "target".