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

          Ryan Lubke created issue -
          kenaiadmin made changes -
          Field Original Value New Value
          issue.field.bugzillaimportkey 566 20171
          Manfred Riem made changes -
          Link This issue is related to JAVASERVERFACES-2536 [ JAVASERVERFACES-2536 ]
          Ed Burns made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Ed Burns made changes -
          Remaining Estimate 0 minutes [ 0 ]
          Time Spent 2 hours [ 7200 ]
          Ed Burns made changes -
          Priority Critical [ 2 ] Minor [ 4 ]
          Ed Burns made changes -
          Attachment 20121020-0249-i_spec_566.patch [ 51315 ]
          Ed Burns made changes -
          Attachment 20121023-1023-i_spec_566.patch [ 51335 ]
          Ed Burns made changes -
          Ed Burns made changes -
          Time Spent 2 hours [ 7200 ] 6 hours, 31 minutes [ 23460 ]
          Ed Burns made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Manfred Riem made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            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