jsf 2 - How does JSF send form component values to another page? -


i'm new jsf, i'm trying understand standard way pages send parameters between each other.

i have 1 page form elements:

form.xhtml:

<h:form> <p:selectmanybutton name="numbers" id="lstnumbers" >     <f:selectitem itemvalue="1" itemlabel="1"></f:selectitem>     <f:selectitem itemvalue="2" itemlabel="2"></f:selectitem>     <f:selectitem itemvalue="3" itemlabel="3"></f:selectitem> </p:selectmanybutton>  <br /><br /> <p:selectmanybutton name="letters" id="lstletters" >     <f:selectitem itemvalue="a" itemlabel="a"></f:selectitem>     <f:selectitem itemvalue="b" itemlabel="b"></f:selectitem>     <f:selectitem itemvalue="c" itemlabel="c"></f:selectitem> </p:selectmanybutton>  <p:commandbutton value="go" action="results"> </p:commandbutton> 

and results page want items selected form.

results.xhtml:

<h:body>  <br /><br /> param.numbers: "#{ param.numbers }" <br /><br /> param.letters: "#{ param.letters }"  </h:body> 

what missing cannot form.xhtml send selected items results.xhtml parameters (either or post)?

i can work flowscoped bean, seems overkill simple task. somehow think i've got wrong approach altogether. in advance.


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -