Well, the 'endDate' will be evaluated as an OGNL expression, so it can be
dynamic. If you have a "getFutureDate()" method in your action, you could
set it to "%{futureDate}". Now, what is really a problem is that the
returned value is expected to be an String, which is wrong, it should take
any object as the result, like the "value" attribute does. I will create a
Jira ticket for it.

regards
musachy

On 4/19/07, David Harland <[EMAIL PROTECTED]> wrote:

You can set it to a static date in the future but what about the
scenario where you want dynamically set the end date to today plus some
amount of time and have it automatically update with each changing day?

-----Original Message-----
From: Musachy Barroso [mailto:[EMAIL PROTECTED]
Sent: 19 April 2007 15:41
To: Struts Users Mailing List
Subject: Re: datetimepicker additional useful feature

You can use the "endDate" attribute to set the last date available in
the calendar.

regards
musachy

On 4/19/07, David Harland <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Is it possible you could add an attribute such as
endDateTodayPlusDays.
> So that the end date is dynamically set to today plus whatever in days

> etc. I cant see any way of dynamically setting this otherwise.
>
> Thanks
>
> ______________________________________________________________________
> Ufi Limited
> Registered in England No.  3980770
> Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP
>
> learndirect Solutions Ltd
> Registered in England No. 5081669
> Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP
>
> UFI Charitable Trust
> Registered in England No.  3658378
> Registered Charity No.  1081028
> Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP
>
> This email has been scanned by the MessageLabs Email Security System.
>
> ______________________________________________________________________




--
"Hey you! Would you help me to carry the stone?" Pink Floyd


- ------
ML {UFI}

______________________________________________________________________
Ufi Limited
Registered in England No.  3980770
Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP

learndirect Solutions Ltd
Registered in England No. 5081669
Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP

UFI Charitable Trust
Registered in England No.  3658378
Registered Charity No.  1081028
Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP

This email has been scanned by the MessageLabs Email Security System.

______________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Reply via email to