You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@click.apache.org by acec acec <to...@yahoo.ca> on 2009/11/19 18:34:43 UTC

Can I change Default UI?

Hi, all
I am doing 1.7. Advanced Form Example.
I can add one DateField in my page class, then UI will have the default DateField. That's nice, but how can I control the UI?
For example, if I want my DateField using jquery Datepacker.
http://jqueryui.com/demos/datepicker/

What shall I do?

Thanks.
Tomcat Acec


      __________________________________________________________________
Get the name you've always wanted @ymail.com or @rocketmail.com! Go to http://ca.promos.yahoo.com/jacko/

Re: Can I change Default UI?

Posted by Bob Schellink <sa...@gmail.com>.
Hi,

acec acec wrote:

> I am doing 1.7. Advanced Form Example.
> I can add one DateField in my page class, then UI will have the default DateField. That's nice, but how can I control the UI?
> For example, if I want my DateField using jquery Datepacker.
> http://jqueryui.com/demos/datepicker/


You basically need to subclass DateField and return the required JQuery UI javascript and css 
resources. Here is an example:

http://code.google.com/p/clickclick/source/browse/trunk/clickclick/jquery-examples/src/net/sf/clickclick/examples/jquery/control/ui/UICalendarField.java

Hope this helps.

regards

bob