You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2005/04/12 14:44:12 UTC

DO NOT REPLY [Bug 34416] New: - Form extends multiple forms

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=34416>.
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=34416

           Summary: Form extends multiple forms
           Product: Commons
           Version: unspecified
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Validator
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: s.fleischle@key-software.com


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.

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