You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Niall Pemberton (JIRA)" <ji...@apache.org> on 2006/07/19 15:22:32 UTC

[jira] Updated: (VALIDATOR-122) [validator] Form extends multiple forms

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

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

    Component/s: Framework

> [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
>         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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org