struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wes Wannemacher <w...@wantii.com>
Subject Re: dojo script for DATEPICKER tag
Date Fri, 01 Feb 2008 04:07:27 GMT
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 <ravichandrac@ivycomptech.com> 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


Mime
View raw message