📄 b0280faabe86001b1e499899eff7cdd5
字号:
<%@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 type="javascript">
function clear()
{
alert("清空");
document.edit.data.value="";
}
</script>
</head>
<body bgcolor="#ffffff">
<center>
<br/>
<h1>
<font color="blue">博 客</font>
</h1>
<br/>
<hr width="70%"/>
<br/>
<f:view>
<h:form id="edit">
<table>
<tr>
<td colspan="3">
<h:inputTextarea id="data" cols="80" rows="10"> </h:inputTextarea>
</td>
</tr>
<tr>
<td align="right">
<h:commandButton value="保存" action="#{blogEditForm.save}"> </h:commandButton>
</td>
<td align="center">
<input type="button" value="清除" onclick="clear()"/>
</td>
<td align="left">
<h:commandButton value="退出" action="#{blogEditForm.logout}"> </h:commandButton>
</td>
</tr>
</table>
<br/>
<br/>
<br/>
<h:dataTable value="#{blogEditForm.blogEntries}" border="0" var="blogEntries">
<h:column>
<!--编号-->
<h:outputText value="#{blogEntries.id}" />
</h:column>
<h:column>
<!--编辑-->
<h:commandLink value="编辑" action="#{blogEditForm.edit}">
<f:param name="id" value="blogEntries.id">
</f:param>
</h:commandLink>
</h:column>
<h:column>
<!--删除-->
<h:commandLink value="删除" action="#{blogEditForm.delete}">
<f:param name="id" value="blogEntries.id">
</f:param>
</h:commandLink>
</h:column>
<h:column>
<!--信息-->
<h:outputText value="#{blogEntries.message}" />
</h:column>
</h:dataTable>
</h:form>
</f:view>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -