javaserverfaces
  1. javaserverfaces
  2. JAVASERVERFACES-1778

panelGroup UIComponent does not follow specification

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Incomplete
    • Affects Version/s: 2.0.2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: All

    • Issuezilla Id:
      1,778
    • Status Whiteboard:
      Hide

      size_medium importance_medium

      Show
      size_medium importance_medium

      Description

      The panelGroup UIComponent implementation does not follow the JSF 2
      documentation. If the "id", "layout", "style", and "styleClass" attributes are
      all omitted from the tag, no HTML will be output for the component. This
      appears to contradict the documentation for the "layout" attribute which states:

      "The type of layout markup to use when rendering this group. If the value
      is "block" the renderer must produce an HTML "div" element. Otherwise
      HTML "span" element must be produced."

      It also appears to contradict the wording for the component description:

      "If the "style" or "styleClass" attributes are present, and the "layout"
      attribute is present with a value of "block", render a "div" element,
      outputting the value of the "style" attribute as the value of the "style"
      attribute and the value of the "styleClass" attribute as the value of
      the "class" attribute. Otherwise, if the "layout" attribute is not present, or
      the "layout" attribute contains a value other than "block", render a "span"
      element, outputting the value of the "style" attribute as the value of
      the "style" attribute, and the value of the "styleClass" attribute as the value
      of the "class" attribute."

      It would seem that either the documentation or the component should be modified
      to bring the behavior in line.

      Thanks,
      --Zack

        Activity

        Hide
        rogerk added a comment -

        triage

        Show
        rogerk added a comment - triage
        Hide
        Manfred Riem added a comment -

        Can you attach an example application (with sources) that demonstrates the problem? Can you verify if this is still an issue on the latest 2.1 release?

        Show
        Manfred Riem added a comment - Can you attach an example application (with sources) that demonstrates the problem? Can you verify if this is still an issue on the latest 2.1 release?
        Hide
        zradick added a comment -

        Manfred,
        Apologies, but I am no longer working with JSF and do not have access to the codebase in which this issue was discovered. It should in principle be pretty easy to check by making a JSF page with a panelGroup without an "id" "layout", "style" and "styleClass" and seeing if if produces a <span> to contain the content or not.
        Cheers,
        --Zack

        Show
        zradick added a comment - Manfred, Apologies, but I am no longer working with JSF and do not have access to the codebase in which this issue was discovered. It should in principle be pretty easy to check by making a JSF page with a panelGroup without an "id" "layout", "style" and "styleClass" and seeing if if produces a <span> to contain the content or not. Cheers, --Zack
        Hide
        Manfred Riem added a comment -

        Closing as reporter does not work with JSF anymore and does not have access a reproducer.

        Show
        Manfred Riem added a comment - Closing as reporter does not work with JSF anymore and does not have access a reproducer.

          People

          • Assignee:
            Unassigned
            Reporter:
            zradick
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: