You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by nm...@apache.org on 2022/07/01 16:32:39 UTC
[ofbiz-framework] branch trunk updated: Improved: Add missing parameter on xsd for widget-form:on-field-event-update-area (OFBIZ-12586)
This is an automated email from the ASF dual-hosted git repository.
nmalin pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push:
new 576307ac5c Improved: Add missing parameter on xsd for widget-form:on-field-event-update-area (OFBIZ-12586)
576307ac5c is described below
commit 576307ac5ce1a830c52abbed0bc0ea22a612a368
Author: Nicolas Malin <ni...@nereide.fr>
AuthorDate: Fri Jul 1 18:30:27 2022 +0200
Improved: Add missing parameter on xsd for widget-form:on-field-event-update-area (OFBIZ-12586)
On the widget-form.xsd definition, the element on-field-event-update-area haven't possibility to define some parameters.
But on java code, the on-field-event-update-area is read like on-event-update-area.
If you put some parameters on your code, your editor raise a syntax error but OFBiz analyse and execute it well.
<wf:field name="reload" >
<wf:submit/>
<wf:on-field-event-update-area event-type="click"
area-target="ReloadIt">
<wf:auto-parameters-service service-name="computeForReload" send-if-empty="false"/>
</wf:on-field-event-update-area>
</wf:field>
By the way we can synchronize the on-field-event-update-area xsd on on-event-update-area.
---
framework/widget/dtd/widget-form.xsd | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/framework/widget/dtd/widget-form.xsd b/framework/widget/dtd/widget-form.xsd
index d79fdb3cac..50c779e573 100644
--- a/framework/widget/dtd/widget-form.xsd
+++ b/framework/widget/dtd/widget-form.xsd
@@ -1546,6 +1546,11 @@ under the License.
<xs:documentation>Area to be updated when a field event occurs.</xs:documentation>
</xs:annotation>
<xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" ref="auto-parameters-service"/>
+ <xs:element minOccurs="0" ref="auto-parameters-entity"/>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="parameter" />
+ </xs:sequence>
<xs:attribute name="event-type" use="required">
<xs:simpleType>
<xs:restriction base="xs:token">
@@ -1554,8 +1559,8 @@ under the License.
</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:attribute type="xs:string" name="area-id" />
+ <xs:attribute type="xs:string" name="area-target" />
</xs:complexType>
</xs:element>