> If you look at the JSF book by Kito Mann, p 26, it shows an
> <h:outputText .../> wrapped in an
> <h:outputLabel.../> which is unnecessary (overall, it's a good book).

As Hans Bergsten writes in his JSF book, the value attribute of the
<h:outputLabel> element is "ignored by the JSF 1.0 reference implementation,
but other implementations may respect it and use it as the <label> body."
(p. 349)


Regards,

Matthias

> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Auftrag
> von Mike Duffy
> Gesendet: Samstag, 18. Februar 2006 04:32
> An: MyFaces Discussion
> Betreff: RE: display label in error message instead of id
>
>
> Thanks for figuring this out.
>
> I had the exact same problem.
>
> If you look at the JSF book by Kito Mann, p 26, it shows an
> <h:outputText .../> wrapped in an
> <h:outputLabel.../> which is unnecessary (overall, it's a good book).
>
> Thanks again.
>
> Mike
>
>
>
> --- Michael Heinen <[EMAIL PROTECTED]> wrote:
>
> > Thanks a lot for your help.
> > Now it works of course :-)
> >
> >
> > -----Original Message-----
> > From: Mario Ivankovits [mailto:[EMAIL PROTECTED]
> > Sent: Freitag, 17. Februar 2006 11:58
> > To: MyFaces Discussion
> > Subject: Re: display label in error message instead of id
> >
> > Hi!
> >
> > Ok, I found a problem if one uses outputText as child of outputLabel.
> > Its fixed now.
> >
> > As a workaround now you can get rid of outputText and use the value=
> > attribute in outputLabel directly.
> >
> > eg.
> >                 <h:outputLabel for="input" value="label" />
> >                 <h:inputText id="input" required="true" />
> >
> > Ciao,
> > Mario
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com

Reply via email to