2 Replies Latest reply on Dec 14, 2007 7:13 PM by Volker Schmidt

    Rerendered input field not recognized on submit

    Volker Schmidt Newbie

      Hi all.
      I have two input fields. Field f2 is rendered only if f1 is not empty. Now if I put some data in f2 and submit it, its setter method is never called. The save button rerenders the outputPanel which should be correct. The PBean is in request only. If I use the PBean in session or <a4j:keepAlive beanName="PBean" /> it works. So is it not possible to get the value2 when PBean is in request scope?

      <a4j:outputPanel id="thePanel">
      <h:inputText id="f1" value="#{PBean.value1}"/>
      <h:inputText id="f2" value="#{PBean.value2}" rendered="#{!empty PersonBean.value1}"/>
      </a4j:outputPanel>
      <a4j:commandButton type="submit" actionListener="#{PBean.save}" value="SAVE" reRender="thePanel"/>

      Greetz ViteVite