
复制 问题
|
创建 子任务
|
|
如果你是 登录 你不能看到更多操作.
|
|
|
easyjweb
创建: 19/十一月/07 09:07 下午
更新: 21/十一月/07 12:47 下午
|
|
| 模块: |
无
|
| 影响版本: |
无
|
| 修复版本: |
无
|
|
|
示例
public Page doList(WebForm form, Module module) {
QueryObject query = new QueryObject();
form.toPo(query);
IPageList pageList = this.service.queryPermission(query);
CommUtilForTeaec.saveIPageList2WebForm(pageList, form);
Page p=page("list");
if(p==null)p=new Page("list",","classpath:com/easyjf/core/views/permissionList.html");
return p;
}
在这个方法中,首先查找逻辑名为"list"的Page,如果找不到,则使用new Page来创建一个备选的Page。这种需求在很多地方(如EasyJF-Applicatio-Core的权限管理)中用到。可以把这个功能做成一个实用工具,放在某个地方,便于直接调用。
|
|
描述
|
示例
public Page doList(WebForm form, Module module) {
QueryObject query = new QueryObject();
form.toPo(query);
IPageList pageList = this.service.queryPermission(query);
CommUtilForTeaec.saveIPageList2WebForm(pageList, form);
Page p=page("list");
if(p==null)p=new Page("list",","classpath:com/easyjf/core/views/permissionList.html");
return p;
}
在这个方法中,首先查找逻辑名为"list"的Page,如果找不到,则使用new Page来创建一个备选的Page。这种需求在很多地方(如EasyJF-Applicatio-Core的权限管理)中用到。可以把这个功能做成一个实用工具,放在某个地方,便于直接调用。 |
Show » |
|
public Page doList(WebForm form, Module module) {
QueryObject query = new QueryObject();
form.toPo(query);
IPageList pageList = this.service.queryResource(query);
CommUtilForTeaec.saveIPageList2WebForm(pageList, form);
return this.findPage("list","classpath:com/easyjf/core/views/resourceList.html");
}