Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Works as designed
    • Affects Version/s: 2.1 Rev a
    • Fix Version/s: None
    • Component/s: None

      Description

      The method getFamily() is not clearly specified on wether it is possible to return null as value or not.

        Activity

        Show
        balusc added a comment - Background: http://stackoverflow.com/questions/7610067/may-uicomponentgetfamily-return-null-or-not
        Hide
        arjan tijms added a comment -

        Slightly related, what about making specifying the family optional?

        If the spec would allow null, and null would mean no or a default family, then the currently abstract UIComponent#getFamily(); could be given a default implementation, could it?

        Show
        arjan tijms added a comment - Slightly related, what about making specifying the family optional? If the spec would allow null, and null would mean no or a default family, then the currently abstract UIComponent#getFamily(); could be given a default implementation, could it?
        Hide
        c.beikov added a comment -

        This would probably do the job!

        Show
        c.beikov added a comment - This would probably do the job!
        Hide
        Ed Burns added a comment -

        Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.

        Show
        Ed Burns added a comment - Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.
        Hide
        Manfred Riem added a comment -

        Setting priority to Critical

        Show
        Manfred Riem added a comment - Setting priority to Critical
        Hide
        Manfred Riem added a comment -

        On the question is it allowed to return null from getFamily:

        The Javadoc states "Return the identifier of the component family to which this component belongs." While it does not specifically say null is not supported it is clear from the semantic meaning of the word identifier.

        On the question of the getFamily() default:

        If you want to use the default component family to be selected make the getFamily method return "HTML_BASIC"

        Closing this as works as designed.

        Show
        Manfred Riem added a comment - On the question is it allowed to return null from getFamily: The Javadoc states "Return the identifier of the component family to which this component belongs." While it does not specifically say null is not supported it is clear from the semantic meaning of the word identifier. On the question of the getFamily() default: If you want to use the default component family to be selected make the getFamily method return "HTML_BASIC" Closing this as works as designed.

          People

          • Assignee:
            Manfred Riem
            Reporter:
            c.beikov
          • Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: