struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laurie Harper <lau...@holoweb.net>
Subject Re: s2 dojo / datepicker conundrum
Date Tue, 03 Jun 2008 18:53:22 GMT
Jim Kiley wrote:
> Hey gang,
> 
> I have an app that needs a datepicker.  I initially inserted an
> <s:datepicker> into my app.  But I see from reviewing the docs that
> s:datepicker needs <sx:head> to be around in order to work right.  And of
> course sx:head requires the struts-dojo-tags taglib.  And the dojo plugin
> isn't available as part of the distribution until 2.1.
> 
> Does this mean I shouldn't bother using the datepicker until 2.1 is GA?  If
> that's true, why is s:datepicker even available as a tag in 2.0.x?  If
> that's false, what am I missing?

sx:datepicker needs sx:head; s:datepicker needs s:head with 
theme="ajax". The Ajax-related tags in 2.0 moved to a plugin in 2.1, 
with the taglib prefix changed to sx:.

So, if you're using 2.0, use <s:head theme="ajax"/> with s:datepicker; 
if you're using 2.1, use sx:head and sx:datepicker.

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message