On Sat, 21 Feb 2004 01:13:37 +0100
Joerg Heinicke <[EMAIL PROTECTED]> wrote:
> On 10.02.2004 17:54, Joern Wallstabe wrote:
>
> >>>How can I get a localized (!!) message from these function back in my form if
> >>>validation fails ?
> >
> > I tried different approaches, but it's not working (cocoon snapshot 2.1.4 -
> > 24.11.03)
> > I'm always getting the key String an not the catalogue value.
> >
> > (1)
> > var validationError = new
> > Packages.org.apache.cocoon.woody.datatype.ValidationError("xxx");
> > form.getWidget("my_widget").setValidationError(validationError,true);
>
> This one should work. Did you tried it with a more recent snapshot or
> the 2.1.4 release?
>
> Joerg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
Hi Joerg,
got it working in cocoon 2.1.4 release.
var i18nMessage = new
Packages.org.apache.cocoon.woody.util.I18nMessage("error_end_before_start");
form.getWidget("messages").addMessage(i18nMessage);
Thank you
J�rn
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]