2 Replies Latest reply on Jul 15, 2010 5:10 AM by Mirek Sz

    a4j:supprt not set form value

    Mirek Sz Newbie

      I have controller wich set object person to Page scope before render a page

      public class PersonController {
              @In(required = false, scope = ScopeType.PAGE)
              @Out(scope = ScopeType.PAGE)
              private Person person;
              public void preEdit() {
                      person = new Person();
              public void edit() {

      in my xhtml page

      <h:form id="form">
       <h:inputText id="firstName" value="#{person.firstName}" required="true">
          <a4j:support event="onclick" action="#{personController.edit}" immediate="true"/>
       <h:inputText id="lastName" value="#{person.lastName}" rendered="true"/>

      When I click in firstName the request goes to server but injected person has old data. When I set immediate to false all works fine but I need skip validation phase.

      How to resolve this problem????

      Best regards