Re: Validation errors when using h:selectManyCheckbox

2008-03-25 Thread Pavan Shahi
Hi Michael, Thanks a lot you r 100R wright it is working fine now. Thanks again Regards Pavan Shahi On Tue, Mar 25, 2008 at 12:35 PM, Michael Kurz <[EMAIL PROTECTED]> wrote: > Pavan Shahi schrieb: > > Thanks for your reply. > > Now i have remove all my business logic and simply testing componen

Re: Validation errors when using h:selectManyCheckbox

2008-03-25 Thread Michael Kurz
Pavan Shahi schrieb: Thanks for your reply. Now i have remove all my business logic and simply testing component. But my bad luck continue same error. I have also attached my modified java and jsp file. Please help me i am not able to find any way to come out of this problem Ok, the files

Re: Validation errors when using h:selectManyCheckbox

2008-03-24 Thread Pavan Shahi
Hi Michael, Thanks for your reply. Now i have remove all my business logic and simply testing component. But my bad luck continue same error. I have also attached my modified java and jsp file. Please help me i am not able to find any way to come out of this problem I am using Myfaces implementai

Re: Validation errors when using h:selectManyCheckbox

2008-03-24 Thread Michael Kurz
Pavan Shahi schrieb: Trying to get h:selectManyChekbox running sine about 1 days, but I always get a validation error when I select one of the checkboxes Validation error : Value is not a valid option When I am doing hit and trail to fixed this problem I found that if I put backing bean in se

Validation errors when using h:selectManyCheckbox

2008-03-24 Thread Pavan Shahi
Trying to get h:selectManyChekbox running sine about 1 days, but I always get a validation error when I select one of the checkboxes Validation error : Value is not a valid option My JSP code: The backing bean has two ArrayLists: List selectedSkillSets = new ArrayList(); and List skillSet

Validation errors when using h:selectManyCheckbox

2008-03-24 Thread Pavan Shahi
Hi All Trying to get h:selectManyChekbox running sine about 1 days, but I always get a validation error when I select one of the checkboxes Validation error : Value is not a valid option My JSP code: The backing bean has two ArrayLists: List selectedSkillSets = new ArrayList(); and List sk

Re: Validation errors when using h:selectManyCheckbox

2007-06-13 Thread Michael Obster
Hi Andrew, hmm, looks like you are right. I've implemented this thing now with an unique id number each ArticleGroup has. Because I get the ArticleGroup from a Hibernate persistence layer I also couldn't use the object itself. Thanks for your help! Cheers, Michael Andrew Robinson schrieb: D

Re: Validation errors when using h:selectManyCheckbox

2007-06-13 Thread Andrew Robinson
Do you have an equals method implemented on ArticleGroup? Since the values are converted, reference equals will always return false. convertedValueFromComponent.equals(valueFromSelectItemValue) must evaluate to true for one of the select items On 6/13/07, Michael Obster <[EMAIL PROTECTED]> wrot

Re: Validation errors when using h:selectManyCheckbox

2007-06-13 Thread Michael Obster
Hi Andrew and list, I've written a converter which converts ArticleGroup into a string and backwards. The ArticleGroup has 3 attribute id(long), description(String) and active(boolean). Converting in both directions are running. The resulting string looks like "1;ASAP PC;true". Using Strings

Re: Validation errors when using h:selectManyCheckbox

2007-06-12 Thread Michael Obster
Hi, Andrew, that was the problem ;-). The is a known thing for me, but the only output I get was a validation error (in german "Validierungfehler"). No info about what validation got wrong and therefor not really helpful. Because of that big thanks to Andrew for his hint! Cheers, Michael B

Re: Validation errors when using h:selectManyCheckbox

2007-06-12 Thread Bruno Aranda
Also, it will help you if you have a component somewhere in your page, so you can see if there has been conversion/validation errors. Cheers, Bruno On 12/06/07, Andrew Robinson <[EMAIL PROTECTED]> wrote: You need a converter for ActicleGroup. All values from the browser are strings and withou

Re: Validation errors when using h:selectManyCheckbox

2007-06-12 Thread Andrew Robinson
You need a converter for ActicleGroup. All values from the browser are strings and without a converter, none of the string values will ever equal one of your ArticleGroup objects, and thus validation fails as the user submitted a value that isn't a value select item value. If you don't want a con

Validation errors when using h:selectManyCheckbox

2007-06-12 Thread Michael Obster
Hi, hope that somebody can help. Trying to get h:selectManyCheckbox running since about 6 hours, but I always get a validation error when I select one of the checkboxes (I cannot give here more info, because I have no, JBoss-Log doesn't say anything, only in the messages I get the validation e