0 Replies Latest reply on Jun 22, 2009 12:11 PM by Y E

    Help with actionparam

    Y E Newbie

      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"/>
          <a:commandButton value="Search" image="img/search.GIF" id="searchImg" action="#{locSearch.search}" >
               <a:actionparam name="aLoc" value="#{alHome.instance.alLoc}"   assignTo="#{locSearch.searchString}"/>         

      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.