Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

download a pdf in spring

Abhi Singh
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<view-state id="downloadForm" view="externalRedirect:/download">
<on-entry >
<evaluate expression="clientService.getClientConsentForm(flowRequestContext.externalContext)" />
<transition to="finish"/>

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" />

In even times of call I am not getting goToState. Most probably because when I get the form the page is not rendered.
Can anyone help me to find out the exact issue behind this.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic