Hi, Is it possible to use the datepicker with Spring MVC? And if it is are there any example using this with Spring MVC somewhere?
I've been searching for some time and haven't uncovered anything other than the Struts example. Thanks, John, mraible wrote: > > Good to know - glad you figured it out. For future reference, here's > an example from AppFuse light: > > http://tinyurl.com/43c3rj > > Matt > > On Sat, Jun 7, 2008 at 11:16 AM, Paul Were <paul.w...@yahoo.com> wrote: >> Figured out the problem. >> The problem was with the import of the js language file for locale i.e. >> >> <script type="text/javascript" src="<c:url >> value='/scripts/calendar/lang/calendar-${pageContext.request.locale}.js'/>"></script> >> >> The parameter ${pageContext.request.locale}. was being substituted in as >> 'en_US' for which the language for locale en_US does not exist. >> I simply coded it to 'en' and it worked >> >> >> <script type="text/javascript" src="<c:url >> value='/scripts/calendar/lang/calendar-en.js'/>"></script> >> >> >> --- On Sat, 6/7/08, Paul Were <paul.w...@yahoo.com> wrote: >> >> From: Paul Were <paul.w...@yahoo.com> >> Subject: [appfuse-user] help on calendar/datepicker in AppFuse2 >> To: users@appfuse.dev.java.net >> Date: Saturday, June 7, 2008, 8:56 AM >> >> I am trying to add a calendar/datepicker to my web application. I have >> spent >> way too much time trying to figure this out. >> I tried the struts datepicker, no dice. Tried calendar-js that comes >> packaged with appfuse, still no go. >> i.e. followed the following instructions. >> >> 1. Add title="date" to an <s:textfield> - for example: >> >> <s:textfield key="person.modificationDate" required="true" >> cssClass="text" >> size="11" title="date"/> >> >> 2. Add the calendar scripts to your page: >> >> <script type="text/javascript" src="<c:url >> value='/scripts/calendar/calendar.js'/>"></script> >> <script type="text/javascript" src="<c:url >> value='/scripts/calendar/calendar-setup.js'/>"></script> >> <script type="text/javascript" src="<c:url >> value='/scripts/calendar/lang/calendar-${pageContext.request.locale}.js'/>"></script> >> >> 3. Call Calendar.setup() from JavaScript: >> >> <script type="text/javascript"> >> Calendar.setup({inputField: "personForm_person_modificationDate", >> ifFormat: "%m/%d/%Y", button: "person.modificationDateDatePicker"}); >> </script> >> >> >> >> >> >> >> Is there a simple way to do this is appfuse 2? >> >> Thanks, >> >> Paul >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net > For additional commands, e-mail: users-h...@appfuse.dev.java.net > > > -- View this message in context: http://n4.nabble.com/Regarding-menu-jsp-tp572223p949245.html Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net For additional commands, e-mail: users-h...@appfuse.dev.java.net