javaserverfaces
  1. javaserverfaces
  2. JAVASERVERFACES-1672

Both inputText and commandButton are immediate="true", action cannot see the model value.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Incomplete
    • Affects Version/s: 2.0.2
    • Fix Version/s: None
    • Component/s: state saving
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      1,672
    • Status Whiteboard:
      Hide

      size_medium importance_medium

      Show
      size_medium importance_medium

      Description

      If both inputText and commandButton are immediate="true", action specified in
      commandButton cannot see the value set in the inputText.

      xhtml
      <body>
      <h:form>
      <h:inputText value="#

      {test.foo}

      " immediate="true"/>
      <h:commandButton action="#

      {test.go}

      " immediate="true"/>
      </h:form>
      </body>

      java
      @ManagedBean @RequestScoped
      public class Test {
      String foo;
      public String getFoo()

      {return foo;}

      public void setFoo(String foo)

      {this.foo = foo;}

      public void go()

      { System.out.println("*** foo = " + foo); }

      }

      The go method prints "*** foo = null".
      As for the JavaEE6 tutorial document page 127, the go() method should see the
      value entered in the inputText.

      Environment: Google App Engine 1.3.3.1 (Local environment)

        Activity

        Hide
        Ed Burns added a comment -

        Reassign to edburns

        Show
        Ed Burns added a comment - Reassign to edburns
        Hide
        rogerk added a comment -

        triage

        Show
        rogerk added a comment - triage
        Hide
        Manfred Riem added a comment -

        Can you please attach an example application (with sources) that demonstrates the problem?

        Show
        Manfred Riem added a comment - Can you please attach an example application (with sources) that demonstrates the problem?
        Hide
        Manfred Riem added a comment -

        Lowering priority because of no response

        Show
        Manfred Riem added a comment - Lowering priority because of no response
        Hide
        Manfred Riem added a comment -

        Lowering priority because of no response

        Show
        Manfred Riem added a comment - Lowering priority because of no response
        Hide
        Manfred Riem added a comment -

        Closing because of inactivity

        Show
        Manfred Riem added a comment - Closing because of inactivity

          People

          • Assignee:
            Unassigned
            Reporter:
            ruimo
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: