|
Tomahawk Tags |
|
</head>
<body >
<f:view>
<h:form id=”form1" >
<t:dataList id=”dt1"value=”#{
TableBean.perInfoAll}”var=”item” layout=”orderedList” first=”0" rows=”4" dir=”LTR” itemStyleClass=”dataListStyle”>
<t:outputText value=”#{item.firstname}”>
</t:outputText>
<f:verbatim>
</f:verbatim>
<t:outputText value=”#{item.lastname}”></t:outputText>
<f:verbatim>
</f:verbatim>
<t:outputText value=”#{item.phone}”>
</t:outputText>
</t:dataList>
</h:form>
</f:view>
</body>
</html>
TableBean.java :
public class TableBean {
private perInfo[]
perInfoAll = new perInfo[]{
new perInfo(101, “SUSHIL”,”KUMAR”,
“9891444444”, “Delhi”, 111111),
new perInfo(102, “CHANDAN”,”KUMAR”,
“9911666666”, “Bombay” ,222222),
new perInfo(103, “RAVI”,”KANT”,
“9313888888”, “New York”, 333333),
new perInfo(104, “ANDY”,”ROBERTSON”,
“9911222222”, “Florida” , 444444),
new perInfo(105, “SHAUN”,”MARTIN”,
“9313999999”, “Los Angeles”, 555555),
};
public perInfo[] getperInfoAll()
{
return perInfoAll;
}
public class perInfo {
int id;
String firstname;
String lastname;
String phone;
String city;
|
|
int pin;
public perInfo(int id, String firstname,String
lastname, String phone, String city, int pin) {
this.id = id;
this.firstname = firstname;
this.lastname = lastname;
this.phone = phone;
this.city = city;
this.pin= pin;
}
public int getid() {
return id;
}
public String getfirstname() {
return firstname;
}
public String getlastname() {
return lastname;
}
public String getphone() {
return phone;
}
public String getcity() {
return city;
}
public int getpin() {
return pin;
}
}
}
|
|
Nov
2007 | Java Jazz Up | 27 |
|
|
|
View All Topics |
All Pages of this Issue |
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 Download PDF |
|
|
|
|
|
|
|
|
|