3 Replies Latest reply on Aug 14, 2008 1:33 PM by sergeysmirnov

    unsure about a4j:jsFunction

    kechup

      Hello,

      As I'm quite new to a4j sorry for dump question,

      why is this code not working?

      <h:form id="form1">
       <h:selectOneMenu id="singleMenu" onchange="submitMe">
       <f:selectItem itemLabel="Label1" itemValue="1" />
       <f:selectItem itemLabel="Label2" itemValue="2" />
       <f:selectItem itemLabel="Label3" itemValue="3" />
       <f:selectItem itemLabel="Label4" itemValue="4" />
       <f:selectItem itemLabel="Label5" itemValue="5" />
       </h:selectOneMenu>
       </h:form>
       <a4j:jsFunction name="submitMe" action="#{echoController.actionListeItemChange}" />
      


      I know I can use a4j:support. Just I,m a bit curious. as it looks like it could work?