Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Facelets/VDL
    • Labels:
      None

      Description

      In JSF 2.x there are composite components and Facelets tags. A prime difference between these two is that composite components become a component themselves in the component tree, while Facelets tags cause their "child" components to be inserted but they themselves do not become part of the tree.

      Both these two artifacts have their own unique use cases, and thus the newer composite component cannot totally replace the older Facelet tags.

      However, composite components being the more modern variant have several ease of use features such as the ability for being auto-registering when put into the /resources folder and the definition of its attributes directly into the defining .xhtml file.

      Since Facelets tags are still very useful in modern JSF programming, I'd like to request them being upgraded to support auto-registering and attribute definition in the .xhtml file as well.

      E.g.

      /resources/mytag.xhtml
      <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets">
          
          <ui:attribute name="foo" />
          
          ...
      </ui:composition>
      

      The above would register a Facelets tag just like the following in a -taglib.xml would do:

      <tag>
          <tag-name>mytag</tag-name>
          <source>tags/mytag.xhtml</source>
          <attribute>
              <name>foo</name>	
          </attribute>
      </tag>
      

        Activity

        Hide
        Ed Burns added a comment -

        This is a nice idea.

        Show
        Ed Burns added a comment - This is a nice idea.
        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.

          People

          • Assignee:
            Unassigned
            Reporter:
            arjan tijms
          • Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated: