0 Replies Latest reply on Nov 6, 2008 11:00 AM by Ahsan Javed

    Writing an Ajax enabled JSF Component using A4J

    Ahsan Javed Newbie

      Hi I have very complex jsf page that I have stripped down to this one,

      <f:view>
      <a4j:form id="testForm">
      <a4j:log level="ALL" popup="false" width="600" height="400" />
      <h:selectOneMenu id="commArrangementCode"
      value="#{compPlanViewerMB.compPlanSearch.commArrangementCode}"
      valueChangeListener="#{compPlanViewerMB.caoChangeEvent}">
      <f:selectItem itemValue=" " itemLabel=" " />
      <f:selectItems value="#{contextRefData.commArrgmtOffices}" />
      <a4j:support event="onchange" reRender="caoNameTest"/>
      </h:selectOneMenu>
      <h:inputText id="caoNameTest" value="#{compPlanViewerMB.commArrangementName}" />
      </a4j:form>
      </f:view>

      Basically in this jsp, on the change of htmlSelectOneMenu the textBox is reRendered with the value of the selected Option.

      Now I want to achieve the same functionality using a custom JSF component, Can you please let me know what should be the code for this.
      I also have posted same kind of issue here at ...
      http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187157#4187157

      This is something I have not seen on net so far and I am still getting it on my nerves. Any help will be welcome.

      Thanks
      Ahsan