I want to pass user input to another page as a parameter. Here is my code:
<h:form> <h:inputText value="#{indexBean.word}"/> <h:commandLink value="Ara" action="word.xhtml"> <f:param value="#{indexBean.word}" name="word"/> </h:commandLink> </h:form>
Well, that doesn't work. I can read the value of the input text in my bean support, but I can not send it to word.xhtml.
Here is another approach of mine:
<h:form> <h:inputText binding="#{indexBean.textInput}"/> <h:commandLink value="Ara" action="word.xhtml"> <f:param value="#{indexBean.textInput.value}" name="word"/> </h:commandLink> </h:form>
This also does not work.
So what am I doing wrong?
source share