You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Volker Krebs (JIRA)" <ji...@apache.org> on 2007/11/05 09:30:35 UTC

[jira] Created: (WW-2294) Parameterizing i18n messages

Parameterizing i18n messages
----------------------------

                 Key: WW-2294
                 URL: https://issues.apache.org/struts/browse/WW-2294
             Project: Struts 2
          Issue Type: New Feature
            Reporter: Volker Krebs


The struts2 validator should be able to parameterize i18n Messages.
<field name="webuser.login">
  <field-validator type="requiredstring">
    <param name="0" key="field.name"/>
    <message key="errors.required"/>
  </field-validator>
</field>

The message properties would be as follows:
errors.required={0} is required
field.name=Login 

See also:
http://forums.opensymphony.com/thread.jspa?threadID=109693&tstart=0

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2294) Parameterizing i18n messages

Posted by "Martin Gilday (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42754 ] 

Martin Gilday commented on WW-2294:
-----------------------------------

Ported WebWork fix to XWork2 trunk. As this is an XWork issue see http://jira.opensymphony.com/browse/XW-593

> Parameterizing i18n messages
> ----------------------------
>
>                 Key: WW-2294
>                 URL: https://issues.apache.org/struts/browse/WW-2294
>             Project: Struts 2
>          Issue Type: New Feature
>            Reporter: Volker Krebs
>
> The struts2 validator should be able to parameterize i18n Messages.
> <field name="webuser.login">
>   <field-validator type="requiredstring">
>     <param name="0" key="field.name"/>
>     <message key="errors.required"/>
>   </field-validator>
> </field>
> The message properties would be as follows:
> errors.required={0} is required
> field.name=Login 
> See also:
> http://forums.opensymphony.com/thread.jspa?threadID=109693&tstart=0

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.