Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calendar Component

 
Latha Ravuri
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Latha Ravuri
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic