*
The moose likes JSF and the fly likes Need help with passing data between pages through h:commandButton Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Need help with passing data between pages through h:commandButton" Watch "Need help with passing data between pages through h:commandButton" New topic
Author

Need help with passing data between pages through h:commandButton

Josh Yuan
Greenhorn

Joined: Mar 03, 2011
Posts: 2
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:panelGrid>
<h:commandButton action="#{dataProcessAction.process}" value="Process" styleClass="button">
</h:commandButton>
</h:panelGrid>

 
Don't get me started about those stupid light bulbs.
 
subject: Need help with passing data between pages through h:commandButton
 
Similar Threads
selectManyCheckbox
horizontal alignment
On a button click need to load a select one menu with required="true" to some components
how to skip validation phase only
values in one form dissapearing when editing another