|
ller {
//在页面流中声明使用的控件
.apache.beehive.controls.api.bean.Control()
protected EjbFinder _ejbFinderControl;
.apache.beehive.controls.api.bean.Control()
protected FileControl _fileControl;
……
//每个Action都对应一次页面流转的动作,以下action对应一个添加反馈主题的动作
.Action()
public Forward addTopic() {
this.topicForm = null;
this.topicForm = new TopicForm();
topicForm.setFileList(new ArrayList());
this.loadLinkman();
return new Forward("newTopic");
}
……
在页面文件中可以使用netui标记,实现绑定数据,资源声明,模板使用等功能,这样在页面文件中可以最大限度的减少java编码,使得页面更容易维护和管理。以下是一个显示主题列表的页面 topicList.jsp: <netui-template:template templatePage="../web/template/template.jsp">
<netui-template:section name="leftCol" >
<jsp:include page="newTopicNav.jsp" />
</netui-template:section>
<netui-template:section name="centerCol" >
<ejar-ui:window width="70%" title="">
<netui:form action="/newTopic">
<% file="../web/template/errors.jspf"%>
<table>
<tr>
<td>
<netui:span value=""></netui:span>
</td>
<td>
<netui:select dataSource="pageFlow.topicForm.receiverName" optionsDataSource=""></netui:select>
</td>
</tr>
<tr>
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >>
|