Just integrated jquery datepicker in my application:

- maven dependencies:

      <dependency>
         <groupId>com.jgeppert.struts2.jquery</groupId>
         <artifactId>struts2-jquery-plugin</artifactId>
         <version>2.2.0</version>
      </dependency>

      <dependency>
         <groupId>com.jgeppert.struts2.jquery</groupId>
         <artifactId>struts2-jquery-grid-plugin</artifactId>
         <version>2.2.0</version>
      </dependency>

      <dependency>
         <groupId>com.jgeppert.struts2.jquery</groupId>
         <artifactId>struts2-jquery-richtext-plugin</artifactId>
         <version>2.2.0</version>
      </dependency>

- in jsp:

  <%@ taglib prefix="sj" uri="/struts-jquery-tags"%>

  <s:form action="..." namespace="/..." theme="...">
        <sj:datepicker name="selectedDate" showButtonPanel="true" 
changeMonth="true" changeYear="true" firstDay="1" maxDate="+0" 
yearRange="2003:" displayFormat="DD, d MM yy" showAnim="slideDown" 
buttonImageOnly="false" readonly="true" required="true" value="%{selectedDate}" 
size="27" cssStyle="vertical-align:text-bottom;" />
        <s:submit value="..." cssClass="..." 
cssStyle="vertical-align:text-bottom" />
  </s:form>

- added to css to have more or less the same font size as the "surrounding" 
text:

  #ui-datepicker-div {
        font-size: 0.75em;
  }

-----Oorspronkelijk bericht-----
Van: Salish S [mailto:ssal...@gmail.com] 
Verzonden: maandag 12 juli 2010 7:57
Aan: Struts Users Mailing List
Onderwerp: where is the datepicker in struts2-core-2.1.8.1

Hi all
How can i add datepicker in jsp if i'm using the struts2-core-2.1.8.1.jar and 
is that all the jar files i need for a simple application in struts2 from here 
http://mirror.olnevhost.net/pub/apache/struts/library/struts-2.1.8.1-lib.zip
thank for replys



-------------
Aan dit bericht kunnen geen rechten worden ontleend. Alle berichten naar dit 
professioneel e-mailadres kunnen door de werkgever gelezen worden.
Ondernemingsnummer: 0253.973.219


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to