1 Reply Latest reply on Aug 24, 2010 2:28 AM by Andreas Hoehmann

    How Do I Pass <h:InputText> values with <a4j:support> ?

    John Bailo Master

      I set up <h:inputText> in a <rich:column> to act as a filter input in a <rich:dataTable>.



      I then added <a4j:support>.


      <h:inputText id="cnFilter" >
        <a4j:support event="onkeyup"  />
      On keyup the update() method of the dataTable backing bean is triggered, but
      Object filterFieldObject =  context.getExternalContext().getRequestParameterMap().get("cnFilter");
      //filterFieldObject = null



      However, if I do this:


      <h:inputText id="cnFilter" >

        <a4j:support event="onkeyup"  >

           <a4j:actionparam name="filterValue" value="b" />







      Object filterFieldObject =  context.getExternalContext().getRequestParameterMap().get("filterValue");
      //filterFieldObject = "b"
      But this does not give me the inputText value.
      So how can I read the value of the inputText field in the backing bean after the onkeyup event -- or, pass the value to an actionparam so I can read it?