
<?xml version="1.0" encoding="utf-8"?>
<SimpleControl name="FormBase" descriptors="xworker.http.controls.SimpleControl">
<actions>
<GroovyAction name="doAction">
<code><![CDATA[def g = actionContext.g();
g.put("label", "这是一个标签");
g.put("textArea", "TextArea的值");
return "success";]]></code>
</GroovyAction>
</actions>
<view title="FormBase">
<otherHeads><![CDATA[<meta http-equiv="content-type" content="text/html; charset=utf-8">
<LINK REL ="stylesheet" TYPE="text/css" HREF="fckeditor/2_6beta1/editor/css/fck_editorarea.css" TITLE="Style"/>
<script type="text/javascript" src="js/xworker/InnerBrowserUtil.js"></script>]]></otherHeads>
<Bootstrap></Bootstrap>
<form navbar-form="false">
<XWorkerForm name="xworkerForm">
<dataObjects>
<AbstractDataObject storeSortDir="ASC">
<attribute name="input" label="输入框"></attribute>
<attribute name="textArare" label="文本区" inputtype="textarea"></attribute>
<attribute name="label" label="标签" inputtype="label"></attribute>
<attribute name="select" label="下拉选择框" inputtype="select">
<value name="1" label="男" value="1"></value>
<value name="2" label="女" value="2"></value>
</attribute>
<attribute name="mulSelect" label="下拉多选框" inputtype="multSelect" extends="xworker.example.web.bootstrap.xworker.FormBase/@view/@form/@xworkerForm/@dataObjects/@AbstractDataObject/@select"></attribute>
<attribute name="truefasel" label="真假" inputtype="truefalse"></attribute>
<attribute name="password" label="密码框" inputtype="password"></attribute>
<attribute name="date" label="日期选择器" inputtype="datePick"></attribute>
<attribute name="dateTime" label="日期时间" inputtype="dateTime"></attribute>
<attribute name="time" label="时间" inputtype="time"></attribute>
<attribute name="color" label="颜色选择" inputtype="colorpicker"></attribute>
<attribute name="file" label="文件选择" inputtype="file"></attribute>
</AbstractDataObject>
</dataObjects>
</XWorkerForm>
</form>
</view>
<result name="success" value="xworker.example.web.bootstrap.xworker.FormBase/@view"></result>
</SimpleControl>