Paul! I've got so much useful help her that my brain is now totally
atrophied - you'll just have to help me a little bit more :)
My app is actually localized - I have the "sv" (Swedish) and the "en"
locales. Thus, I would like -mm-dd in the sv-case and something else (is
it mm/dd/?) in th
You should be able to specify your date format using the translator
binding prefix.
e.g.
The translator binding prefix has some unfortunate syntax limitations.
If your date pattern contains problematic characters (e.g. a comma) then
it will choke. If this is the case, define your transla
Thank you Paul.
It is the localized format of the date that is not working. My app is
localized to Swedish and the 'sv' date format is -mm-dd but the only
thing that works with the date translator is mm/dd/ I think.
Malin
On 6/21/06, Paul Ferraro <[EMAIL PROTECTED]> wrote:
That syntax
That syntax is documented here:
http://tapestry.apache.org/tapestry4/UsersGuide/validation.html#validation.fields
What aspect of localization is not working? The format? date symbols?
or validation error messages? all of the above?
The format is unfortunately hard coded and can be overridden.
Thank you Bryan!!!
It works! How did you come up with that "mysterious" syntax? Is there
documentation that I have missed somewhere?
Just one problem left - localization of my date translator. Anyone have a
suggestion, please?
Malin
On 6/17/06, Bryan Lewis <[EMAIL PROTECTED]> wrote:
On your q
On your question about the 'required' validator... the syntax that's
been working for me in such a case is:
Malin Ljungh wrote:
> - How do I apply the required validator to the Date2?
>
> > I tried this:
> > value="validators:required,bean:minDate"/>
--
Hi again!
My mistake!
Yes, I did the translator binding but I forgot to change the datatype from
String to Date in my page-class.
I works!!!
Thanks a lot guys, especially Paul, it would have taken me weeks to come up
with this.
Two issues left:
- How do I apply the required validator to the Dat
Did you also do the "translator" binding?
On 6/17/06, Malin Ljungh <[EMAIL PROTECTED]> wrote:
OK, I tried it... I think I'm close but I get this:
Error initializing property minDate of bean 'minDate' (of component
EditEvent): Error converting value for initializer of property minDate: No
type c
OK, I tried it... I think I'm close but I get this:
Error initializing property minDate of bean 'minDate' (of component
EditEvent): Error converting value for initializer of property minDate: No
type converter for type java.util.Date is available.
EditEvent is the name of my page.
Also, I wonder
Thank you Paul!!!
I'll try that immedeately!
Malin
On 6/16/06, Paul Ferraro <[EMAIL PROTECTED]> wrote:
This should work:
Paul
Malin Ljungh wrote:
> Hi all,
>
> I'm a newbie and just too tired think right now. Please help me :)
>
> I have a fo
This should work:
Paul
Malin Ljungh wrote:
> Hi all,
>
> I'm a newbie and just too tired think right now. Please help me :)
>
> I have a form with two TextFields where the user should enter somes
> dates. I
> use the date validator to check that co
Hi,
The Calendar class in Java has a ".before" test. And a ".after" check. I
don't know if there is a "date validator".
hth,
Mark
-Original Message-
From: [EMAIL PROTECTED] on behalf of Malin Ljungh
Sent: Fri 6/16/2006 1:32 PM
To: Tapestry users
Subject: Input dates validator
Hi al
12 matches
Mail list logo