I am using Spring beans and PrimeFaces and I want to change the value of the property in one of my component classes to be the contents of an input text field from the .xhmtl page.
So I want to find out how to pass a parameter inside the method called from the input text field, or how to pass input text and call the controller.updateMessage("STRING-PARAM")
. Then I will update the value on the view when I click a button
Thank you.
<h3>Floating Label</h3>
<span class="ui-float-label">
<p:inputText id="float-input" value="#{controller.updateMessage("STRING-PARAM")}" />
<p:outputLabel for="@previous" value="Username" />
</span>