May 12, 2009, 17:34
Filed under: grails | Tags:

The snapshot of new version of grails calendar plugin, has been released.

You can check the issues in the jira

More information about use, in the official wiki page

There are some information about new features, in a preview post.
Suggestions, help or features request , please sent a mail to grails mail list, or open a issue in jira system.


Grails Open Flash Chart 0.6 is out!
March 9, 2009, 19:18
Filed under: grails | Tags: , , ,

The new version of Chart Plugin is available.

This version is not compatible with previous versions of plugin, because it’s based on OFC-2 and the others on OFC.

OFC-2 uses JSON to populate the chart:

{“title”:{“text”:”Mon Mar 09 14:56:10 BRT 2009″},”is_decimal_separator_comma”:0,”elements”:[{"values":[9,8,7,6,5,4,3,2,1],”font-size”:10,”type”:”line”}],”num_decimals”:2,

You don’t need to create JSON manually, grails plugin includes a Java API for OFC called jofc2, thats provides a programatically approach to generate the JSON data. The same json above can generate with:

new Chart(new Date().toString())
.addElements(new LineChart()
.addValues(9, 8, 7, 6, 5, 4, 3, 2, 1))

In soon a DSL will be created in plugin to allow creation of charts easily, and you are  free to create your way or use another java library to generate the JSON data.

To install plugin just type:

grails install-plugin ofchart

The use of plugin is extremely easy, first you need to add some resources in you page, in head section put:


So you are ready to put the chart in your page:

<ofchart:chart name=”demo-chart” url=”${ createLink( action: ‘load’ )}” width=”400″ height=”200″/>

Just this, now you are ready to use the open flash chart in your grails applications.

To see a demo, checkout the plugin from svn:

svn checkout ofchart

run with:

grails run-app

And go to:


chat01 chart06 chart05
chart04 chart03 chart02

This is the first version with the OFC2 , so it does not have many features, if you have some suggestion, please open a issue in jira.

For further information about plugin, see the official wiki page.

For information and documentation about jofc2 library see the official web page.

News about Grails Calendar 1.2.0!
February 27, 2009, 03:40
Filed under: grails | Tags: , , ,

Hi Humans,

Two new features have been added to grails calendar plugin for 1.2.0 version, they are:

Now calendar looks like:


You can select date and time, and calendar don’t closes, you need to click in apply button to set date and close picker.To active the apply functionality, use the property:


If you don’t set the singleClick to false, the apply button is not shown.

The clean button is  used to clean the current date from picker, and  can not be disabled, to clean a date already chosen you must have to click in calendar icon again.

Check an try the demo here.

The Version 1.2 will be released soon, you can find all issues about this version here.


Grails Calendar 1.1.1 has been released!
February 24, 2009, 02:05
Filed under: grails | Tags: ,

A minor version of calendar has been released: 1.1.1

This version includes two changes:

  • Date picker didn’t render in Intenert Explorer
  • Allow to close date picker with double click

You can see the complete release notes here.

The first change is a bug, and second is a new feature that allow close the date picker only after a double click, that is useful to select time and date.

See more on wiki page.


Grails Calendar 1.1.0 is Avaliable!
February 20, 2009, 02:45
Filed under: grails | Tags: ,

Hi all, I am glad to announce the 1.1.0 version of Calendar plugin.

Changes in this version includes:

  • Support autobindig to date properties.
  • Allow use of custom themes.
  • Allow specify the year range.
  • Allow to define a default value if value if null.
  • Delete date when “delete or backspace is pressed in text field.

You can see the change log for 1.1.0 here..

To install plugin, just type in application root:

grails install-plugin calendar

Use of plugin has not changed, you need to import the resources with “resources tag”, and you can select theme, language, and a new property called ‘style’ was included, to allow use of custom themes.

Using a default theme:

<calendar:resources lang=”en” theme=”aqua”>

Using a custom theme:

<calendar:resources style=”${createLinkTo(dir:’css’,file:’custom-calendar.css’)}”>

You can see all themes, and how create custom themes in wiki page.

After import resources, you are ready to use date picker, just include date picker tag in you view.

<<calendar:datePicker dateFormat=”%m/%d/%Y”>

There are two new options available in date picker, defaultValue and years.

  • defaultValue: allow to use a default value, if the current date is null in object.
  • years: defines a range of years, available to select in date picker.

So is this! For further information about use of plugin take a look in grails wiki page.

You also can download a simple demo here, just unzip and type grails run-app to see date picker in action.


Calendar Plugin 1.0.0 has been released.
February 13, 2009, 17:07
Filed under: grails | Tags: ,

1.0.0 version of Calendar Plugin has been released.

Calendar Plugin provides a lightweight date picker tag, based in jscalendar.

If you need a rich date picker, but don’t want to install a lot of JavaScript dependencies, use Calendar plugin.

Use of plugin is simples, to install in your application just type:

grails install-plugin calendar

To use date picker you need to import the plugin resources:

<calendar:resources lang="en" theme="tiger"/>

Resources Tag imports all javascript and css files necessary, you can add it in each page or in main layout, you should put it in HEAD section.

Then, you are ready to use date picker,there is Date Picker tag, to put a rich calendar component in your view.

<calendar:datePicker name="date"/>


Date picker supports format(Date, Time),theme and language customization, for information about tag attributes, themes and Patterns to format, take a look at plugin page on grails wiki.


Get every new post delivered to your Inbox.