javaserverfaces-spec-public
  1. javaserverfaces-spec-public
  2. JAVASERVERFACES_SPEC_PUBLIC-566

UIOutput.getValue() should return the local value of the component if it has been set, even if null.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 2.2
    • Component/s: Lifecycle
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: Macintosh

    • Issuezilla Id:
      566
    • Status Whiteboard:
      Hide

      cat1 javadoc size_medium importance_medium

      Show
      cat1 javadoc size_medium importance_medium

      Description

      Consider:
      ---------------------------------------------
      for example:
      <h:form>
      <h:inputText id="input1" required="#

      {true}

      "/>
      <h:message for="input1"/>
      <h:inputText id="input2" value="#

      {testBean.value}

      ">
      <f:convertNumber integerOnly="true"/>
      </h:inputText>
      <h:message for="input2"/>
      <h:commandButton/>
      </h:form>

      public class TestBean {
      private String input1;
      private Integer input2 = 1;
      ...
      }

      from browser:
      1. Enter input1 empty text.
      2. Enter input2 empty text.
      3. submit.

      results:

      • A Required error for input1 is displayed.
      • The input2 text is "1".

      I hope:

      • A Required error for input1 is displayed.
      • The input2 text is empty text.

      ---------------------------------------------

        Issue Links

          Activity

            People

            • Assignee:
              Ed Burns
              Reporter:
              Ryan Lubke
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours, 31 minutes
                6h 31m