Magazine
 
JSF Tags: Tomahawk Tags
 

font-family : verdana, Geneva, Arial,
Helvetica, sans-serif;
font-size: 13px;
color: #000000;
padding: 2;
border-style: solid;
border-width: 2px;
}
.TableHeader {
color: #000000;
background-color: #F1F1F1;
padding: 3;
text-align: center;
border: none;
}
—>
</style>
</head>
<body ><center>
<f:view>
<h:form id=”form1" >
<t:dataTable id=”dt1"
value=”#{DataScrollerBean.
country_Capital}”
var=”item” bgcolor=”#F1F1F1"
border=”10" cellpadding=”5"
cellspacing=”3" first=”0" rows=”2"
width=”50%” dir=”LTR” frame=”hsides”
rules=”all” summary=”This is a JSF code
to create dataTable.”
rowClasses=”TableRow1,TableRow2"
columnClasses=”TableColumn”
styleClass=”TableClass”
headerClass=”TableHeader”>
<f:facet name=”header”>
<h:outputText value=”Countries and
Capitals” />
</f:facet>
<t:column style=”color:green;
fontweight:
bold” headerstyle=
”backgroundcolor:# 99CCFF;”>
<f:facet name=”header”>
<t:outputText value=”Country” />
</f:facet>
<t:outputText
value=”#{item.country}”>
</ t:outputText>
</t:column>
<t:column headerstyle=
”backgroundcolor:# 99CCFF;”>

 

<f:facet name=”header”>
<t:outputText value=”Capital”/>
</f:facet>
<t:outputText value=”#{item.capital}”>
</t:outputText>
</t:column>
</t:dataTable>
<t:dataScroller id=”scroller”
for=”dt1" paginator=”true”
fastStep=”2" paginatorMaxPages=”5"
paginatorActiveColumnStyle=”fontsize:
20px;font-weight:bold;”
immediate=”true”>
<f:facet name=”first” >
<t:graphicImage url=”images/first.gif”
border=”1" />
</f:facet>
<f:facet name=”last”>
<t:graphicImage url=”images/last.gif”
border=”1" />
</f:facet>
<f:facet name=”previous”>
<t:graphicImage url=”images/pre1.gif”
border=”1" />
</f:facet>
<f:facet name=”next”>
<t:graphicImage url=”images/next1.gif”
border=”1" />
</f:facet>
<f:facet name=”fastforward”>
<t:graphicImage url=”images/next2.gif”
border=”1" />
</f:facet>
<f:facet name=”fastrewind”>
<t:graphicImage url=”images/pre2.gif”
border=”1" />
</f:facet>
</t:dataScroller>
</h:form>
</f:view>
</center>
</body>
</html>

Sept 2007 | Java Jazz Up | 20
 
previous
index
next
 
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,

30
, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53 , 54, 55, 56, 57,

58
, 59, 60, 61, 62, 63 , 64, 65 , 66 , 67 , 68 , 69 , 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,   Download PDF