`
XieGuoWei123485
  • 浏览: 65763 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

BME学习总结04

 
阅读更多
//uploadesbbar.usl
<bme:view>
<bme:script>
$(function(){
var isLocalUpload = $("#isLocalUpload").val();
if(isLocalUpload == "true"){
$("#localFile *").removeAttr("disabled");
$("#serverFile *").attr("disabled","true");
$("#localRadio").attr("checked","true");
}else{
$("#localFile *").attr("disabled","true");
$("#serverFile *").removeAttr("disabled");
$("#serverRadio").attr("checked","true");
}
$("input[name='radio']").click(function(){
if($(this).attr("id")=="localRadio")
{
$("#localFile *").removeAttr("disabled");
$("#serverFile *").attr("disabled","true");

$("#isLocalUpload").val("true");
}
else
{
$("#localFile *").attr("disabled","true");
$("#serverFile *").removeAttr("disabled");

$("#isLocalUpload").val("false");
}
});
});
</bme:script>

<bme:panel title="Select BAR" id="selectPanel">
<input type="hidden" id="isLocalUpload" name="isLocalUpload" value="${isLocalUpload }">${isLocalUpload }
<div style="border: 1px solid #DEDCDD">
<br/>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tbody>
<tr><td valign="top">
<bme:block lineend="true" cols="8">
<bme:cell>
<input type="radio" checked="checked" name="radio" id="localRadio" style="margin-top:4px;margin-left:4px;"/>
</bme:cell>
<bme:cell colspan="6">
<bme:field label="Local File" id="localFile" type="file" property="upload" required="true">
</bme:field>
</bme:cell>
<bme:cell>&nbsp;</bme:cell>

<bme:cell>
<input type="radio" name="radio" id="serverRadio" style="margin-top:4px;margin-left:4px;"/>
</bme:cell>
<bme:cell colspan="6">
<bme:field label="Server File" id="serverFile" property="serverBARPath" required="true" readonly="true">
<bme:addon>
<bme:button id="select" value="Browse...">
<bme:fire event="click" validation="false" mode="navigate" service="browseServerBAR('%{#BMEModel}')" targetstep="browseBAR"></bme:fire>
</bme:button>
</bme:addon>
</bme:field>
</bme:cell>
<bme:cell>&nbsp;</bme:cell>

<bme:cell fullline="true">
<br/>
<bme:buttongroup align="right">
<bme:button value="Next">
<bme:fire mode="navigate" event="click" service="toDeployBAR('%{#BMEModel}')"></bme:fire>
</bme:button>
&nbsp;&nbsp;&nbsp;&nbsp;
</bme:buttongroup>
</bme:cell>
</bme:block>
</td></tr>
</tbody>
</table>
<br/>
</div>
</bme:panel>
</bme:view>
分享到:
评论
1 楼 Will_Turner 2012-03-21  
大哥,bme如何开启事务?怎么配置?

相关推荐

Global site tag (gtag.js) - Google Analytics