Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #3158
| From | Travers Naran <tnaran@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: JSF label doesn't render |
| Date | 2011-04-19 23:23 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <iolu52$uv$1@dont-email.me> (permalink) |
| References | <iol3hd$559$1@dont-email.me> |
> Hi all, I've got a weird problem with JSF rendering. For some reason,
> the label attribute doesn't want to render on the resulting HTML output.
> For example, if I have this:
>
> <h:inputText label="First Name"
> id="fname"
> required="true" />
>
> That label, "First Name", never shows up on the HTML. I checked the HTML
> source too and it's not there, so it's not a browser problem per se.
Unless this is something new in JSF 2, there is no "label" attribute on
inputText. In JSF 1.2, you do something like this:
<h:outputLabel value="First Name" for="fname"/>
<h:inputText id="fname" value="#{BackingBean.Property}" required="true"/>
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
JSF label doesn't render markspace <-@.> - 2011-04-19 15:49 -0700
Re: JSF label doesn't render Travers Naran <tnaran@gmail.com> - 2011-04-19 23:23 -0700
Re: JSF label doesn't render Lew <noone@lewscanon.com> - 2011-04-20 09:00 -0400
Re: JSF label doesn't render markspace <-@.> - 2011-04-20 13:01 -0700
Re: JSF label doesn't render Lew <noone@lewscanon.com> - 2011-04-20 22:47 -0400
Re: JSF label doesn't render markspace <-@.> - 2011-04-21 11:09 -0700
Re: JSF label doesn't render Esmond Pitt <esmond.pitt@bigpond.com> - 2011-04-20 22:13 +1000
Re: JSF label doesn't render Roedy Green <see_website@mindprod.com.invalid> - 2011-04-20 14:00 -0700
Re: JSF label doesn't render Lew <noone@lewscanon.com> - 2011-04-20 22:51 -0400
csiph-web