前言
以下是筆者自己總結的,關于ofbiz中form.xml文件的標簽樹。因本人對ofbiz的研究有限,所以無法體現(xiàn)的所有標簽,但也希望能給讀者帶來幫助。
其中有幾點需要注意的:
- 標簽的父子關系通過序號來體現(xiàn),比如:actions標簽的序號是1.1.1,form標簽的序號是1.1,所以actions標簽就是form的子標簽。
- 標簽的屬性由標簽后的"----"引出。
- 屬性之間由"||"分隔而開。
- 屬性后的"()"用來體現(xiàn)該屬性的 值 或 示例,比如display標簽的type屬性可以等于date,即<display type="true">。
- 標簽或標簽中屬性的效果,此處未言,只能靠讀者自己嘗試了。
1.form.xml
1.1.Form----name||type(single,list)||target||title||default-map-name||header-row-style(header-row)||default-table-style(basic-table)||default-entity-name||odd-row-style(alternate-row)||separate-columns(true)
1.1.1.Actions
1.1.1.1.Set----field||value
1.1.1.2.Service
1.1.1.2.1.Field-map----field-name||from-field
1.1.2.alt-target----use-when||target
1.1.3.Field----name||title||widget-style(buttontext,required,dateISO,smallSubmit)||position||tooltip||sort-field(true)||use-when(agreementId==null)
1.1.3.1.text-find----hide-options(true)
1.1.3.2.Submit----button-type(button)
1.1.3.3.Hyperlink----description||target||confirmation-message||target-type(intra-app)
1.1.3.3.1.Parameter----param-name
1.1.3.4.Display----type(date)
1.1.3.5.Text----default-value||size
1.1.3.6.Lookup----target-form-name||size
1.1.3.7.Date-time
1.1.3.8.Textarea----rows||cols||default-value
1.1.3.9.drop-down----allow-empty(true)||no-current-selected-key
1.1.3.9.1.entity-options----description||entity-name||key-field-name
1.1.3.9.1.1.entity-constraint----name||value
1.1.3.9.1.2.entity-learn-by----field-name
1.1.3.9.1.3.entity-order-by----field-name
1.1.3.9.2.Option----key||description
1.1.3.10.Hidden----value
1.1.3.11.display-entity----entity-name||description||key-field-name
1.1.3.12.Ignored
1.1.3.13.auto-fields-service----service-name||map-name
1.1.3.14.sort-order
1.1.3.14.1.Field-group----collapsible(true)||title||initially-collapsed(true)
1.1.3.14.1.1.Sort-field
1.1.3.14.2.sort-field----name