|
JSF Tags: Tomahawk Tags |
|
4. Tomahawk inputHtml tag:
This tag is used to create the Kupu text
editor. To know about this you can visit
the web site http://kupu.oscom.org. The
important thing about this tag is that it
supports one editor per page. You can
use multiple editors if they are placed in
different tags but rendered only one at a
time, for example, in many tabbed panes.
You can customize this editor according to
your requirement. You can add different
tool boxes if required. Different look and
style can be given by the use of CSS.
Code Description :
<%@ 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>
<t:document>
<t:documentHead>
<meta http-equiv=”Content-Type”
content=”text/html;
charset=iso-8859-1">
<title>t:inputHtml example</title>
</t:documentHead>
<t:documentBody >
<h:form>
<t:inputHtml style=”height:300px;
color:green”
addKupuLogo=”true”
showAllToolBoxes=”true” >
</t:inputHtml>
</h:form>
</t:documentBody>
</t:document>
</f:view> |
|
Rendered Output :
5. Tomahawk popup tag:
This tag is used to create the popup
window when user takes the mouse on
the element. This popup is Created on the
mouse event. It has many attributes that
can give it extra functionalities. It has an
attribute responsible for displaying the
popup window at a certain place i.e. we
can set its horizontal distance and
vertical distance from the triggering
element. We can also set when to close this
window, either when triggering element is
left or the popup window is left.
Code Description:
<%@ taglib uri=”http://java.sun.com/jsf/
html” prefix=”h”%>
<%@ taglib ri=”http://java.sun.com/jsf/
core” prefix=”f”%>
<%@ taglib uri=”http://
myfaces.apache.org/tomahawk”
prefix=”t”%>
<f:view>
<html>
<head>
<meta http-equiv=”Content-Type”
content=”text/html; charset=iso-8859-1"> |
|
Sept 2007 | Java Jazz Up | 18 |
|
|
|
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 |
|
|
|
|
|
|
|
|
|