wood burning stoves 2.0*
The moose likes JSF and the fly likes Calendar in jsf 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 "Calendar in jsf" Watch "Calendar in jsf" New topic

Calendar in jsf

ram krishnaa

Joined: Nov 15, 2009
Posts: 4
I am using sun jsf 1.2 .
My requirement is to put one calendar in jsf page.
can any body please send code or alink.

thanks in advance...
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15952


You can also find a calendar control in the MyFaces Tomahawk product and quite a few other add-on JSF tagsets as well.

Customer surveys are for companies who didn't pay proper attention to begin with.
ram krishnaa

Joined: Nov 15, 2009
Posts: 4
Thanks Tim...
I have downloaded the Tomahawk 1.1.6 jar file and i added it in my project(I am using Eclipse Galileo).
And i did basic configurations like addinjg filter in web.xml....
I am attaching the code below...

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">

<description>Set the size limit for uploaded files.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB</description>
<description>Set the threshold size - files
below this limit are stored in memory, files above
this limit are stored on disk.

Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB</description>

<!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->

<!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
<servlet-name>Faces Servlet</servlet-name>

<!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->

<servlet-name>Faces Servlet</servlet-name>
<servlet-name>Faces Servlet</servlet-name>

And my jsp page with this code..

<%@taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%><%@taglib
uri="http://java.sun.com/jsf/core" prefix="f"%><%@ page language="java" contentType="text/html; charset=ISO-8859-1"
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<h:form id="calendarForm4">

<t:inputCalendar id="secondOne" value="#{hR_Infotype_details1.idStartDate}"
popupTodayString="The date today is :"


but when am trying to execute the jsp page the following error is coming...

type Status report


description The requested resource () is not available

Please help in this regards...

wood burning stoves
subject: Calendar in jsf
Similar Threads
How do javascript refer to Jsf input field ID
Word Games
visual jsf calendar onChange event
restricted calendar display
Another book question