• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Need help with passing data between pages through h:commandButton

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">
<h:outputLabel value="requestId" styleClass="outputLabel"/>
<h:inputText value="#{dataRequestAction.requestId}" label="request Id" styleClass="inputText"/>
<h:commandButton action="#{dataProcessAction.process}" value="Process" styleClass="button">

Everyone is a villain in someone else's story. Especially this devious tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic