[jbosstools-issues] [JBoss JIRA] (JBIDE-13237) Use "suggested-value" from faces-config.xml for JSF attribute suggestion

Paul Dijou (JIRA) jira-events at lists.jboss.org
Tue Dec 4 14:35:21 EST 2012


Paul Dijou created JBIDE-13237:
----------------------------------

             Summary: Use "suggested-value" from faces-config.xml for JSF attribute suggestion
                 Key: JBIDE-13237
                 URL: https://issues.jboss.org/browse/JBIDE-13237
             Project: Tools (JBoss Tools)
          Issue Type: Enhancement
          Components: JSF
            Reporter: Paul Dijou
            Assignee: Alexey Kazakov


After reading [this wiki entry|https://community.jboss.org/wiki/NewKBPlug-inAndCodeAssistInJBossTools310M3], 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:

{code}
<property-name>severity</property-name>
<property-class>java.lang.String</property-class>
<suggested-value>success,info,warning,important,inverse</suggested-value>
{code}

Should be equivalent to:

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

What do you think?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list