[ 
https://issues.apache.org/jira/browse/VALIDATOR-122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sebb resolved VALIDATOR-122.
----------------------------
    Fix Version/s:     (was: 2.0)
       Resolution: Abandoned

> [validator] Form extends multiple forms
> ---------------------------------------
>
>                 Key: VALIDATOR-122
>                 URL: https://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
>         Attachments: ASF.LICENSE.NOT.GRANTED--Form.java, 
> ASF.LICENSE.NOT.GRANTED--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 was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to