[jala-dev] Re: Override Error-Msg in Date-Component

  • From: <robert.gaggl@xxxxxx>
  • To: <jala-dev@xxxxxxxxxxxxx>
  • Date: Tue, 18 Sep 2007 14:15:21 +0200

hi anton,
> (As the "New Ticket"-Button on dev.orf.at ist gone, i'll write my 
> question to the mailing list)

unfortunately we had to remove the permission to anonymously create
tickets (or add comments to tickets) because of recent spam attacks at
dev.orf.at. you'll need to register once at
http://dev.orf.at/trac/jala/register to be able to open or comment

reg. overriding messages: looks like this is a bug in jala.Form, i'll
have a look into it.


> I have added a Date-Component to my Form. I can set the 
> format an i'll 
> get an "This date cannot be parsed." if the entered format 
> does not fit, 
> which is really great.
> But how can i override this Error-Message?
> I have defined the form with the configuration helper and have added 
> messages to the date field like this:
> ..
> messages:   {
>       "invalid": "invalid.",
>       "required": "required.",
>       "empty": "empty."
> }
> ..
> But none of the messages overrides the default error message.
> What message do i have to pass to the component?
> regards,
> Anton

Other related posts: