Volker, assignedGroupPrivileges contains String values, and groupPrivileges contains SelectItems with String values.
I debugged into the MyFaces code and I found out that in the UIInput.validate (or somewhere deeper in the call frame), a list of SelectItem elements was empty and validate was returning false immediately. I have just came back home from office. I'll have to check the code once again. Lots of thanks for the assistance though. Yours truly, Behi On 12/13/06, Volker Weber <[EMAIL PROTECTED]> wrote:
Which class type the content of RoleEditBean.groupPrivileges ? must be the same as RoleEditBean.assignedGroupPrivileges. And if not String or any 'native' Object you need a Converter. The created object must equals to one of the items. eg: RoleEditBean.groupPrivileges.contains(<convertedPrivilege>) must return true otherwise yo get the 'Value is not a valid option' error. 2006/12/13, Behrang Saeedzadeh <[EMAIL PROTECTED]>: > Oops! I was wrong! I have added the setter but I am still getting the > error. The h:messages prints this out but it is not very helpful: > > Validation Error "privileges": Value is not a valid option > > Any ideas? > > -Behi > > On 12/13/06, Behrang Saeedzadeh <[EMAIL PROTECTED]> wrote: > > Hi, > > > > Thanks a lot Volker! That helped me pinpoint the issue! And damn! I > > had forgotten to write the setter for the assignedGroupPrivileges > > property. Wouldn't it be better if an exception was thrown? > > > > Regards, > > Behi > > > > On 12/13/06, Volker Weber <[EMAIL PROTECTED]> wrote: > > > > [org.apache.myfaces.lifecycle.LifecycleImpl] - <exiting from > > > lifecycle.execute in processValidations because getRenderResponse is > > > true from one of the after listeners> > > > > > > Looks like an validation error somewhere with skip of updateModel and > > > invokeApplication! > > > > > > add a h:messages tag to the page see were it occurs. > > > > > > > > > -- > > "Science is a differential equation. Religion is a boundary condition" > > - Alan Turing > > > > Behrang Saeedzadeh > > http://www.jroller.com/page/behrangsa > > http://my.opera.com/behrangsa > > > > > -- > "Science is a differential equation. Religion is a boundary condition" > - Alan Turing > > Behrang Saeedzadeh > http://www.jroller.com/page/behrangsa > http://my.opera.com/behrangsa >
-- "Science is a differential equation. Religion is a boundary condition" - Alan Turing Behrang Saeedzadeh http://www.jroller.com/page/behrangsa http://my.opera.com/behrangsa

