Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #3150

JSF label doesn't render

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From markspace <-@.>
Newsgroups comp.lang.java.programmer
Subject JSF label doesn't render
Date Tue, 19 Apr 2011 15:49:13 -0700
Organization A noiseless patient Spider
Lines 52
Message-ID <iol3hd$559$1@dont-email.me> (permalink)
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Tue, 19 Apr 2011 22:49:18 +0000 (UTC)
Injection-Info mx01.eternal-september.org; posting-host="cPD9BUYC7YT0KXvxatk4Yg"; logging-data="5289"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/tTR7iURtAPtbT0Lyv+HWYOeDaMkvHFug="
User-Agent Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9
Cancel-Lock sha1:vkNnGtBdwO2AqYj7/PzCSivhRis=
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3150

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.

There's some other oddities that are convincing me maybe it's a 
configuration parameter somewhere, or maybe the JSF library I'm using. 
I have Glassfish with the Oracle libraries, i.e. what came with NetBeans 
6.9.1.  However I haven't been able to locate any configuration 
information for Oracles JSF implementation, or even for any JSF 
implementation.

Any help getting that label to display would be much appreciated.

Here's the full JSF Xhtml test file I made to duplicate the error.


<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core">
     <h:head>
         <title>A Simple JSF App</title>
     </h:head>
     <h:body>
         <h:form>
             <h2>JSF Registration APP</h2>
             <h4>Registration Form</h4>
             <table>
                 <tr>
                     <td>
                         <h:inputText label="First Name"
                                      id="fname"
                                      required="true" />
                         <h:message for="fname" />
                     </td>
                 </tr>
             </table>
             <p><h:messages /></p>
             <p><h:commandButton value="Click Me" action="confirm" /></p>
         </h:form>
     </h:body>
</html>

Back to comp.lang.java.programmer | Previous | NextNext in thread | Find similar


Thread

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