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