(aye pete ;-) )
The following is developed on: JBoss 4.1.2 / Seam 2.0.0.CR2
I have an entity chemical which declares this field:
| private Set<Equipment> equipment;
|
Danger is an enum.
I have tried using this in a page with a selectManyCheckbox:
| <h:selectManyCheckbox value="#{chemical.equipment}">
| <s:selectItems value="#{enumLists.equipment}" var="item"
label="#{item}"/>
| <s:convertEnum />
| </h:selectManyCheckbox>
|
Here enumLists.equipment is an array of the values of the Enum Equipment.
However this renders the following issues when submitting the data in this page:
| sourceId=j_id19:j_id32[severity=(ERROR 2), summary=(Conversion Error setting value
'PP EP EX TOX' for '#{chemical.equipment}'. ), detail=(Conversion Error
setting value 'PP EP EX TOX' for '#{chemical.equipment}'. )]
|
Some more digging through writing a custom converter, I found out that getAsObject is not
being called. However getAsString is.
On the net I found a similar issue
http://www.icefaces.org/JForum/posts/list/0/3634.page.
Reported
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=108853 is that
it should work.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100760#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...