[ http://issues.apache.org/jira/browse/VALIDATOR-122?page=all ]

Niall Pemberton updated VALIDATOR-122:
--------------------------------------

      Bugzilla Id:   (was: 34416)
    Fix Version/s: Validator2

> [validator] Form extends multiple forms
> ---------------------------------------
>
>                 Key: VALIDATOR-122
>                 URL: http://issues.apache.org/jira/browse/VALIDATOR-122
>             Project: Commons Validator
>          Issue Type: Improvement
>          Components: Framework
>         Environment: Operating System: other
> Platform: Other
>            Reporter: Samuel Fleischle
>            Priority: Minor
>             Fix For: Validator2
>
>         Attachments: Form.java, validator_1_2_0.dtd
>
>
> The "extends" attribute in the form elements allows to extend another form as 
> shown in code below.
>    <form name="form1">
>    ...
>    </form>
>    
>    <form name="form2">
>    ...
>    </form>
>    
>    <form name="form3" extends="form1">
>    ...
>    </form>
> To get a bean-centric view of the forms, there is the necessity to extend 
> from 
> more than one form:
>    <form name="form4" extends="form1, form2">
>    ...
>    </form>
> I changed the following code in the Form.class (see also the attachement):
> - List inheritanceList: holds all extended forms
> - setExtends(String): 
>      allows comma-seperated list in the same way like the 
>      depends attribute of the field-element. Fills the inheritanceList
> - process(Map, Map, Map):
>      added a while-loop, to iterate over the inheritanceList
> In the validator_1_2_0.dtd I changed the following:
> - form element contains 0..* field-elements,
> allowing a form without fields, in the case, if all fields are from extends 
> forms.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Reply via email to