Last month I posted a Small Talk discussing the use of ZK Calendar with a
database. Since then I have been working closely with ZK Calendar and thought
I would share another way of achieving the same effect.
Extending ZK Calendar’s AbstractCalendarModel
The key is to extend the AbstractCalendarModel and override the get function.
This function is used to retrieve the events from the selected model, in this
case the underlying model architecture is a database.
The ‘get’ function
The get function takes the following parameters:
public List get(Date arg0, Date arg1, RenderContext arg2)
The two Date objects denote the start and end dates respectively whereas the
RenderContext contains a function getTimeZone(). This function is used to
retrieve the calendar’s TimeZone which is used to align the Date object’s
time with the database’s timezone.
The code public final class Dat... (more)
The ZK team is pleased to release ZK 5 RC with its developer-centric and
architectural innovation such as Server+Client Fusion and Ajax-as-a-Service.
Since 2005 ZK has been renowned for its' server-centric approach, providing
the ultimate in productivity gains.
In addition, developers can now optionally leverage the full controllability
of client-side programming. It is not about server-centric or client-centric,
it is about developer-centric!
With the release of ZK 5 RC come some very important changes.
Server+Client Fusion: With ZK 5's new architecture, developers can not only ... (more)
After a lot of effort by the ZK team we have released a preview version of
our latest product, ZK 5!
The preview holds many new benefits over the ZK 3 series, firstly the move to
the LGPL license is fantastic for those looking to integrate ZK with other
frameworks that have different licensing models.
I feel that the move to jQuery also provides a strong foundation for the
framework and thus the new Client+Server Fusion architecture. Client+Server
Fusion architecture is a phrase coined by ourselves to describe the ability
to leverage both server side and client side programming.
... (more)
As quite a few people will be aware I went to COSCUP 2009 this weekend to
present my thoughts on the future of Ajax and ZK 5.
I did not know what to expect from COSCUP as this was the first time I have
ever given any sort of presentation in Asia so I must admit I was relatively
apprehensive about it before arriving!
Saturday morning
My day actually began at approximately 7am when I awoke to prepare myself and
give my presentation a quick rundown before heading out to find the venue. I
have to say that organization of the event was superb and everything was
planned to a T. I arriv... (more)
The ZK team is pleased to release ZK 5 RC with its developer-centric and
architectural innovation such as Server+Client Fusion and Ajax-as-a-Service.
Since 2005 ZK has been renowned for its’ server-centric approach, providing
the ultimate in productivity gains. In addition, developers can now
optionally leverage the full controllability of client-side programming. It
is not about server-centric or client-centric, it is about developer-centric!
With the release of ZK 5 RC come some very important changes. Server+Client
Fusion: With ZK 5’s new architecture, developers can not only le... (more)