It does help and got me thinking.  I'm not sure what you mean about entities 
generating selectable lists.  Unless you're talking about a seam custom JSF 
component that did that, and I don't see the value add there.

I do like the idea brought up in the JIRA (129).  A @Selectable annotation for 
lists.  Not sure about the @Selectionname annotation mentioned in the list, 
seems limited to me.  I guess if I were writing it my functionality would be:

@Selectable(value="variableName", idMethod="methoda", valueMethod="methodb", 
...)
The annotation would have sensible defaults, but the optional parameters would 
allow for enhanced SelectItem mapping of arbitrary objects in a List (ordered 
collection).

@Selected("variableName")
Supplies a List of selected objects from the previous @Selectable or null if 
none were selected.

I've included "variableName" in the @Selected annotation to hopefully allow a 
controller to handle multiple selections.  This seems to be a limitation of the 
current @DataModelSelection and @DataModelSelectionIndex annotations.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927156#3927156

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3927156


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to