|
JSF Tags: Tomahawk Tags |
|
Rendered Output :
The figure below shows that when we click
on fast forward element then it moves
ahead by 2 pages because “fastStep”
attribute has been set to the value “2”.
Backing bean (DataScrollerBean.java)
package net.roseindia.web.ui;
public class DataScrollerBean {
private CountryCapital[] country_Capital =
new CountryCapital[]{
new CountryCapital(“India”,”New Delhi”),
new CountryCapital(“United
States”,”Washington D.C.”),
new CountryCapital(“Russia”,”Moscow”),
new CountryCapital(“United
Kingdom”,”London”),
new CountryCapital(“Mexico”,”Mexico City”),
new CountryCapital(“Japan”,”Tokyo”),
new CountryCapital(“Germany”,”Berlin”),
|
|
new CountryCapital(“France”,”Paris”),
new CountryCapital(“China”,”Beijing”),
new
CountryCapital(“Denmark”,
”Copenhagen”),
new CountryCapital(“Brazil”,”Brasilia”),
new CountryCapital(“Bangladesh”,”Dhaka”),
new CountryCapital(“Australia”,”Canberra”),
new CountryCapital(“Fiji”,”Suva”)
};
public CountryCapital[]
getCountry_Capital() {
return country_Capital;
}
public class CountryCapital {
String country;
String capital;
public CountryCapital(String
country,String capital) {
this.country = country;
this.capital = capital;
}
public String getCountry() {
return country;
}
public String getCapital() {
return capital;
}
}
}
7. Tomahawk panelTabbedPane tag :
This tag is used to create a tabbed
pane. Its has the capability of switching
the tabs at client side or server side. If
its “serverSideTabSwitch” attribute is set
to true then switching is server side
otherwise it is client side. If we want a
specific tab to be opened by default when it
is rendered then we can set its“selectIndex” attribute to any integer
value. Here index value starts from 0 i.e.
setting the value to 0 indicates to the first
tab and 1 to the second tab and so on. This tag offers a lot of attributes to make it
according to your need of look and
functionality. The “panelTab” tag is used
with “panelTabbedPane” tag to create
tabs for panel. It has label attribute to
give label for the tab
|
|
Sept 2007 | Java Jazz Up | 21 |
|
|
|
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 |
|
|
|
|
|
|
|
|
|