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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> wrote: > > From: Paul Were <[EMAIL PROTECTED]> > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]