This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need help with passing data between pages through h:commandButton

Josh Yuan
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got a page with h:commandButton button, and when clicking on this button, page navigation to another page, but some data on this page like requestId, etc. need to be passed to the next page, what would be the general way to pass the data to next page through h:commandButton ? I have tried f:setPropertyActionListener to assign data to the target, but it doesn't seem to be working. Thanks for help in adavnce. The code example for this is copied below:

<h:panelGrid columns="2">
<h:panelGrid columns="1">
<hutputLabel value="requestId" styleClass="outputLabel"/>
<h:inputText value="#{dataRequestAction.requestId}" label="request Id" styleClass="inputText"/>
<h:commandButton action="#{dataProcessAction.process}" value="Process" styleClass="button">

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic