Primefaces selectonemenu conversion error
Get via App Store Read this post in our app!
Primefaces: Conversion Error setting value 'Admin' for 'null Converter'
I am getting error in this code, i am stuck at this point. Please help me.
getter and setter for selectedRole, allRolesList are included in code
The # is apparently not of type String . JSF doesn't know how to convert String to User as there is no converter been registered for User type, hence the error message which you got.
You'd normally need to create a custom Converter for this, as explained in this answer, but based on the given Java code, you actually need # instead which is already of String type. So you don't need to create a custom Converter .
By the way, a managed bean with "DAO" in the name is quite strange. Are you sure that you aren't mixing concepts or tight-coupling different responsibilities in a single class (which would lead to poor reusability/maintainability)?