|
Author: adrianc
Date: Wed Jan 21 17:35:49 2015 New Revision: 1653614 URL: http://svn.apache.org/r1653614 Log: Some fixups for the recent widget refactor. Modified: ofbiz/trunk/framework/widget/dtd/widget-form.xsd ofbiz/trunk/framework/widget/src/org/ofbiz/widget/model/ModelFormField.java Modified: ofbiz/trunk/framework/widget/dtd/widget-form.xsd URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/dtd/widget-form.xsd?rev=1653614&r1=1653613&r2=1653614&view=diff ============================================================================== --- ofbiz/trunk/framework/widget/dtd/widget-form.xsd (original) +++ ofbiz/trunk/framework/widget/dtd/widget-form.xsd Wed Jan 21 17:35:49 2015 @@ -1684,7 +1684,25 @@ under the License. <xs:documentation>Specifies the string to display, can use the ${} syntax to insert context values; if empty the value of the field will be printed for a default.</xs:documentation> </xs:annotation> </xs:attribute> - <xs:attribute type="xs:string" name="use-when" /> + <xs:attribute type="xs:string" name="use-when" /> + <xs:attribute name="target-type" default="intra-app"> + <xs:annotation> + <xs:documentation>Deprecated - use the url-mode attribute.</xs:documentation> + </xs:annotation> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="intra-app" /> + <xs:enumeration value="inter-app" /> + <xs:enumeration value="content" /> + <xs:enumeration value="plain" /> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute name="link-style" type="xs:string"> + <xs:annotation> + <xs:documentation>Deprecated - use the style attribute.</xs:documentation> + </xs:annotation> + </xs:attribute> </xs:extension> </xs:complexContent> </xs:complexType> Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/model/ModelFormField.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/model/ModelFormField.java?rev=1653614&r1=1653613&r2=1653614&view=diff ============================================================================== --- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/model/ModelFormField.java (original) +++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/model/ModelFormField.java Wed Jan 21 17:35:49 2015 @@ -3148,6 +3148,9 @@ public class ModelFormField { public SubHyperlink(Element element, ModelFormField modelFormField) { this.description = FlexibleStringExpander.getInstance(element.getAttribute("description")); this.useWhen = FlexibleStringExpander.getInstance(element.getAttribute("use-when")); + // Backwards compatible support + element.setAttribute("style", element.getAttribute("link-style")); + element.setAttribute("url-mode", element.getAttribute("target-type")); this.link = new Link(element); this.modelFormField = modelFormField; } |
| Free forum by Nabble | Edit this page |
