myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Volker Weber <users.myfa...@weber-oldenburg.de>
Subject Re: AW: AW: AW: Problem with evaluation of Tomahawk HtmlSelectOneRadio components inside UIData (programmatically created UI)
Date Sun, 12 Feb 2006 23:40:16 GMT
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.


> 
> 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: users-return-16968-mkahlau=web.de@myfaces.apache.org
>>[mailto:users-return-16968-mkahlau=web.de@myfaces.apache.org]Im 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 = org.apache.myfaces.renderkit.RendererUtils$1@11bd60e
>>>>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.

Mime
View raw message