1 Reply Latest reply on Jan 22, 2008 6:19 AM by Ilya Shaikovsky

    How to pass parameter with a4j event

    Steven De Groote Newbie

      Hi all,

      I'm trying to do an ajax request with a parameter, but I cannot work out how to do it.

      <h:selectBooleanCheckbox id="selected" value="#{option.isSelected}" immediate="true">
       <a4j:support event="onchange" limitToList="true" reRender="optionmsgs" ajaxSingle="true" actionListener="#{quoteOptions.changeOption}" />
       <f:attribute name="optionid" value="#{option.id}" />

      As you can see I tried to pass on an attribute but that fails as it stays null.
      Is there an alternative to this attribute so that I can retrieve the option.id in my actionlistener method?