I've put my version here: http://bigbob.splendid.co.uk/selectitems.tar.gz.  It 
works well but isn't well packaged (no examples etc.).  If I get time to tidy 
it up I'll put it on the wiki.

anonymous wrote : 
  | The attached files provide a @SelectItems databinder for Seam. It has a 
label attribute that is the name of a field/property on each object in the 
outjected list. If the label attribute is empty object.toString() is used. 
@SelectItems can be used for any Object.
  | 
  | Also provided is an EntityConverter. This requires the objects specified in 
the <f:selectItems value="..." /> to have the Entity annotation. It should be 
set in your favourite way:
  | 
  |   | * By Class (each class which requires this converter is specified in 
faces-config.xml)
  |   | * By Id (specify in faces-config.xml, specify id in view)
  |   | * Using EL (load from a function as an inner class)
  |   | * Use facelets to set as default converter for selects (I place the 
h:selectXXX in a source tag file with an optional converter attribute (on the 
source tag), if the converter attribute is not set then load the 
EntityConverter, code available if needed)
  |   | 
  | 
  | Corrections/queries are most welcome.
  | 

See also: http://jroller.com/page/pmuir?entry=selectitems_for_seam

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

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

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to