I did exactly what you did but without any result. I think I will create an
Jira Issue on this. 

Anyway, thank you very much for the hlp.




J. David Mendoza R. wrote:
> 
> Found out why...
> 
> In the StaticFilter there's an include to send the request to the
> struts.jar
> components, for some reason this doesn't work, I had to copy the code from
> https://appfuse.dev.java.net/source/browse/appfuse/trunk/web/common/src/main/java/org/appfuse/webapp/filter/StaticFilter.java?rev=3024&view=markupand
> had to change the include line to
> 
>             //RequestDispatcher rd =
> getServletContext().getRequestDispatcher(path);
>             //rd.include(request, response);
>            
> getServletContext().getRequestDispatcher(path).forward(request,
> response);
> 
> All this if you want to use some of struts's html components.
> 
> David M.
> 
> 2008/7/1 Tuncay A. <[EMAIL PROTECTED]>:
> 
>>
>> Thanks a lot. It works now with jscalendar
>>
>> I'm still wondering why the <s:datetimepicker ..> didn't work ??
>>
>>
>>
>> J. David Mendoza R. wrote:
>> >
>> > All you have to do is edit the signup.jsp
>> >
>> > <head>
>> >     <title><fmt:message key="purchaseDetail.title"/></title>
>> >     <meta name="heading" content="<fmt:message
>> > key='purchaseDetail.heading'/>"/>
>> >     <script type="text/javascript" src="<c:url
>> > value='/scripts/calendar/calendar.js'/>"></script>
>> >     <script type="text/javascript" src="<c:url
>> > value='/scripts/calendar/lang/calendar-en.js'/>"></script>
>> >     <script type="text/javascript" src="<c:url
>> > value='/scripts/calendar/calendar-setup.js'/>"></script>
>> > </head>
>> >
>> > First add the three script tags
>> >
>> > <s:textfield key="purchase.date" id="purchaseDate" required="true"
>> > cssClass="text" title="date" size="11" />
>> >
>> > Then create the field that's going to hold the date
>> >
>> > <script type="text/javascript">
>> >     Form.focusFirstElement($("purchaseForm"));
>> >     Calendar.setup({inputField: "purchaseDate", ifFormat: "%d/%m/%Y",
>> > button: "purchase.dateDatePicker"});
>> > </script>
>> >
>> > Finally add the Calendar.setup line as a script to initialize it... if
>> you
>> > have more than one date field you just have to add the s:textarea and
>> > another setup script for that field...
>> >
>> > David M.
>> >
>> > 2008/6/30 Tuncay A. <[EMAIL PROTECTED]>:
>> >
>> >>
>> >> Thanks,
>> >>
>> >> I replaced with your below <param-value> tag
>> >>
>> >> <param-value>/scripts/dojo/*,/dwr/index.html,/struts/*</param-value>
>> >>
>> >> but it didn't helped, hmmm?
>> >>
>> >> You should know that the <s:datetimepicker ... /> is inside the
>> >> signup.jsp
>> >> page.
>> >>
>> >>
>> >> The reason why I use is to test whether the Ajax dojo is working or
>> not,
>> >> and
>> >> how.
>> >>
>> >> It will be nice, if you could instruct me on how to integrate the
>> >> "jscalendar".
>> >>
>> >>
>> >>
>> >>
>> >> J. David Mendoza R. wrote:
>> >> >
>> >> > Hello Tuncay...
>> >> >
>> >> > What I did to get the datetimepicker working was modify the
>> >> staticFilter
>> >> > in
>> >> > web.xml
>> >> >
>> >> >     <filter>
>> >> >         <filter-name>staticFilter</filter-name>
>> >> >
>> >> > <filter-class>org.appfuse.webapp.filter.StaticFilter</filter-class>
>> >> >         <init-param>
>> >> >             <param-name>includes</param-name>
>> >> >
>> >> > <param-value>/scripts/dojo/*,/dwr/index.html,/struts/*</param-value>
>> >> >         </init-param>
>> >> >     </filter>
>> >> >
>> >> > Notice the param-value tag.
>> >> >
>> >> > But I don't use it because it makes the page take a long time to
>> load,
>> >> I
>> >> > use
>> >> > the jscalendar (also included in appfuse). If you need instructions
>> for
>> >> > that
>> >> > let me know...
>> >> >
>> >> > David M.
>> >> >
>> >> > 2008/6/30 Tuncay A. <[EMAIL PROTECTED]>:
>> >> >
>> >> >>
>> >> >> Hi,
>> >> >>
>> >> >> Thx, but the AppFuse 2.0.2 use Struts 2.0.11.1.
>> >> >>
>> >> >> So it is not because of that.
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >> Giovanni Azua wrote:
>> >> >> >
>> >> >> >
>> >> >> >> I added below two tags:
>> >> >> >>
>> >> >> >> <s:head theme="ajax" /> (inside the tag <head>..</head>)
>> >> >> >>
>> >> >> > that's because the former 2.0.x
>> >> >> >
>> >> >> > <s:head theme="ajax" />
>> >> >> > <s:datetimepicker ... />
>> >> >> >
>> >> >> > becomes in 2.1.x
>> >> >> >
>> >> >> > <sx:head parseContent="true" />
>> >> >> > <sx:datetimepicker ... />
>> >> >> >
>> >> >> > See:
>> >> >> > <
>> >> >>
>> >>
>> http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-
>> >> >> > 20x-to-21x.html>
>> >> >> >
>> >> >> >
>> >> >> > Regards,
>> >> >> > Giovanni
>> >> >> >
>> >> >> >> -----Original Message-----
>> >> >> >> From: Tuncay A. [mailto:[EMAIL PROTECTED]
>> >> >> >> Sent: Sunday, June 29, 2008 10:54 PM
>> >> >> >> To: [email protected]
>> >> >> >> Subject: [appfuse-user] Struts 2 datepicker not working
>> >> >> >>
>> >> >> >>
>> >> >> >> Hi,
>> >> >> >>
>> >> >> >> I'm using AppFuse 2.0.2 with modular Struts 2.
>> >> >> >>
>> >> >> >> I added below two tags:
>> >> >> >>
>> >> >> >> <s:head theme="ajax" /> (inside the tag <head>..</head>)
>> >> >> >> and
>> >> >> >>
>> >> >> >> <s:datetimepicker key="user.birthDate" theme="xhtml"
>> >> required="true"
>> >> >> >> cssClass="text medium" displayFormat="dd-MM-YYYY"/>
>> >> >> >>
>> >> >> >> It seems there are generated tags JavaScript tags for dojo in
>> the
>> >> page
>> >> >> >> source but neither the input field is shown nor the date picker
>> >> button
>> >> >> ??
>> >> >> >>
>> >> >> >> I didn't configured any dojo Ajax stuff. Do I need it ? If yes,
>> >> please
>> >> >> >> describe in detail how.
>> >> >> >>
>> >> >> >> Thank you very much.
>> >> >> >>
>> >> >> >> -tuncay
>> >> >> >>
>> >> >> >> --
>> >> >> >> View this message in context:
>> >> >> http://www.nabble.com/Struts-2-datepicker-
>> >> >> >> not-working-tp18185222s2369p18185222.html
>> >> >> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> ---------------------------------------------------------------------
>> >> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> ---------------------------------------------------------------------
>> >> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> >> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >>
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://www.nabble.com/Struts-2-datepicker-not-working-tp18185222s2369p18204866.html
>> >> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
>> >> >>
>> >> >>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Struts-2-datepicker-not-working-tp18185222s2369p18206348.html
>> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Struts-2-datepicker-not-working-tp18185222s2369p18214127.html
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Struts-2-datepicker-not-working-tp18185222s2369p18246311.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to