> > > > >>>>von Martin Marinschek
> > > > >>>>Gesendet: Mittwoch, 8. Februar 2006 23:05
> > > > >>>>the findComponent will deliver a component which is not properly
> > > > >>>>initialized (it will return the stamp, but not the actual
> > initialized
> > > > >>>>component for this row...)
> > > > >>>>
> > > > >>>>So what you're really looking for is the functionality I
> > implemented a
> > > > >>>>few weeks ago for findComponent, to return a properly
initialized
> > > > >>>>component for this row.

This sounds a bit like the problem I encounter, but I have no problem when I
explicitely use the findComponent() method. The problem occurs when JSF
processes the request when a validation error occurs.


Regards,

Matthias

> -----Ursprüngliche Nachricht-----
> Von: Matthias Kahlau [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 13. Februar 2006 01:08
> An: MyFaces Discussion
> Betreff: AW: AW: AW: AW: Problem with evaluation of Tomahawk
> HtmlSelectOneRadio components inside UIData (programmatically created
> UI)
>
>
>
>
> Hallo Herr Prof. Dr. Schiefer,
> > > same with required="true" instead of validation method here.
> >
> > I would say all works as expected when required="true"
>
> BTW: I use required="true" in an inpuText, not with the
> HtmlSelectOneRadios...
>
>
> Matthias
>
> > -----Ursprüngliche Nachricht-----
> > Von: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Auftrag
> > von Volker Weber
> > Gesendet: Montag, 13. Februar 2006 00:44
> > An: MyFaces Discussion
> > Betreff: Re: AW: AW: AW: Problem with evaluation of Tomahawk
> > HtmlSelectOneRadio components inside UIData (programmatically created
> > UI)
> >
> >
> >
> >
> > 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.

Reply via email to