2 Replies Latest reply on Apr 10, 2008 6:50 AM by Ilya Shaikovsky

    How to pass inputText value to actionListener attribute of a

    Hongqi Jia Newbie

      Hi,

      I want to pass inputText value to actionListener attribute of a4j:support so that I can automatically do some initialization with the input. Here is the sample code:

      <h:inputText id="v_vin" size="6" value="#{bean.name}">
      <a:support event="onblur" actionListener="#{editor.init(bean.name)}"
      bypassUpdates="true" reRender="v_make" ajaxSingle="true" />
      </h:inputText>

      But I noticed that the input value is not passed into the actionListner #{editor.init(bean.name)} (the parameter of init() is still null). Does anyone have a solution to achieve what I want to do in the above code? Or is there any way to pass the current input text value to actionListener(or action) as its parameter?

      Thanks in advance!

      Hong