Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #3158
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Travers Naran <tnaran@gmail.com> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: JSF label doesn't render |
| Date | Tue, 19 Apr 2011 23:23:27 -0700 |
| Organization | A noiseless patient Spider |
| Lines | 17 |
| Message-ID | <iolu52$uv$1@dont-email.me> (permalink) |
| References | <iol3hd$559$1@dont-email.me> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Wed, 20 Apr 2011 06:23:30 +0000 (UTC) |
| Injection-Info | mx02.eternal-september.org; posting-host="mZwD6WroWf8ZiutQVyui4A"; logging-data="991"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/sieUlnTyQ9M2dHRsPEab4" |
| User-Agent | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9 |
| In-Reply-To | <iol3hd$559$1@dont-email.me> |
| Cancel-Lock | sha1:lRtsyuxPytMrJOvY+gqxZmofpsk= |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3158 |
Show key headers only | View raw
> 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