Bug in the WOGenericElement definition

From: Pierre Frisch (pierre.frisc..pearway.com)
Date: Thu Jun 29 2006 - 16:29:22 EDT


There is an error in the definition of the WOGenericElement and
WOGenericContainer included in the file: woproject/wolips/plugins/
org.objectstyle.wolips.wodclipse/WebObjectDefinitions.xml

The validation message should is:
     <validation message="'elementName' must be bound when either
'formValue' or 'formValues' is bound">
       <and>
         <or>
           <bound name="formValue"/>
           <bound name="formValues"/>
         </or>
         <unbound name="elementName"/>
       </and>
     </validation>

The binding should be name and not elementName. This occurs twice
once for WOGenericElement and once for WOGenericContainer.

This is interesting as name is not listed in the binding in Apple
documentation but must be there for formValue and FormValues. I
suggest to change both definitions as indicated bellow.

Thanks

Pierre

  <wo class="WOGenericElement">
     <binding name="formValue" passthrough="NO"/>
     <binding name="formValues" passthrough="NO"/>
     <binding name="invokeAction" passthrough="NO" defaults="Actions"/>
     <binding name="elementName" passthrough="NO" required="YES"/>
     <binding name="otherTagString" passthrough="NO"/>
     <binding name="omitTags" passthrough="NO" defaults="YES/NO"/>
     <binding name="elementID" passthrough="NO"/>
     <binding name="name" passthrough="NO"/>

     <validation message="'name' must be bound when either
'formValue' or 'formValues' is bound">
       <and>
         <or>
           <bound name="formValue"/>
           <bound name="formValues"/>
         </or>
         <unbound name="name"/>
       </and>
     </validation>

     <validation message="'formValue' and 'formValues' cannot both be
bound">
       <and>
         <bound name="formValue"/>
         <bound name="formValues"/>
       </and>
     </validation>
   </wo>



This archive was generated by hypermail 2.0.0 : Thu Jun 29 2006 - 16:29:32 EDT