Does the corresponding h:selectItems work?
nickarls can u please shed some light on what s:selectItems and f:selectItems are doing ?
From what I figure they both return a SelectItem.
I'm trying to make it return a class value and bind it to a componentHome.instance.theclass
What I've done is like this
Create a new JBoss Seam Project
Copy paste the entites from ContactList example
Seam Reverse Engineer entities from source code
(I'm using a MySQL connection that part works)
Now .. in the Comment List
when selecting New Comment in the CommentEdit.xhtml I'd like to be able to select a contact form a drop down list instead of the default auto-generated way.
If u can make something like this work please post back :D
Well, if you are juggling entities you might as well use a List and bind to the entityHome.entity and use a convertEntity (remembering to override hashcode() and equals() on the entity id). There are plenty of threads on this.
Well guys it will create complexity by using convert entity and al that.
I am getting list populated with the data what i want the only problem was i was not getting it stored as string what i want instead it was storing object of select item
so better i used <f:selectItems> and works fine for me.
Thanks for reply