You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Michel Erard <er...@hta-bi.bfh.ch> on 2005/05/23 13:25:38 UTC

I18n-Message in validation message

Hello,

I've a form with validatet fields like this:

<!-- template file-->

<fd:field id="00004" required="false">
           <fd:label><eI18n:text>00011</eI18n:text></fd:label>
           <fd:datatype base="string"/>
           <fd:validation>
               <fd:length max="13" min ="10">
                <fd:failmessage>
                        <i18n:translate>
                            <i18n:text 
i18n:catalogue="errors">ERROR_RESTRICTION_LENGTH</i18n:text>
                            <i18n:param>
                                <jx:formatNumber value="10" pattern="###"/>
                            </i18n:param>
                            <i18n:param>
                                <jx:formatNumber value="13" pattern="###"/>
                            </i18n:param>
                         </i18n:translate>
                    </fd:failmessage>
                </fd:length>
           </fd:validation>
           <fd:help><eI18n:text>00012</eI18n:text></fd:help>
        </fd:field>

now i pass this form through transformations like in the block examples. 
Now when a user enters wrong values a link is shown, whitch opens an 
js-alert window. But now is the text in this window: 
ERROR_RESTRICTION_LENGTH. So I think this part is never transformed, 
because it's never in a pipline. The other values are correct 
transformed. Can someone give mi a hint how to make this working correctly?

Thanks,

Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org