Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 58333 invoked from network); 23 Apr 2008 20:31:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Apr 2008 20:31:27 -0000 Received: (qmail 92829 invoked by uid 500); 23 Apr 2008 20:31:17 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 92799 invoked by uid 500); 23 Apr 2008 20:31:17 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 92788 invoked by uid 99); 23 Apr 2008 20:31:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Apr 2008 13:31:17 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of james.r.carr@gmail.com designates 209.85.146.180 as permitted sender) Received: from [209.85.146.180] (HELO wa-out-1112.google.com) (209.85.146.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Apr 2008 20:30:32 +0000 Received: by wa-out-1112.google.com with SMTP id n7so4873609wag.5 for ; Wed, 23 Apr 2008 13:30:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=zeuaSgxqcwUEu3lQgh9FdKqsP/dJlqRMrZcoUCEIVuc=; b=w207+bkPQOwCYsYj7ye04edJA0/1CpjOOxIN4iSTX4naxxycK5oeXN1Cn7lnvvO+86zjIWcnUCd2iG9rHl0oTDlO4wVPvh9+ovuc8nCgq/f+HRQn8tbwurjPvXLPxUEGd1qOSxVe10jyx1R6dMZ2N2LigMfBJPzQ4udIdyMNa5Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mNO+7WRmdlfZS5Nk8cVcGO2slS2AAAyorfeNVO6Dqw7VJjt/tN9UmPv+hBa6cyYnluLvaWJgNZk6pfACa8BSfj4fgOlCGzJ85QhotBoXE+AAt4YOIhG+qffj7xbVWj7m7Fs2ih84Rz6Y+/4h0HGYyVgl3pzAtoeLE39MVx6VmmA= Received: by 10.115.88.1 with SMTP id q1mr970988wal.64.1208982645549; Wed, 23 Apr 2008 13:30:45 -0700 (PDT) Received: by 10.114.121.5 with HTTP; Wed, 23 Apr 2008 13:30:45 -0700 (PDT) Message-ID: Date: Wed, 23 Apr 2008 15:30:45 -0500 From: "James Carr" To: "Struts Users Mailing List" Subject: Re: dojo script for DATEPICKER tag In-Reply-To: <1201838848.5929.1.camel@wesw-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <748713.35207.qm@web94015.mail.in2.yahoo.com> <1201838848.5929.1.camel@wesw-laptop> X-Virus-Checked: Checked by ClamAV on apache.org I tried all of the above with Struts 2.0.11.1 but none of them work. SURELY there must be SOMEWAY to set the endDate attribute dynamically from the taglib!? Thanks, James On Thu, Jan 31, 2008 at 11:07 PM, Wes Wannemacher wrote: > I haven't tried it, but I would think that something like - > > startDate="@java.util.Calendar@getInstance().getTime()" > > might work. It should be a fairly trivial exercise to use OGNL to set > the parameters dynamically. > > -Wes > > > > On Fri, 2008-02-01 at 03:52 +0000, Naveen Kumar M wrote: > > Thanks ravichandrac, > > > > Yes I know it will preset the date value to the date you set in action class, > > but my question is basically to limit the Date selection from the date picker created by datepicker tag, however which contains parametes called startDate and endDate, so m,y requirment I just wnated to change the startDate value dynamically. > > > > i hope i have posted my question cleraly.......! > > > > Thanks & Regards, > > Minchu > > > > ravi_eze wrote: > > hi, > > > > if i am uderstanding u right then this should solve ur problem. > > > > action class: > > Date inpDate = new Date(); > > > > jsp page: > > > > > > so for the fist time when the page is being displayed the inpDate is set ot > > the current date which will solve ur problem > > > > hope this helps. > > > > cheers, > > ravi > > > > > > Naveen Kumar M wrote: > > > > > > > > > THANKS Wannemacher FOR YOUR REPLY. > > > > > > My question is, I want to change the values being assigned the > > > startDate and endDate parameters for the tag. So for example > > > page using my datepicker is loaded in to browser today, than > > > startDate should be todays systems date, for the same in next > > > coming day the startDate should be that day's system date(server date) > > > > > > I hope i have posted my question more clearly. > > > > > > Expecting some response on the issue. > > > > > > > > > Regards, > > > Minchu > > > > > > > > > > > > Wes Wannemacher wrote: Have you tried the startDate and > > > endDate parameters for the tag and > > > received an error? > > > > > > http://struts.apache.org/2.x/docs/datetimepicker.html > > > > > > -Wes > > > > > > On Thu, 2008-01-31 at 05:24 +0000, Naveen Kumar M wrote: > > >> Hi, > > >> > > >> We have a reqierment to control startdate and enddate of the datepicker > > >> dynamically, so i have tried out for controlling it by a dojo script, > > >> which is breaking up the appearance of datepicker. So can any one suggest > > >> how to control it dyanimcally. > > >> > > >> thanks in advance > > >> > > >> > > >> regards, > > >> minchu > > >> > > >> > > >> --------------------------------- > > >> Unlimited freedom, unlimited storage. Get it now > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > > > For additional commands, e-mail: user-help@struts.apache.org > > > > > > > > > > > > > > > --------------------------------- > > > 5, 50, 500, 5000 - Store N number of mails in your inbox. Click here. > > > > > > > -- > > View this message in context: http://www.nabble.com/dojo-script-for-DATEPICKER-tag-tp15198436p15203522.html > > Sent from the Struts - User mailing list archive at Nabble.com. > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > > For additional commands, e-mail: user-help@struts.apache.org > > > > > > > > > > --------------------------------- > > Get the freedom to save as many mails as you wish. Click here to know how. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org