cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Lutz <>
Subject I18NMessage in ValidationError not translated.
Date Tue, 23 Aug 2005 15:50:11 GMT
Hi list !

I think I am missing something, but I can't figure out where...

Short :-) description:

I add a ValidationError to a form widget in a custom binding, this is 
done via (tErrorMessage is the message key, and yes, I double checked it 
exists in my message catalogue :-) ):

        ((Field) frmModel).setValidationError(new 
ValidationError(tErrorMessage, true));

The form is displayed using some pipelines. The first one is a generic 
html wrapper, that calls the second one.

        <map:match pattern="*.*.html">
          <map:aggregate element="root">
            <map:part src="cocoon:/menu/{0}"/>
            <map:part src="cocoon:/c_{2}/{1}.xml" element="content" 
            <map:parameter name="contextPath" 
            <map:parameter name="page" value="{0}"/>
            <map:parameter name="locale" value="{../locale}"/>
          <map:transform type="i18n" />

          <map:serialize type="html"/>

        <map:match pattern="c_formobj/*.xml">
          <map:generate src="cocoon:/{1}.obj.form.template.xml"/>
          <map:transform type="forms" label="content1" />
            <map:parameter name="resources-uri" 

          <map:serialize type="xml"/>

Everything is ok but the translation of the errormessage.

I checked the logs with "grep I18n sitemap.log" and there is no 
Translation not found, which is the standard message for not defined 
messages I think.

What am I missing ? Wrong logfile ? Wrong message catalogue ? Is this 
working at all ?

Please help, this one is really driving me crazy :-) !


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message