• Post Reply Bookmark Topic Watch Topic
  • New Topic

Select items doesn't use converter to generate label.  RSS feed

 
Tomas Sikula
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!