appfuse webwork 1.8.2 动态隐藏下拉框,下拉框事件提交等
来源:互联网 发布:程序员 团队合作意识 编辑:程序博客网 时间:2024/05/16 08:44
当前页面通过获取目标参数,判断是否隐藏目标下拉框,在点击某下拉框时会提交form并返回目标参数
<%@ include file="/common/taglibs.jsp"%>
<%
String game = null;
String flag = null;
if (getServletContext().getAttribute("game") != null) {
game = (String) getServletContext().getAttribute("game");
}
if (game == null || game.equals("game")) {
flag = "true";
}else{
flag = "false";
}
%>
<title><fmt:message key="wapcontentDetail.title" /></title>
<content tag="heading">
<fmt:message key="wapcontentDetail.heading" />
</content>
<ww:form name="'wapcontent'" action="'saveWapcontent'" method="'post'"
validate="true">
<table class="detail">
<ww:hidden name="'wapcontent.contentId'" value="wapcontent.contentId" />
<ww:textfield label="getText('wapcontent.titles')"
name="'wapcontent.title'" value="wapcontent.title" required="true" />
<ww:select
label="getText('wapcontent.wapcontenttype.contentTypeNames')"
name="'wapcontenttype.contentTypeId'" list="wapcontenttypes"
listValue="contentTypeName" listKey="contentTypeId"
onchange='"doSubmit(this.form)"'>
</ww:select>
<ww:if test="<%=flag%>">
<ww:select label="getText('wapcontent.provider.providertype.cpname')"
name="'cpprovider.providerId'" list="cpproviders" listValue="name"
listKey="providerId" value="name" />
<ww:select label="getText('wapcontent.provider.providertype.spname')"
name="'spprovider.providerId'" list="spproviders" listValue="name"
listKey="providerId" value="name" />
</ww:if>
<ww:select label="getText('wapcontent.provider.providerstatus.sname')"
name="'providerstatus.sid'" list="providerstatus" listValue="sname"
listKey="sid" value="sname" />
<ww:textfield label="getText('wapcontent.createDate')"
name="'wapcontent.createDate'" value="wapcontent.createDate"
required="true" />
<ww:textfield label="getText('wapcontent.usedNum')"
name="'wapcontent.usedNum'" value="wapcontent.usedNum"
required="true" />
<ww:textfield label="getText('wapcontent.downNum')"
name="'wapcontent.downNum'" value="wapcontent.downNum"
required="true" />
<ww:textarea label="getText('wapcontent.detail')"
name="'wapcontent.detail'" value="wapcontent.detail" required="true"></ww:textarea>
<ww:textarea label="getText('wapcontent.description')"
name="'wapcontent.description'" value="wapcontent.description"
required="true"></ww:textarea>
<tr>
<td></td>
<td class="buttonBar">
<input type="submit" class="button" name="save"
value="<fmt:message key="button.save"/>" />
<input type="submit" class="button" name="delete"
onclick="return confirmDelete('Wapcontent')"
value="<fmt:message key="button.delete"/>" />
<input type="submit" class="button" name="cancel"
value="<fmt:message key="button.cancel"/>" />
</td>
</tr>
</table>
</ww:form>
<script type="text/javascript">
function doSubmit(form){
form.action="getProviders.html";
form.target = "_self";
form.submit();
}
</script>
- appfuse webwork 1.8.2 动态隐藏下拉框,下拉框事件提交等
- 参数模板动态隐藏下拉框
- easyui隐藏下拉框
- 显示隐藏div并验证提交,下拉框赋值
- 利用onchang()事件一选中下拉框就提交值
- js选下拉框 提交 (触发事件)
- jquery下拉框事件
- 下拉框选中事件
- 实现动态下拉框
- 下拉框动态实现
- 动态级联下拉框
- 动态下拉框
- 动态下拉框
- 动态提示下拉框
- appfuse webwork 1.8.2 doubleselect 样例
- EXTJS中,下拉框绑定事件,动态赋值
- Select下拉框动态获取数据,并触发事件
- C# 下拉框事件捕获
- 51去南昌
- 国内首家!最新ZIGBEE协议栈!
- 今天是四月二十二号
- java中连接池的实现
- solr facet是个好东东
- appfuse webwork 1.8.2 动态隐藏下拉框,下拉框事件提交等
- solr的索引更新
- PDA中原来可以直接连接上数据库?
- 关于LR问题求助
- appfuse webwork 1.8.2 doubleselect 样例
- NB61NewAndNoteWorthy
- 文档安全管理系统类产品分析
- [转帖]Java与.NET 的Web Services相互调用(axis)
- 中国人的尊严神圣不可侵犯!