JSF ModalPanel焦點定位
程序员文章站
2024-03-12 19:44:26
...
瞎忙了半天,原來So Easy...
#{rich:element('DeptID')}.focus();
<a4j:commandButton value="增加部門" id="addButton_ChildLevel" style="width:100px"
reRender="messagePanel,panel,regionPanel"
actionListener="#{bonusOrganizationAction.handleSelectdNode}"
oncomplete="#{messageBean.errorMessage !=''}?Richfaces.showModalPanel('messagePanel'):Richfaces.showModalPanel('panel');
#{rich:element('DeptID')}.focus();">
<a4j:support event="onclick">
<a4j:actionparam value="true"
assignTo="#{salaryControlBean.createDeptdisabled}"></a4j:actionparam>
<a4j:actionparam value=""
assignTo="#{bonusOrganizationAction.errorMessage}"></a4j:actionparam>
</a4j:support>
</a4j:commandButton>
上一篇: Docker常用镜像
推荐阅读