ofbiz表单标签树图

前言

以下是笔者自己总结的,关于ofbiz中form.xml文件的标签树。因本人对ofbiz的研究有限,所以无法体现的所有标签,但也希望能给读者带来帮助。
其中有几点需要注意的:

  • 标签的父子关系通过序号来体现,比如:actions标签的序号是1.1.1,form标签的序号是1.1,所以actions标签就是form的子标签。
  • 标签的属性由标签后的"----"引出。
  • 属性之间由"||"分隔而开。
  • 属性后的"()"用来体现该属性的 值 或 示例,比如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

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 134,993评论 19 139
  • pyspark.sql模块 模块上下文 Spark SQL和DataFrames的重要类: pyspark.sql...
    mpro阅读 9,513评论 0 13
  • mean to add the formatted="false" attribute?.[ 46% 47325/...
    ProZoom阅读 2,727评论 0 3
  • 可乐 真 好喝 喝得我 打嗝
    雨野阅读 211评论 2 1
  • 第一次接触波浪效果来自于拉钩的个人详情页,觉得它的效果不错,便自己使用Objective-C实现了一下,先看拉钩的...
    Elenx阅读 3,194评论 5 16