Volker Weber wrote: > Hi, > > Matthias Kahlau wrote: > >>Hi Volker! >> >>Thanks for your support. I'm not sure, but maybe you should try throwing a >>javax.faces.validator.ValidatorException in your validation method when your >>validation fails. >> >>I don't use a validation method. I use required="true", and when nothing is >>entered, a standard validation error occurs displaying the same view again. > > > same with required="true" instead of validation method here.
I would say all works as expected when required="true" > > > >>My tree structure depends on the survey that is shown to the user. In my >>example where the error occurred, there have been two data tables with some >>rows of radio buttons and other components for other question types, e. g. 2 >>HtmlSelectOneMenu, 4 HtmlSelectManyCheckbox, some HtmlInputText and >>HtmlInputTextarea. The components are all children of the one form used in >>the view. >> >>All works fine, except when a validation error had occured, so please try >>with a standard validation error. >> >> >>Regards, >> >>Matthias >> >> >> >>>-----Ursprüngliche Nachricht----- >>>Von: [EMAIL PROTECTED] >>>[mailto:[EMAIL PROTECTED] Auftrag >>>von Volker Weber >>>Gesendet: Sonntag, 12. Februar 2006 23:46 >>>An: MyFaces Discussion >>>Betreff: Re: AW: AW: Problem with evaluation of Tomahawk >>>HtmlSelectOneRadio components inside UIData (programmatically created >>>UI) >>> >>> >>>Hi Matthias, >>> >>>i created a small test page (see attached files), but i can't reproduce >>>your problem. All works as expected, also when validation fails. >>> >>>Please provide more info about what you are doing and your tree structure. >>> >>>Regards, >>> Volker >>> >>>Matthias Kahlau wrote: >>> >>> >>>>>There's a use case where I encounter a problem with my solution. When a >>>>>validation error occurs in the process validations phase, all the radio >>>>>buttons shown in the HtmlDataTable aren't rendered when the page is >>>>>redisplayed. >>>>> >>>>>Why I try to evaluate the HtmlSelectOneRadio components in this >>>>>view state, >>>>>I get a runtime error because the components aren't fully >>> >>>initialized. The >>> >>> >>>>>component values / value classes are of the following type, for example: >>>>> >>>>>value = [EMAIL PROTECTED] >>>>>value class = org.apache.myfaces.renderkit.RendererUtils$1 >>>> >>>> >>>> >>>>Is it possible to solve this problem, or is this a dead end? >>>> >>>> >>>>Regards, >>>> >>>>Matthias >>>> >>>> >>> >>>-- >>>Don't answer to From: address! >>>Mail to this account are droped if not recieved via mailinglist. >>>To contact me direct create the mail address by >>>concatenating my forename to my senders domain. >>> >> >> > -- Don't answer to From: address! Mail to this account are droped if not recieved via mailinglist. To contact me direct create the mail address by concatenating my forename to my senders domain.

