Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-17518

"Unknown composite component" shown for tags from http://java.sun.com/jsf/composite namespace

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.2.0.Beta3
    • None
    • jsf
    • None
    • Hide

      1. Create a Java EE Web Project, or a Dynamic Web Project, or any other project with the JSF facet
      2. Add a JSF Composite Component in the appropriate location
      3. See warnings

      Show
      1. Create a Java EE Web Project , or a Dynamic Web Project , or any other project with the JSF facet 2. Add a JSF Composite Component in the appropriate location 3. See warnings

      For a composite component XHTML in any project with a JSF facet, JBDS shows several JSF Composite Component Problem warnings:
      Unknown composite component "attribute"
      Unknown composite component "interface"
      Unknown composite component "implementation"
      ...

      src/main/webapp/resources/foo/input.xhtml
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:composite="http://java.sun.com/jsf/composite">
          <head>
              <title>Not present in rendered output</title>
          </head>
          <body>
              <composite:interface>
                  <composite:attribute name="label" />
                  <composite:attribute name="value" />
                  <composite:attribute name="name" required="true" />
                  <composite:attribute name="required" type="java.lang.Boolean" />
                  <composite:attribute name="readonly" type="java.lang.Boolean" />
              </composite:interface>
              <composite:implementation>
                  <tr>
                      <td><h:outputText id="input#{cc.attrs.name}Label" value="#{cc.attrs.label}: " /> <h:outputText value="*" rendered="#{cc.attrs.required}" /></td>
                      <td><h:inputText id="input#{cc.attrs.name}Value" value="#{cc.attrs.value}" required="#{cc.attrs.required}" readonly="#{cc.attrs.readonly}" disabled="#{cc.attrs.readonly}" /></td>
                      <td><h:message id="input#{cc.attrs.name}Message" for="input#{cc.attrs.name}Value" /></td>
                  </tr>
              </composite:implementation>
          </body>
      </html>
      

            scabanovich Viacheslav Kabanovich (Inactive)
            rsmeral Ron Šmeral (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: