当前位置: 代码迷 >> Web前端 >> BME学习小结04
  详细解决方案

BME学习小结04

热度:141   发布时间:2012-08-24 10:00:21.0
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如何开启事务?怎么配置?
  相关解决方案