myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Travis Reeder <tree...@gmail.com>
Subject Re: How to use the HtmlTag component when programmatically building the UI?
Date Thu, 02 Feb 2006 05:05:12 GMT
Try something like this:

HtmlTag t = new HtmlTag();
t.setValue("h1");
HtmlOutputText text = new HtmlOutputText();
text.setValue("This is the body");
t.getChildren().add(text);

Travis

On 2/1/06, Matthias Kahlau <mkahlau@web.de> wrote:
>
> Hi!
>
>
> Is there nobody else who had the requirement to programmatically render
> HTML
> elements like H1, H2 etc.?
>
> This is an important requirement when creating Web pages which have to
> follow accessibility guidelines...
>
>
> Regards,
>
> Matthias
>
> > -----Urspr√ľngliche Nachricht-----
> > Von: users-return-16261-mkahlau=web.de@myfaces.apache.org
> > [mailto:users-return-16261-mkahlau=web.de@myfaces.apache.org]Im Auftrag
> > von Matthias Kahlau
> > Gesendet: Dienstag, 31. Januar 2006 23:10
> > An: Users MyFaces
> > Betreff: How to use the HtmlTag component when programmatically building
> > the UI?
> >
> >
> > Hi!
> >
> >
> > Is it possible to use the Tomahawk HtmlTag component when
> programmatically
> > building the UI. I know I can use setValue() to set the HTML
> > element name to
> > render, e. g. h1. But can I programmatically set the body content?
> >
> > If this is not possible, do you know alternatives to render arbitrary
> HTML
> > elements?
> >
> >
> > Regards,
> >
> > Matthias
> >
>
>
Mime
View raw message