On 12/6/07, Jimmy <[EMAIL PROTECTED]> wrote: > > Thanks for your help.BTW,could you tell me how to add the library into > Appfuse2.0 project ( Netbeans and Maven)?Is there any tutorial about > it?Thank you.
Not too sure how this is done using Netbeans, but adding a library through maven is simply a case of adding a dependency to the pom.xml file. From there Netbeans should hopefully pick it up. http://mvnrepository.com/ is really useful for this - search for the library you want and it will give you the snippet to include in your pom.xml file. Mike. On Dec 5, 2007 10:31 PM, Matt Raible < [EMAIL PROTECTED]> wrote: > > > You could also look into using the YUI plugin: > > > > http://cwiki.apache.org/S2PLUGINS/yui-plugin.html > > > > > > Matt > > > > > > On Dec 5, 2007, at 6:08 AM, John Kwon wrote: > > > > Matt put something in 2.0 > > > > From APF-268.. > > > > Implemented with jscalendar.sf.net (LGPL). > > > > To use in 2.0 RC1, perform the following steps: > > > > 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> > > > > Unfortunately, the jscalendar's format string doesn't match Java's > > SimpleDateFormat patterns. > > [ Show ยป <http://issues.appfuse.org/browse/APF-268> ] > > Matt > > Raible<http://issues.appfuse.org/secure/ViewProfile.jspa?name=mraible>- > > 01/Jun/07 > > 03:15 AM Implemented with jscalendar.sf.net (LGPL). To use in 2.0 RC1, > > perform the following steps: 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> Unfortunately, the > > jscalendar's format string doesn't match Java's SimpleDateFormat patterns. > > > > > > On 12/5/07, Jimmy <[EMAIL PROTECTED]> wrote: > > > > > > Hi, > > > > > > I am developing a simple web application with Appfuse. There is a > > > model object with a java.util.Date type member.Is there any example on > > > these problem.I am trying to use the datetimepicker of struts 2 but it > > > doesnot work.Any idea. > > > > > > Thanks in Advance. > > > > > > Best Regards, > > > Jimmy > > > > > > > > > > > > >
