This content has been marked as final.
Show 5 replies
-
1. Re: get file
nbelaevski Mar 8, 2009 10:57 AM (in response to judovana)Hello,
1. It's not a redirect, but forward. How do you call this bean method: by method or by some other means?
2. I do not see FacesContext#responseComplete() call in the code posted, do you have it somewhere? -
2. Re: get file
nbelaevski Mar 8, 2009 10:58 AM (in response to judovana)Got typo in my post, fixed:
"nbelaevski" wrote:
Hello,
1. It's not a redirect, but forward. How do you call this bean method: by action or by some other means?
2. I do not see FacesContext#responseComplete() call in the code posted, do you have it somewhere? -
3. Re: get file
judovana Mar 8, 2009 4:12 PM (in response to judovana)"nbelaevski" wrote:
Got typo in my post, fixed:
Hello,
1. It's not a redirect, but forward. How do you call this bean method: by action or by some other means?
2. I do not see FacesContext#responseComplete() call in the code posted, do you have it somewhere?
1)In jsf-page i have button in the form and sending this form.<h:commandButton id="downlaodTrip" action="#{DownlaodBean.register_action}" value="#{msgs.form_download_trip}" />
then in bean@TransactionAttribute(javax.ejb.TransactionAttributeType.REQUIRES_NEW) public String register_action() { try { FacesContext facesContext = FacesContext.getCurrentInstance(); ExternalContext ec = facesContext.getExternalContext(); ....
so by action.
but..:)
2)FacesContext#responseComplete() i have NOWHERE. It should be somewhere O:-) -
4. Re: get file
nbelaevski Mar 9, 2009 2:51 AM (in response to judovana)Please try to add FacesContext#responseComplete() just before dispatching to "../download" context.
-