This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JSF and the fly likes Problems with converter in h:selectManyCheckbox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark "Problems with converter in h:selectManyCheckbox" Watch "Problems with converter in h:selectManyCheckbox" New topic
Author

Problems with converter in h:selectManyCheckbox

Juan Manuel Diaz
Ranch Hand

Joined: Mar 23, 2009
Posts: 53
Hi fellows!, I am trying to implement a CRUD for users in my web app. I am using JSF2.0, spring 3 and hibernate. The problem is when i use h:selectManyCheckbox for user roles. I am always getting a convertion error message when i press save button. I am using a FacesConverter for convertion.

This is my code:

The backing bean:



My FacesConverter for AuthorityRole class



My entities: CustomUser and AuthorityRole






And finally, my facelet:



I really dont know what I am doing wrong, but I tried a lot of modifications to the above code and i always get the convertion error message.

Ideas are welcome!

Regards,
JM
Juan Manuel Diaz
Ranch Hand

Joined: Mar 23, 2009
Posts: 53
Nobody knows about what is happening to me? Why I have boobs? hehehe

Regards!
JM
Juan Manuel Diaz
Ranch Hand

Joined: Mar 23, 2009
Posts: 53
I really need help with this. Somebody could help me?

Regards,
JM
Juan Manuel Diaz
Ranch Hand

Joined: Mar 23, 2009
Posts: 53
I am really stuck on this.

Please, help!

Thanks in advance!,
JM
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problems with converter in h:selectManyCheckbox