You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by aris <ar...@agilemovement.it> on 2004/11/17 16:57:04 UTC

Validation resources in another bundle

Hi all,
I'm trying to use an alternative message resource to display errors after
the validate process. I set in the validation.xml the following element:

<field
    property="siteuser.siteusername"
    depends="required">
        <arg
            key="label_username"
            bundle="loginResources"
            position="0" />
</field>


It doesn't work and I have the suspect that the bundle attribute is
completely ignored. Can anyone help me?

Thanks

aris.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Validation resources in another bundle

Posted by Niall Pemberton <ni...@blueyonder.co.uk>.
This has already been raised as an issue in the following bugzilla ticket:

http://issues.apache.org/bugzilla/show_bug.cgi?id=21760

Currently the bundle attribute on both the Arg and Msg elements in the
validator dtd are ignored, as well as the "resource" property on the Msg
element. The reason for this, is that although they are in the validator
dtd - there was actually no way to access these properties. I have just
changed Commons Validator and there is currently a new Version 1.1.4 (Alpha)
available for download and testing, details are here:

http://article.gmane.org/gmane.comp.jakarta.struts.user/96384

This doesn't re-solve this issue, but we need a proper "GA" quality release
of Commons Validator before we can make the appropriate changes in Struts to
fix this issue - any help with people trying out the new version of Commons
and feeding back their experience will al help to make a "GA" version arrive
sooner :-)

Niall


----- Original Message ----- 
From: "aris" <ar...@agilemovement.it>
To: <us...@struts.apache.org>
Sent: Wednesday, November 17, 2004 3:57 PM
Subject: Validation resources in another bundle


> Hi all,
> I'm trying to use an alternative message resource to display errors after
> the validate process. I set in the validation.xml the following element:
>
> <field
>     property="siteuser.siteusername"
>     depends="required">
>         <arg
>             key="label_username"
>             bundle="loginResources"
>             position="0" />
> </field>
>
>
> It doesn't work and I have the suspect that the bundle attribute is
> completely ignored. Can anyone help me?
>
> Thanks
>
> aris.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org