DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31194>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

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





------- Additional Comments From [EMAIL PROTECTED]  2004-12-07 15:49 -------
> What would the order of arguments be for each message in your last example? 

position 0 --> <arg key="first"/>
position 1 --> <arg key="second"/>
position 0 --> <arg key="required.first" name="required" position="0"/>
position 1 --> <arg key="required.second" name="required"/>
position 0 --> <arg key="mask.first" name="mask" position="0"/>
position 1 --> <arg key="mask.second" name="mask"/>


> What would be the order if you remove the position="0" from the args?

position 0 --> <arg key="first"/>
position 1 --> <arg key="second"/>
position 2 --> <arg key="required.first" name="required"/>
position 3 --> <arg key="required.second" name="required"/>
position 2 --> <arg key="mask.first" name="mask"/>
position 3 --> <arg key="mask.second" name="mask"/>

> I think the positions should be assigned per validator so 'required' > args 
and 'mask'
> don't affect each other's positions.  

Yes I agree.

> The question then is how to handle default args?

Thats the choice. The last patch I attached treated the default and named 
validators all separtely (so in the above example both ways would have produced 
the results shown in the first i.e. 0 & 1). What I'm proposing now is, in the 
absence of any "position" being specified "named" validators number on from the 
pre-ceeding default ones.

My reasoning being that I usually have the "field name" as the default arg - 
used by every validator - then depending on the validator (like intRange) 
additional ones might be needed. This is what will cater for my typical 
situation and (I assume) most other peoples.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to