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

f:view contracts="#{bean.contracts}" should allow to return null from the bean to let contracts be calculated from configurarion

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Invalid
    • Affects Version/s: 2.2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      com/sun/faces/facelets/tag/jsf/core/ViewHandler uses TagAttribute.getValue() to retrieve the contracts EL expression value - EL (before 3.0) will coerce null from the bean.contracts to "" and make no contract active.

      If ViewHandler would use TagAttribute.getObject() null would be evaluated to null and the contracts calculation from the configuration would be used.

      This might as well affect the spec - if this is accepted, a SPEC issue has to be created as well.

        Activity

        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 -

        If I am understanding this correctly this has become a non-issue as JSF 2.3 requires at minimum EL 3.0. Am I correct in this assertion. If so can we go ahead and close this out?

        Show
        Manfred Riem added a comment - If I am understanding this correctly this has become a non-issue as JSF 2.3 requires at minimum EL 3.0. Am I correct in this assertion. If so can we go ahead and close this out?
        Hide
        Hanspeter Duennenberger added a comment -

        Hi Manfred,

        I did not try but since EL 3 allows Strings to resolve to null (without coercion to empty String) yes, this should be a non-issue with JSF 2.3.

        Best regards
        Hanspeter

        Show
        Hanspeter Duennenberger added a comment - Hi Manfred, I did not try but since EL 3 allows Strings to resolve to null (without coercion to empty String) yes, this should be a non-issue with JSF 2.3. Best regards Hanspeter
        Hide
        Manfred Riem added a comment -

        Closing this out as "Invalid" as it is not an issue for JSF 2.3

        Show
        Manfred Riem added a comment - Closing this out as "Invalid" as it is not an issue for JSF 2.3

          People

          • Assignee:
            Hanspeter Duennenberger
            Reporter:
            Hanspeter Duennenberger
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: