日期:2014-05-18  浏览次数:20805 次

请问JSF中,弹出“删除确认”窗口如何实现?
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:c="http://java.sun.com/jsp/jstl/core"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:t="http://myfaces.apache.org/tomahawk"
  xmlns:tr="http://myfaces.apache.org/trinidad"
  xmlns:trh="http://myfaces.apache.org/trinidad/html">
  <jsp:directive.page contentType="text/html;charset=UTF-8"/>
  <c:set var="ctxPath" value="${request.contextPath}"/>
  <f:view>
  <trh:html>
  <trh:head title="四川电信 - 内控支撑系统 - [角色列表]">
  <link href="${ctxPath}/css/default.css" type="text/css" rel="stylesheet"/>
  </trh:head>
  <trh:body>
  <t:div id="container">
  <t:div id="divheader">
  <jsp:directive.include file="../../header.jspf"/>
  </t:div>

  <div id="center">
  <t:div id="divmenu">
  <jsp:directive.include file="../../menu.jspf"/>
  </t:div>
  <t:div id="divmain">
  <tr:form>
  <tr:messages inlineStyle="width:300px;"/>
  <tr:table value="#{roleListBacking.allTRoles}" var="role" emptyText="当前还没有任何角色"
  rowSelection="single" binding="#{roleListBacking.table}">
  <tr:column>
  <f:facet name="header">
  <tr:outputText value="角色名称"/>
  </f:facet>
  <tr:outputText value="#{role.roleName}"/>
  </tr:column>
  <tr:column>
  <f:facet name="header">
  <tr:outputText value="角色等级"/>
  </f:facet>
  <tr:outputText value="#{role.roleLevel}"/>
  </tr:column>
  <f:facet name="footer">
  <tr:panelGroupLayout layout="horizontal">
  <tr:commandLink text="查看" action="#{roleListBacking.viewRoleAction}"/>
  <tr:spacer width="5"/>
  <tr:commandLink text="修改" action="#{roleListBacking.editRoleAction}"/>
  <tr:spacer width="5"/>