【JSP开源代码栏目提醒】:网学会员为需要JSP开源代码的朋友们搜集整理了updateOrDeleteAirline.jsp相关资料,希望对各位网友有所帮助!
<%@page contentType="text/html; charset=GBK"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://richfaces.ajax4jsf.org/rich" prefix="rich"%>
<%@taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
<html>
<head>
<title>Show All Airline</title>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<LINK href="${ctx}/css/text.css" type="text/css" rel="stylesheet" />
<noscript>
<iframe src="*.jsp,*.jsf"></iframe>
</noscript>
</head>
<f:view locale="zh_CN">
<body bgcolor="#f0f0f0" oncontextmenu="window.event.returnValue=false">
<h:form id="airlineForm">
<rich:panel>
<f:facet name="header">
<h:outputText value="Airline List" />
</f:facet>
<h:outputText id="airlineListError" value="#{airlineEditAction.airlineListError}" style="font-size: 14px; color: #FF8040"/>
<h:dataTable value="#{airlineEditAction.airlineList}" id= "airlineListData"
var="airline" rowClasses="evenRows,oddRows" width="95%" styleClass="orders" headerClass="ordersHeader">
<h:column>
<f:facet name="header">
<h:outputText value="ID" />
</f:facet>
<h:outputText value="#{airline.id}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Name" />
</f:facet>
<h:outputText value="#{airline.name}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Departure" />
</f:facet>
<h:outputText value="#{airline.start}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Destination" />
</f:facet>
<h:outputText value="#{airline.end}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Description" />
</f:facet>
<a4j:commandLink id="link" >
<rich:componentControl for="desPanel" attachTo="link" operation="show" event="onclick"/>
<h:outputText value="find" />
</a4j:commandLink>
<rich:modalPanel id="desPanel" width="350" height="100" >
<f:facet name="header">
<h:panelGroup>
<h:outputText value="#{airline.name}"></h:outputText>
</h:panelGroup>
</f:facet>
<f:facet name="controls">
<h:panelGroup>
<h:graphicImage value="/image/close.png" style="cursor:pointer" id="hidelink"/>
<rich:componentControl for="desPanel" attachTo="hidelink" operation="hide" event="onclick"/>
</h:panelGroup>
</f:facet>
<h:outputText value="#{airline.description}" style="font-family: Verdana, Arial, Sans-Serif; font-size: 14px"></h:outputText>
</rich:modalPanel>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Edit" />
</f:facet>
<a4j:commandLink id="link2" >
<rich:componentControl for="deletePanel" attachTo="link2" operation="show" event="onclick"/>
<h:outputText value="Delete" />
</a4j:commandLink>
<rich:modalPanel id="deletePanel" width="350" height="100" >
<f:facet name="header">
<h:panelGroup>
<h:outputText value="Delete #{airline.name}"></h:outputText>
</h:panelGroup>
</f:facet>
<f:facet name="controls">
<h:panelGroup>
<h:graphicImage value="/image/close.png" style="cursor:pointer" id="hidelink2"/>
<rich:componentControl for="deletePanel" attachTo="hidelink2" operation="hide" event="onclick"/>
</h:panelGroup>
</f:facet>
<h:outputText value="Are you sure you want to delete this airline?" style="font-family: Verdana, Arial, Sans-Serif; font-size: 14px"></h:outputText>
<br/><br/>
<div align="center">
<a4j:commandButton action="#{airlineEditAction.deleteAirlineById}" value="Delete Airline" id="hidelink3" reRender="airlineListData,airlineListError">
<f:param name="id" value="#{airline.id}"/>
<rich:componentControl for="deletePanel" attachTo="hidelink3" operation="hide" event="onclick"/>
</a4j:commandButton>
</div>
</rich:modalPanel>
</h:column>
</h:dataTable>
<h:outputText value = "#{airlineEditAction.deleteError}" style="font-size: 14px; color: #FF8040"/>
<h:messages layout="table"></h:messages>
</rich:panel>
</h:form>
</body>
</f:view>
</html>
上一篇:
updateNewsSuccess.jsp
下一篇:
行走梵净山之(三)一世一遇,即是懂得