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

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Tue Dec 11 10:59:17 EST 2012


    [ https://issues.jboss.org/browse/JBIDE-13237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12740673#comment-12740673 ] 

Lukáš Fryč commented on JBIDE-13237:
------------------------------------

We have discussed format of the {{suggested-value}} and it seems it should likely be comma-separated list of string values.

Make sure to do not validate against the list of suggested values - actual options does not have to be bound by this list.
                
> 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: Feature Request
>          Components: JSF
>            Reporter: Paul Dijou
>            Assignee: Viacheslav Kabanovich
>              Labels: new_and_noteworthy
>             Fix For: 4.1.0.Alpha1
>
>
> 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