aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Calendar Component Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Calendar Component" Watch "Calendar Component" New topic
Author

Calendar Component

Latha Ravuri
Greenhorn

Joined: Aug 31, 2005
Posts: 6
I am trying to use a Calendar component on my JSP Page. Can somebody please guide me which is the best process? I found myfaces calendar tag on myfaces.apache.org website. Can you also suggest me the right guide lines or path to proceed using this tag with
<%@taglib uri="http://myfaces.apache.org/extensions" prefix="x"%>
in my page.
and
<x:inputCalendar id="=btpopupcalendar" monthYearRowClass="yearMonthHeader"
weekRowClass="weekHeader"
currentDayCellClass="currentDayCell"
value="#{calendar.date}" renderAsPopup="true"
popupTodayString="Today is : " popupWeekString="Wk" />

tag in the form. I am using Java Server FAces technology in my project
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

MyFaces has downoadable examples of all their components. Download the examples and the examples-source and you'll see everything you need to know on how to use the calendar component.

As to the example you posted, what's the problem? Does that not work? What kind of guidelines are you looking for?


GenRocket - Experts at Building Test Data
Latha Ravuri
Greenhorn

Joined: Aug 31, 2005
Posts: 6
I don't see the calendar component on my JSP Design page. Am I supposed to see the calendar just by putting this <x:calendar tag or are there any other things I need to take care of. As you said, I downloaded the examples. I imported the myfaces-examples.war into my IBM Rational. Even there in calendar.jsp, I don't see the calendar object in design view.

I appreciate your help on this.

Thanks
Lata
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Originally posted by Latha Ravuri:
I don't see the calendar component on my JSP Design page. Am I supposed to see the calendar just by putting this <x:calendar tag or are there any other things I need to take care of. As you said, I downloaded the examples. I imported the myfaces-examples.war into my IBM Rational. Even there in calendar.jsp, I don't see the calendar object in design view.

I appreciate your help on this.

Thanks
Lata


Oh, well, you didn't say you are trying to see this stuff in design view in IBM Rational in your first post. Is this the problem? Or can you not see it when you deploy and run the webapp in Tomcat or whatever?
Latha Ravuri
Greenhorn

Joined: Aug 31, 2005
Posts: 6
Yeah, I get an error when I run the JSP Page.I don't see any red mark on the JSP page on left side as we usually see when there is a compiler error. It seems like the JSP doesn't recognize the <x:calendar tag. When I place my cursor on left side of the tag, it says that it is an unknown tag. I thought it should be a valid tag as I put this line
<%@taglib uri="http://myfaces.apache.org/extensions" prefix="x"%> in my page...

Thank you
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Ok, it would appear to me that you are having problems with IBM Rational and not JSF specifically. So I am moving this to the IDE forum where there might be some more IBM Rational people hanging out and can better answer your question.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16228
    
  21

Most likely you didn't notice the fine print where it says you have to put a filter into your web.xml in order to make it work properly.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calendar Component