You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ad...@apache.org on 2008/05/29 17:06:43 UTC
svn commit: r661345 - /ofbiz/trunk/framework/widget/dtd/widget-form.xsd
Author: adrianc
Date: Thu May 29 08:06:42 2008
New Revision: 661345
URL: http://svn.apache.org/viewvc?rev=661345&view=rev
Log:
As discussed on the dev mailing list, add a new form widget field sub-element called on-field-event-update-area - intended initially for Ajax support. Each field widget renderer will perform Ajax calls appropriate for the control.
I'm in the process of finishing the widget code that implements this, but I wanted to get this out there right away due to the parallel Ajax efforts.
Modified:
ofbiz/trunk/framework/widget/dtd/widget-form.xsd
Modified: ofbiz/trunk/framework/widget/dtd/widget-form.xsd
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/dtd/widget-form.xsd?rev=661345&r1=661344&r2=661345&view=diff
==============================================================================
--- ofbiz/trunk/framework/widget/dtd/widget-form.xsd (original)
+++ ofbiz/trunk/framework/widget/dtd/widget-form.xsd Thu May 29 08:06:42 2008
@@ -346,6 +346,7 @@
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" ref="AllFields"/>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="on-field-event-update-area"/>
</xs:sequence>
<xs:attributeGroup ref="attlist.field"/>
</xs:complexType>
@@ -446,6 +447,7 @@
<xs:annotation><xs:documentation>The name of a style (like a CSS class) to apply to the title of this field if required. Will default to form's default-required-field-style. If field is required, but required-field-style is empty, an '*' will be placed to the right of text, textarea and password fields.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:attributeGroup>
+
<!-- ================== FIELD TYPES ==================== -->
<xs:element name="check" substitutionGroup="AllFields">
<xs:complexType>
@@ -950,7 +952,29 @@
</xs:attribute>
</xs:attributeGroup>
- <!-- ================== FIELD SUB-ELEMENTS ==================== -->
+ <!-- ================== Field Events ==================== -->
+ <xs:element name="on-field-event-update-area">
+ <xs:annotation>
+ <xs:documentation>Area to be updated when a field event occurs.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:attributeGroup ref="attlist.on-field-event-update-area"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.on-field-event-update-area">
+ <xs:attribute name="event-type" use="required">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="change"/>
+ <xs:enumeration value="click"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute type="xs:string" name="area-id" use="required"/>
+ <xs:attribute type="xs:string" name="area-target" use="required"/>
+ </xs:attributeGroup>
+
+ <!-- ================== FIELD SUB-ELEMENTS ==================== -->
<xs:element name="entity-constraint">
<xs:complexType>
<xs:attributeGroup ref="attlist.entity-constraint"/>