OK, It is very easy.

All what you have to do is the following:

1. Setup Tomahawk in your environment.
2. Add the Tomahawk tag library declaration in your page:
<%@ taglib uri="http://myfaces.apache.org/tomahawk"; prefix="t"%>
3. Use the <t:inputCalendar> tag as follows:
<t:inputCalendar  value="#{calendarBean.date}" .../>

The date attribute of the CalendarBean is an instance of (java.util.Date).

For the complete parameters, check:
http://mashups.s43.eatj.com/myfaces-example-simple/calendar.jsp.source

I hope this is useful.


On Fri, Sep 26, 2008 at 9:44 PM, laredotornado <[EMAIL PROTECTED]>wrote:

>
> Good stuff.  Do you have an example of how it would be coded on a JSF page?
> When I clicked on the link within the example you listed, I got a page that
> looked like: http://screencast.com/t/YKocTFOm
>
> Also, the link I found on Google --
> http://myfaces.apache.org/tomahawk/calendar.html, gives a 404.
>
>  - Dave
>
>
>
> Hazem Saleh-2 wrote:
> >
> > Use Tomahawk Calendar:
> > http://mashups.s43.eatj.com/myfaces-example-simple/calendar.jsf
> >
> > On Fri, Sep 26, 2008 at 9:13 PM, laredotornado
> > <[EMAIL PROTECTED]>wrote:
> >
> >>
> >> Hi, I'm using MyFaces 1.2.4.  On my JSF page, what is the easiest way
> of
> >> creating a way to select a date, preferably with select menus displaying
> >> the
> >> month, day, and year?
> >>
> >> Thanks, - Dave
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Date-picker--tp19694686p19694686.html
> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >>
> >>
> >
> >
> > --
> > Hazem Ahmed Saleh Ahmed
> >
> > Web blog: http://www.jroller.com/page/HazemBlog
> >
> > [Web 2.0] GMaps Integration with JSF + Apache Tomahawk + JBoss a4j:
> > http://code.google.com/p/gmaps4jsf/
> >
> > Author of (The Definitive Guide to Apache MyFaces and Facelets):
> >
> http://www.amazon.com/gp/product/images/1590597370/ref=dp_image_text_0?ie=UTF8&n=283155&s=books
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Date-picker--tp19694686p19695144.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


-- 
Hazem Ahmed Saleh Ahmed

Web blog: http://www.jroller.com/page/HazemBlog

[Web 2.0] GMaps Integration with JSF + Apache Tomahawk + JBoss a4j:
http://code.google.com/p/gmaps4jsf/

Author of (The Definitive Guide to Apache MyFaces and Facelets):
http://www.amazon.com/gp/product/images/1590597370/ref=dp_image_text_0?ie=UTF8&n=283155&s=books

Reply via email to