And now I have my CountrySelect class working, I figured out that instead of 
returning a Map, it needs to return a List of SelectItems.  So I got that done. 
 Then I found out that, because I'm using an enum for my Country, I need to 
write a Converter for that.  Which turned out to be very easy to do, and within 
a few minutes I had my enum countries working, displaying a select list, etc.  
So a good select list on the HTML side, and correct Java style on the Java side 
(using an enum instead of a bunch of strings).  And then I set the 
EnumType.STRING, so it saves it in the DB as a country code string.  It's 
pretty amazing when all this stuff works.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966657
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to