1 Reply Latest reply on Jun 1, 2007 11:55 AM by amitev

    getParameter via a4j:commandButton

    mblondel

      Hi,

      I would like to get the parameter "newIp" in jsf when I click on a a4j:commandButton .



       <h:form id="form">
       <a4j:outputPanel id="agentEdition">
       <h:panelGroup id="groupModify" rendered="#{exaWizardBean.agentEditMode}">
       <a4j:region>
       <h:inputText id="newIp" value="toto"></h:inputText>
       <a4j:commandButton action="#{exaWizardBean.addNewIp}" value="ADD" reRender="agentEdition"></a4j:commandButton>
       </a4j:region>
       </h:panelGroup>
       </a4j:outputPanel>
      
      


      In Java, the methos "addNewIp" :
      
       FacesContext context = FacesContext.getCurrentInstance();
       Map params = context.getExternalContext().getRequestParameterMap();
       String newIp = (String) params.get("newIp");
      


      But the value is always null....
      Thanks for your help