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

Use "suggested-value" from faces-config.xml for JSF attribute suggestion

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Major
    • LATER
    • None
    • jsf

    Description

      After reading this wiki entry, it looks like one property of the faces-config.xml isn't used so far, it's the "suggested-value" (see http://horstmann.com/corejsf/faces-config.html#suggested-value ). Its description is quite small and I couldn't find any real documentation about it. But we can read: "This value is advisory only and is intended for tools", and JBoss Tools is... a tool, right?

      So it would be great that JBoss Tools check the presence of such a "suggested-value" inside faces-config.xml and population an "enumeration" proposal type for the corresponding attribute.

      Since "suggested-value" is a string, it cannot support natively a list of suggestions, so, right now, RichFaces is using "," as a separator. Which mean having:

      <property-name>severity</property-name>
      <property-class&gt;java.lang.String</property-class&gt;
      <suggested-value>success,info,warning,important,inverse</suggested-value>
      

      Should be equivalent to:

      <attribute name="severity">
        <proposal type="enumeration">
          <param value="success" />
          <param value="info" />
          <param value="warning" />
          <param value="important" />
          <param value="inverse" />
        </proposal>
      </attribute>
      

      What do you think?

      Attachments

        Activity

          People

            scabanovich Viacheslav Kabanovich (Inactive)
            paul.dijou Paul Dijou (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: