• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Calendar Component

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic