⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 60e75779dd86001b1942f4e08fc8f8fe

📁 jsf开发的简单博客
💻
字号:
<%@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"%>
<html>
	<head>
		<title>WebLogEdit</title>
		<script language="javascript">
			function textClear()
			{
				document.getElementById("data").value="";
				document.getElementById("data").focus();
			}
    	</script>
	</head>
	<body bgcolor="#ffffff">
		<center>
			<br />
			<h1>
				<font color="blue">博&nbsp;&nbsp;&nbsp;&nbsp;客</font>
			</h1>
			<br />
			<hr width="70%" />
			<br />
			<f:view>
				<h:form id="edit">
					<table>
						<tr>
							<td colspan="3">
								<h:inputTextarea valueRef="#{blogBean.blog.message}" id="data" cols="80" rows="10">
								</h:inputTextarea>
							</td>
						</tr>
						<tr>
							<td align="right">
								<h:commandButton value="保存" action="#{blogBean.saveAction}">
								</h:commandButton>
							</td>
							<td align="center">
								<input type="button" value="清除" onclick="textClear();" />
							</td>
							<td align="left">
								<h:commandButton value="退出" action="#{blogBean.logoutAction}">
								</h:commandButton>
							</td>
						</tr>
					</table>
					<br />
					<br />
					<br />
					<h:dataTable value="#{blogBean.blogEntries}" border="0"
						var="blogs">
						<h:column>
							<!--编号-->
							<h:outputText value="#{blogBean.blog.id}" />
						</h:column>
						<h:column>
							<!--编辑-->
							<h:commandLink value="编辑" action="#{blogBean.editAction}">
								<f:param name="id" value="blogEntries.id" />
							</h:commandLink>
						</h:column>
						<h:column>
							<!--删除-->
							<h:commandLink value="删除" action="#{blogBean.deleteAction}">
								<f:param name="id" value="blogEntries.id" />
							</h:commandLink>
						</h:column>
						<h:column>
							<!--信息-->
							<h:outputText value="#{blogs.message}" />
						</h:column>
					</h:dataTable>
				</h:form>
			</f:view>
		</center>
	</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -