myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michał 'Gandalf' Stawicki" <stawi...@gmail.com>
Subject Re: Schedule tomahawk
Date Thu, 02 Aug 2007 17:47:18 GMT
SomeClass is your Entity-bean class returned by hibernate or whatever
you're using.

On 02/08/07, ignicolist <ignicolist@gmail.com> wrote:
>
> Tks, but what is supose to put in SomeClass ? Sorry for dumb question! but i
> am new to this!
>
>
> Tks for all help.
>
>
>
>
> Michał 'Gandalf' Stawicki wrote:
> >
> > - fetch data from DB
> > - create ScheduleEntry
> > - add it to Schedule.
> >
> > eg:
> >        List<SomeClass> result = session.createQuery("from
> > Schedule").list();
> >
> > for(SomeClass sc : result)
> > {
> > ScheduleEntry e = new DefaultScheduleEntry();
> >
> > e.setStartTime(sc.getStartTime());
> > e.setEndTime(.......);
> > ....
> >
> > scheduleModel.addEntry(e);
> > }
> >
> > scheduleModel.setSelectedDate(new Date(System.currentTimeInMillis()));
> > scheduleModel.refresh();
> >
> >
> >
> > --
> > Michał Stawicki
> >
> > stawicki@gmail.com
> > http://stawicki.jasliska.pl
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Schedule-tomahawk-tf4192737.html#a11968059
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


-- 
Michał Stawicki

stawicki@gmail.com
http://stawicki.jasliska.pl
Mime
View raw message