midrange.com code scratchpad
Name:
jsf - Not working
Scriptlanguage:
Plain Text
Tabwidth:
4
Date:
05/13/2011 10:29:23 pm
IP:
Logged
Description:
anything inside h:panelGrid , h:panelGroup is not showing on the browser

All I get on the broswer are:
Hello I got to here : 1

Hello I got to here : 2

Hello I got to here : 3
Code:
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <%-- jsf:pagecode language="java" location="/src/pagecode/Convertor.java" --%><%-- /jsf:pagecode --%>
  3. <%@page    language="java" contentType="text/html; charset=ISO-8859-1"    pageEncoding="ISO-8859-1"%>
  4. <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
  5. <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
  6. <html> 
  7. <head> 
  8. <title>Celsius to Fahrenheit Convertor</title>
  9. <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  10. </head>  
  11.     <body> 
  12.         <p> Hello I got to here : 1</p>
  13.         <f:view>
  14.             <p> Hello I got to here : 2</p>
  15.             <h:form> 
  16.                 <p> Hello I got to here : 3</p>
  17.                 <h:panelGrid columns="2"> 
  18.                     <p> Hello I got to here : 4</p>
  19.                     <h:outputLabel value="Celsius"></h:outputLabel>
  20.                     <h:inputText value="#{temperatureConvertor.celsius}"></h:inputText>
  21.                 </h:panelGrid>
  22.                 <h:commandButton action="#{temperatureConvertor.celsiusToFahrenheit}" value="Calculate"></h:commandButton>
  23.                 <h:commandButton action="#{temperatureConvertor.reset}" value="Reset"></h:commandButton>
  24.             </h:form>
  25.             
  26.             <h:panelGroup rendered="#{temperatureConvertor.initial}">
  27.                 <p> Hello I got to here : 5</p>
  28.                 <h3> Result </h3>
  29.                 <h:outputLabel value="Fahrenheit"></h:outputLabel>
  30.                 <h:outputLabel value="#{temperatureConvertor.fahrenheit}"></h:outputLabel>
  31.             </h:panelGroup>
  32.         </f:view>
  33.     </body>
  34. </html>
© 2004-2019 by midrange.com generated in 0.006s valid xhtml & css