This is an automated email from the ASF dual-hosted git repository. nmalin pushed a commit to branch release22.01 in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/release22.01 by this push: new 6e2b9bd088 Improved: Add missing parameter on xsd for widget-form:on-field-event-update-area (OFBIZ-12586) 6e2b9bd088 is described below commit 6e2b9bd08894c1eb659ba44112f26743e42e22da Author: Nicolas Malin <nicolas.ma...@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>