Geez Matt :) ....
On May 24, 2004, at 4:17 PM, Matt Raible wrote:
I'm trying to generate the following validation rule:
<field property="name" depends="maxlength">
<arg0 key="customer.name"/>
<arg1 name="maxlength" key="${var:maxlength}" resource="false"/>
<var><var-name>maxlength</var-name><var-value>30</var-value></var>
</field>
Alrighty....
Here's my XDoclet tags:
* @struts.validator type="maxlength" * arg1value="maxlength" arg1key="${var:maxlength}"
argNvalue and argNkey are mutually exclusive. Choose one or the other, in this case I think you want arg1value. The XDoclet tags were designed to be clearer than the XML they generate, not a 1-to-1 kinda thing.
* @struts.validator-var name="maxlength" value="30"
And you put 30 there, and ended up with 2000 below?
<arg1 name="maxlength" key="${var:maxlength}" /> <var> <var-name>maxlength</var-name> <var-value>2000</var-value> </var> </field>
2000, really? That is *some* bug you found! :)
Erik
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user