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

Spec should require ValueBinding and MethodBinding to implement equals() and has

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 1.2
    • Component/s: Uncategorized
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: Sun

    • Issuezilla Id:
      14

      Description

      The specification is silent on whether ValueBinding and MethodBinding should
      implement equals() and hashCode() or not, and the current RI implementation does
      not implement them, defaulting to the underlying logic in java.lang.Object. It
      would be very useful for equals() to return true if the reference expressions
      for two instances are the same (and hashCode() would have to be implemented as
      well to maintain the contracts defined in java.lang.Object). These methods
      could be implemented in the API classes (javax.faces.el.

      {Method,Value}

      Binding)
      quite easily, so that all implementations could benefit from them.

        Activity

        Hide
        Ed Burns added a comment -

        Tools need to know whether a new value binding or method binding instance
        represents a different value (and should therefore trigger property change
        events inside the tool) or not. Sophisticated applications that generate and
        use such bindings would also benefit.
        ed.burns@sun.com 7/23/04 15:18 GMT

        Show
        Ed Burns added a comment - Tools need to know whether a new value binding or method binding instance represents a different value (and should therefore trigger property change events inside the tool) or not. Sophisticated applications that generate and use such bindings would also benefit. ed.burns@sun.com 7/23/04 15:18 GMT
        Hide
        Ed Burns added a comment -

        p1 feature

        Show
        Ed Burns added a comment - p1 feature
        Hide
        Ed Burns added a comment -

        Roger, please remember to bring this up during the ValueBinding discussion on
        webtier-alignment.

        Show
        Ed Burns added a comment - Roger, please remember to bring this up during the ValueBinding discussion on webtier-alignment.
        Hide
        jhook added a comment -

        In the JSF 1.2 check in on head, the new EL implementation does implement the
        equals/hashCode and toString() methods for both ValueBinding and MethodBinding.

        Show
        jhook added a comment - In the JSF 1.2 check in on head, the new EL implementation does implement the equals/hashCode and toString() methods for both ValueBinding and MethodBinding.
        Hide
        Ed Burns added a comment -

        This has been addressed in the JSF 1.2 and JSP 2.1 EDR.

        Show
        Ed Burns added a comment - This has been addressed in the JSF 1.2 and JSP 2.1 EDR.
        Hide
        Ed Burns added a comment -

        Prepare to delete "spec" subcomponent.

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

        Move all to 1.2

        Show
        Ed Burns added a comment - Move all to 1.2
        Hide
        Manfred Riem added a comment -

        Closing resolved issue out

        Show
        Manfred Riem added a comment - Closing resolved issue out

          People

          • Assignee:
            rogerk
            Reporter:
            Ed Burns
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: