> > called from "setupRender" and "afterRender".
> > But, why messages.get("key") always return string from default local
> > properties when called from "onValidate" and "onSuccess" ?
> > Am I doing something wrong or is t
uot;) return string from correct local properties file when
> called from "setupRender" and "afterRender".
> But, why messages.get("key") always return string from default local
> properties when called from "onValidate" and "onSuccess" ?
>
Hi..
I'm using T 5.3.4,
@Inject
private Messages messages;
messages.get("key") return string from correct local properties file when
called from "setupRender" and "afterRender".
But, why messages.get("key") always return string from default local
and OnSuccess
Having a simple form containing a simple field (TextField) I have problems
validating its content.
The validation is done using onValidate. The Form is processed using onSuccess.
The problem arises that onValidate is invoked *before* the property is updated
with the value to
,
>
> Martin (Kersten)
>
> -Ursprüngliche Nachricht-
> Von: Olivier Jacquet [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 19. März 2008 12:47
> An: Tapestry users
> Betreff: Re: OnValidate and OnSuccess
>
>
> Hi,
>
>
> I ran into this issue as
: Olivier Jacquet [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 19. März 2008 12:47
> An: Tapestry users
> Betreff: Re: OnValidate and OnSuccess
>
>
> Hi,
>
>
> I ran into this issue as well. onValidate() is actually called multiple
> times. Try it with onValidateFrom
: Tapestry users
Betreff: Re: OnValidate and OnSuccess
Hi,
I ran into this issue as well. onValidate() is actually called multiple times.
Try it with onValidateFromNewItem(). I can't check if that's how I solved it
here.
Regards,
Olivier
On Wed, 19 Mar 2008 11:39:55 +0100, "
Hi,
I ran into this issue as well. onValidate() is actually called multiple
times. Try it with onValidateFromNewItem(). I can't check if that's how I
solved it here.
Regards,
Olivier
On Wed, 19 Mar 2008 11:39:55 +0100, "Martin Kersten"
<[EMAIL PROTECTED]> wrote:
> Having a simple form cont
Having a simple form containing a simple field (TextField) I have
problems validating
its content.
The validation is done using onValidate. The Form is
processed using onSuccess. The problem arises that onValidate is
invoked *before* the property is updated with the value to validate.
D