HP Integrity NonStop J-Series User Manual

Page 437

Advertising
background image

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>

<f:view>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<head>
<title>Detail</title>
<link href="mycss.css" rel="stylesheet" type="text/css" />
</head>
<body>
<center><h:form id="EmpdetailForm">

<h:panelGrid width="100%" columns="1" border="0">
<h:dataTable id="dt1" border="0" cellpadding="0" cellspacing="0"
var="ab">
<h:column>
<f:facet name="header">
<h:outputText value="SpringFaces" styleClass="style4" />
</f:facet>
</h:column>
</h:dataTable>
</h:panelGrid>

<h:panelGrid width="175px" columns="3" border="0" cellspacing="0"
cellpadding="0">

<h:panelGroup>
<h:dataTable id="dt2" border="0" cellpadding="0" cellspacing="0"
width="250" var="gh">
<h:column>
<f:facet name="header">
<h:outputText value="Displaying Employee Details "
styleClass="style1" />
</f:facet>
</h:column>
</h:dataTable>

<t:dataTable id="dt3" value="" var="item" bgcolor="#F1F1F1"
border="10" cellpadding="5" cellspacing="3" first="0" rows="4"
width="50%" dir="LTR" frame="border" rules="all"
summary="This is a JSF code to create dataTable."
rowClasses="TableRow1,TableRow2" columnClasses="TableColumn"
styleClass="TableClass" headerClass="TableHeader"
footerClass="TableFooter">
<f:facet name="header">
<h:outputText value="Employee Information" />
</f:facet>
<t:column style="color:green; font-weight:bold"
headerstyle="background-color:#99CCFF;">
<f:facet name="header">
<t:outputText value="Employee Id" />
</f:facet>
<t:outputText value="#{EmpBean.empid}"></t:outputText>
</t:column>
<t:column headerstyle="background-color:#99CCFF;">
<f:facet name="header">
<t:outputText value="Firstname" />
</f:facet>
<t:outputText value="#{EmpBean.firstname}"></t:outputText>
</t:column>
<t:column headerstyle="background-color:#99CCFF;">
<f:facet name="header">
<t:outputText value="Lastname" />
</f:facet>
<t:outputText value="#{EmpBean.lastname}"></t:outputText>
</t:column>
<t:column headerstyle="background-color:#99CCFF;">
<f:facet name="header">

Example of Integrating MyFaces into Spring 437

Advertising
This manual is related to the following products: