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:
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <%-- jsf:pagecode language="java" location="/src/pagecode/Convertor.java" --%><%-- /jsf:pagecode --%>
- <%@page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
- <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
- <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
- <html>
- <head>
- <title>Celsius to Fahrenheit Convertor</title>
- <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
- </head>
- <body>
- <p> Hello I got to here : 1</p>
- <f:view>
- <p> Hello I got to here : 2</p>
- <h:form>
- <p> Hello I got to here : 3</p>
- <h:panelGrid columns="2">
- <p> Hello I got to here : 4</p>
- <h:outputLabel value="Celsius"></h:outputLabel>
- <h:inputText value="#{temperatureConvertor.celsius}"></h:inputText>
- </h:panelGrid>
- <h:commandButton action="#{temperatureConvertor.celsiusToFahrenheit}" value="Calculate"></h:commandButton>
- <h:commandButton action="#{temperatureConvertor.reset}" value="Reset"></h:commandButton>
- </h:form>
-
- <h:panelGroup rendered="#{temperatureConvertor.initial}">
- <p> Hello I got to here : 5</p>
- <h3> Result </h3>
- <h:outputLabel value="Fahrenheit"></h:outputLabel>
- <h:outputLabel value="#{temperatureConvertor.fahrenheit}"></h:outputLabel>
- </h:panelGroup>
- </f:view>
- </body>
- </html>
|
|
|