This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes t calender problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "t calender problem" Watch "t calender problem" New topic
Author

t calender problem

hassan ali
Ranch Hand

Joined: Apr 23, 2006
Posts: 127
when i try popcalender i got exception while normal calender work fine ???

here is code of normal

<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>

<!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:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Insert title here</title>
</head>
<body><f:view>
<t:saveState value="#{calendar}" />
<h:form id="myForm">
<tutputLabel for="calendar" value="Select your birth date : " />
<t:inputCalendar forceId="true" id="calendar" monthYearRowClass="yearMonthHeader"
weekRowClass="weekHeader"
currentDayCellClass="currentDayCell"
value="#{calendar.date}"
>
</t:inputCalendar>






</h:form>
</f:view>
</body>
</html>


here is code of Popcalender






<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>

<!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:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Insert title here</title>
</head>
<body>


<f:view>
<t:saveState value="#{calendar}" />
<h:form id="myForm">
<tutputLabel for="calendar" value="Select your birth date : " />
<t:inputCalendar forceId="true" id="calendar" monthYearRowClass="yearMonthHeader"
weekRowClass="weekHeader"
currentDayCellClass="currentDayCell"
value="#{calendar.date}"
renderAsPopup="true"
popupDateFormat="MM/dd/yyyy"
renderPopupButtonAsImage="true">
</t:inputCalendar>






</h:form>
</f:view>



</body>
</html>
 
 
subject: t calender problem
 
Similar Threads
t:calender error
Form Being Rendered Outside of the Page
Internationalization in JSF
IllegalStateException: Cannot forward. Response already committed.
Error while accessing hibernate session through JSF