This week's giveaways are in the MongoDB and Jobs Discussion forums.
We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps on-line!
See this thread and this one for details.
The moose likes JSF and the fly likes Select items doesn't use converter to generate label. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Select items doesn Watch "Select items doesn New topic
Author

Select items doesn't use converter to generate label.

Tomas Sikula
Greenhorn

Joined: Sep 23, 2008
Posts: 4
Hello.

I have problem with using select items with custom converter.

I have one JSF managed bean (getters + setters not shown):
.

Person class:
.

In faces-config.xml I registered my custom converter PersonConverter:
.

And finally in page.jsp I have:
.

However on page, labels for checkboxes are apparently obtained via Person.toString, eg.: x.y.Person@1088abb1.

What I'm doing wrong?

Thanks for help.
 
I agree. Here's the link: http://jrebel.com/download
 
subject: Select items doesn't use converter to generate label.
 
Similar Threads
h:selectManyCheckbox inside h:dataTable
selectManyCheckbox
org hibernate PropertyAccessException
JSF2 Populate SelectOneRadio with Enum values
h:selectOneMenu - setting the correct value