• 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

Redirect after download

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<view-state id="downloadForm" view="externalRedirect:/download">
<on-entry >
<evaluate expression="clientService.getClientConsentForm(flowRequestContext.externalContext)" />
</on-entry>
<transition to="finish"/>
</view-state>

I am calling this function from a drop down but i am getting the form in alternate times.
I am using the given below function for the download

<rich:menuItem action="menuRedirect" value="#{messages.client_consent_form_label}">
<f:param name="redirectTo" value="client?goToState=downloadForm" />
</rich:menuItem>

In even times of call I am not getting goToState. Most probably because when I get the form the page is not rendered because the flow ends.
Can anyone help me to find out the exact issue behind this.
 
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Isn't this topic only a copy of this?
https://coderanch.com/t/521845/JSF/java/download-pdf-spring

I read the old topic before but did not understand your question there and I do not think it is wise to just post the same topic twice if the first one was so incoherent or otherwise flawed or strange that no one offered a response.

I recommend that you at least use code tags when you post your code and rephrase your question so that it gives more information of your situation and what actually is not working.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic