DateTimePicker not showing

2013-07-02 Thread Fabian Richter

Hi,

I am still trying to migrate our application from Webwork to Strut2.

The site uses sitemesh with freemarker templates and used a 
ww:datepicker.../ from Webwork.


This tag was replaced in struts2 with sx:datetimepicker but doesnt show 
up in my application.


I added sx:head ...  in the head section of my jsp. I included the 
plugin in my WEB-INF/lib folder and changed my web.xml according to


https://issues.apache.org/jira/browse/WW-3296

Then I excluded

pattern/struts/dojo/*/pattern
pattern/struts/ajax/*/pattern

in decordators.xml and replaced the HTMLPageParsers in sitemesh.xml with

parser content-type=text/html 
class=com.opensymphony.module.sitemesh.parser.FastPageParser/


which was a hint for that issue on some website.

But the Datetimepicker is still now rendered at my website. I dont get 
any errors in my tomcat logs, only 2 javascript errors when calling the 
website that has the DateTimePicker on it:


TypeError: dojo.widget.manager is undefined @ 
https://.../struts/ajax/dojoRequire.js:27
TypeError: dojo.xml.Parse is not a constructor @ 
https://.../struts/dojo/dojo.js:900


Any idea if these are the critical errors? If not, what else could have 
been wrong?


Thank you in advance

Best
Fabian



smime.p7s
Description: S/MIME Kryptografische Unterschrift


Re: DateTimePicker not showing

2013-07-02 Thread Antonios Gkogkakis
Hi Fabian,

since you are migrating your application now, I would recommend not to use
the sx tags which are backed by the dojo plugin.
This plugin is based on a very old version of dojo (you will be having
problems with IE9) and I think that it's going to be deprecated in the next
struts major release.

For the calendar, I recommend the jquery datepicker http://jqueryui.com/
datepicker/ which you can either use directly (using s:textfield and js)
or via the struts2 jquery plugin.


Antonios




On 2 July 2013 09:20, Fabian Richter frich...@mtg.de wrote:

 Hi,

 I am still trying to migrate our application from Webwork to Strut2.

 The site uses sitemesh with freemarker templates and used a
 ww:datepicker.../ from Webwork.

 This tag was replaced in struts2 with sx:datetimepicker but doesnt show
 up in my application.

 I added sx:head ...  in the head section of my jsp. I included the
 plugin in my WEB-INF/lib folder and changed my web.xml according to

 https://issues.apache.org/**jira/browse/WW-3296https://issues.apache.org/jira/browse/WW-3296

 Then I excluded

 pattern/struts/dojo/*/**pattern
 pattern/struts/ajax/*/**pattern

 in decordators.xml and replaced the HTMLPageParsers in sitemesh.xml with

 parser content-type=text/html class=com.opensymphony.**
 module.sitemesh.parser.**FastPageParser/

 which was a hint for that issue on some website.

 But the Datetimepicker is still now rendered at my website. I dont get any
 errors in my tomcat logs, only 2 javascript errors when calling the website
 that has the DateTimePicker on it:

 TypeError: dojo.widget.manager is undefined @ https://.../struts/ajax/**
 dojoRequire.js:27
 TypeError: dojo.xml.Parse is not a constructor @ https://
 .../struts/dojo/dojo.**js:900

 Any idea if these are the critical errors? If not, what else could have
 been wrong?

 Thank you in advance

 Best
 Fabian




Re: DateTimePicker not showing

2013-07-02 Thread Lukasz Lenart
2013/7/2 Fabian Richter frich...@mtg.de:
 Then I excluded

 pattern/struts/dojo/*/pattern
 pattern/struts/ajax/*/pattern

Maybe change to /struts/* ?


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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



Re: DateTimePicker not showing

2013-07-02 Thread Fabian Richter

Hi,

very good idea Antonios, just tried it with the struts2 jquery plugin 
and it works out of the box!


Thank you for the hint!

Best
Fabian

Am 02.07.2013 10:29, schrieb Antonios Gkogkakis:

Hi Fabian,

since you are migrating your application now, I would recommend not to use
the sx tags which are backed by the dojo plugin.
This plugin is based on a very old version of dojo (you will be having
problems with IE9) and I think that it's going to be deprecated in the next
struts major release.

For the calendar, I recommend the jquery datepicker http://jqueryui.com/
datepicker/ which you can either use directly (using s:textfield and js)
or via the struts2 jquery plugin.


Antonios




On 2 July 2013 09:20, Fabian Richter frich...@mtg.de wrote:


Hi,

I am still trying to migrate our application from Webwork to Strut2.

The site uses sitemesh with freemarker templates and used a
ww:datepicker.../ from Webwork.

This tag was replaced in struts2 with sx:datetimepicker but doesnt show
up in my application.

I added sx:head ...  in the head section of my jsp. I included the
plugin in my WEB-INF/lib folder and changed my web.xml according to

https://issues.apache.org/**jira/browse/WW-3296https://issues.apache.org/jira/browse/WW-3296

Then I excluded

 pattern/struts/dojo/*/**pattern
 pattern/struts/ajax/*/**pattern

in decordators.xml and replaced the HTMLPageParsers in sitemesh.xml with

parser content-type=text/html class=com.opensymphony.**
module.sitemesh.parser.**FastPageParser/

which was a hint for that issue on some website.

But the Datetimepicker is still now rendered at my website. I dont get any
errors in my tomcat logs, only 2 javascript errors when calling the website
that has the DateTimePicker on it:

TypeError: dojo.widget.manager is undefined @ https://.../struts/ajax/**
dojoRequire.js:27
TypeError: dojo.xml.Parse is not a constructor @ https://
.../struts/dojo/dojo.**js:900

Any idea if these are the critical errors? If not, what else could have
been wrong?

Thank you in advance

Best
Fabian






--
media transfer AG

Fabian Richter, M.Sc.
Softwareentwickler

Mail:frich...@mtg.de
Telefon: +49 6151 8193-24
Telefax: +49 6151 8193-41
Web: http://www.mtg.de

Firmensitz: Dolivostraße 11, 64293 Darmstadt
Registergericht: Amtsgericht Darmstadt, HRB 8901
Vorstand: Jürgen Ruf (Vors.), Tamer Kemeröz
Aufsichtsratsvorsitzender: Dr. Thomas Milde



smime.p7s
Description: S/MIME Kryptografische Unterschrift


Re: DateTimePicker not showing

2013-07-02 Thread Antonios Gkogkakis
You're welcome Fabian.

I still believe that for the simple jquery ui stuff the struts plugin is an
overkill :D

Antonios


On 2 July 2013 10:13, Fabian Richter frich...@mtg.de wrote:

 Hi,

 very good idea Antonios, just tried it with the struts2 jquery plugin and
 it works out of the box!

 Thank you for the hint!

 Best
 Fabian

 Am 02.07.2013 10:29, schrieb Antonios Gkogkakis:

 Hi Fabian,

 since you are migrating your application now, I would recommend not to use
 the sx tags which are backed by the dojo plugin.
 This plugin is based on a very old version of dojo (you will be having
 problems with IE9) and I think that it's going to be deprecated in the
 next
 struts major release.

 For the calendar, I recommend the jquery datepicker http://jqueryui.com/
 datepicker/ which you can either use directly (using s:textfield and js)

 or via the struts2 jquery plugin.


 Antonios




 On 2 July 2013 09:20, Fabian Richter frich...@mtg.de wrote:

  Hi,

 I am still trying to migrate our application from Webwork to Strut2.

 The site uses sitemesh with freemarker templates and used a
 ww:datepicker.../ from Webwork.

 This tag was replaced in struts2 with sx:datetimepicker but doesnt show
 up in my application.

 I added sx:head ...  in the head section of my jsp. I included the
 plugin in my WEB-INF/lib folder and changed my web.xml according to

 https://issues.apache.org/jira/browse/WW-3296https://issues.apache.org/**jira/browse/WW-3296
 https://**issues.apache.org/jira/browse/**WW-3296https://issues.apache.org/jira/browse/WW-3296
 

 Then I excluded

  pattern/struts/dojo/*/pattern
  pattern/struts/ajax/*/pattern


 in decordators.xml and replaced the HTMLPageParsers in sitemesh.xml with

 parser content-type=text/html class=com.opensymphony.**
 module.sitemesh.parser.FastPageParser/


 which was a hint for that issue on some website.

 But the Datetimepicker is still now rendered at my website. I dont get
 any
 errors in my tomcat logs, only 2 javascript errors when calling the
 website
 that has the DateTimePicker on it:

 TypeError: dojo.widget.manager is undefined @ https://.../struts/ajax/**

 dojoRequire.js:27
 TypeError: dojo.xml.Parse is not a constructor @ https://
 .../struts/dojo/dojo.**js:900


 Any idea if these are the critical errors? If not, what else could have
 been wrong?

 Thank you in advance

 Best
 Fabian




 --
 media transfer AG

 Fabian Richter, M.Sc.
 Softwareentwickler

 Mail:frich...@mtg.de
 Telefon: +49 6151 8193-24
 Telefax: +49 6151 8193-41
 Web: http://www.mtg.de

 Firmensitz: Dolivostraße 11, 64293 Darmstadt
 Registergericht: Amtsgericht Darmstadt, HRB 8901
 Vorstand: Jürgen Ruf (Vors.), Tamer Kemeröz
 Aufsichtsratsvorsitzender: Dr. Thomas Milde