Many thanks Volker, that was the missing part...

Regards,

Matthias

> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Auftrag
> von Volker Weber
> Gesendet: Sonntag, 5. Februar 2006 13:25
> An: MyFaces Discussion
> Betreff: Re: Error when using "spread" layout in programmatically
> created HtmlSelectOneRadio
>
>
> Hi Mathias,
>
> set the renderType to "org.apache.myfaces.Radio";
>
> otherwise you won't get the tomahawk renderer.
>
> Regards,
>   Volker
>
> Matthias Kahlau wrote:
> > Hi!
> >
> >
> > I used "spread" layout successfully with HtmlSelectOneRadio and
> > HtmlSelectManyCheckbox in JSP. Now I programmatically created a
> > HtmlSelectOneRadio and set the layout attribute to "spread":
> >
> > HtmlSelectOneRadio radios = new HtmlSelectOneRadio(); // Tomahawk
>
> radios.setRendererType("org.apache.myfaces.Radio");
>
> >       selectOne = radios;
> >       this.form.getChildren().add(selectOne);
> >       selectOne.setId(id);
> >       radios.setLayout("spread");
> >
> >
> > When the view is rendered, I receive the following error:
> >
> > 2006-02-05 12:43:56,921 ERROR
> > [org.apache.myfaces.renderkit.html.HtmlRadioRendererBase] Wrong layout
> > attribute for component _id0:Frage_2: spread
> >
> >
> > Why do I get this error? (I need spread layout...)
> >
> > (MyFaces in use: 20051130)
> >
> >
> >
> > 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.

Reply via email to