I have a p:inputTextcomponent and a h:linkthat navigate to a different view:
<p:inputText id="searchValue" value="#{bean.searchValue}">
<p:ajax event="keyup" update="search" />
</p:inputText>
<h:link id="search" value="search" outcome="resSearch">
<f:param name="searchValue" value="#{bean.searchValue}" />
</h:link>
The resSearchpage use the searchValueparameter and executes a search based on it, after which it presents the result:
<f:metadata>
<f:viewParam name="searchValue" value="#{searchBean.searchValue}" />
<f:event type="preRenderView" listener="#{searchBean.init}" />
</f:metadata>
I'd rather not use ajax to get the value of the inputText component. Is it possible to get the value from the inputText directly (without using bean properties) and set it as the value of the param?