Hello,
I have to execute an action against a text field.
My page contains the following:
<s:decorate id="locField" template="layout/edit.xhtml">
<ui:define name="label">Loc</ui:define>
<h:inputText id="aLoc" value="#{alHome.instance.alLoc}">
<a:support event="onblur" reRender="locField" bypassUpdates="true" ajaxSingle="true"/>
</h:inputText>
<a:commandButton value="Search" image="img/search.GIF" id="searchImg" action="#{locSearch.search}" >
<a:actionparam name="aLoc" value="#{alHome.instance.alLoc}" assignTo="#{locSearch.searchString}"/>
</a:commandButton>
</s:decorate>The problem I have is that in my locSearch bean the value assigned to searchString is null. If I put a literal as a value of the action param
<a:actionparam name="aLoc" value="1234" assignTo="#{locSearch.searchString}"/> the value of searchString is set properly.
Could someone please tell me what am I doing wrong and how do I pass the value of the text field aLoc to my action bean.
Thank you.