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

ValueExpression expected type for UISelectBoolean should be java.lang.Boolean not java.lang.Object

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 2.0
    • Component/s: Uncategorized
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      425
    • Status Whiteboard:
      Hide

      EGEasy5

      Show
      EGEasy5

      Description

      The current 1.2 TLD for the HTML components has java.lang.Object as the deferred
      type for the UISelectBoolean checkbox component. The problem with this is that
      if someone sets an initial String value of "true", the value isn't coerced to
      Boolean causing a ClassCastException if someone called
      UISelectBoolean.isSelected() instead of UISelectBoolean.getValue().

      Mojarra will be updating the TLD to reflect the type change as this is a bug in
      the spec, however, it will be good to have this clarified as an MR to 1.2 (as
      time permits) as well as in 2.0.

        Activity

        Hide
        rogerk added a comment -

        Yes. This is correct. The type should be Boolean.

        Show
        rogerk added a comment - Yes. This is correct. The type should be Boolean.
        Hide
        kito75 added a comment -

        This should be simple enough.

        Show
        kito75 added a comment - This should be simple enough.
        Hide
        Ed Burns added a comment -

        give ownership

        Show
        Ed Burns added a comment - give ownership
        Hide
        Ed Burns added a comment -

        Fixed

        Show
        Ed Burns added a comment - Fixed
        Hide
        Ed Burns added a comment -

        Prepare to delete "spec" subcomponent.

        Show
        Ed Burns added a comment - Prepare to delete "spec" subcomponent.
        Hide
        Manfred Riem added a comment -

        Closing resolved issue out

        Show
        Manfred Riem added a comment - Closing resolved issue out

          People

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

            Dates

            • Created:
              Updated:
              Resolved: