bernard
authored
|
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
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
xmlns:notify="http://richfaces.org/sandbox/notify"
>
<head>
<title>Notify sample</title>
<style type="text/css">
.mail .rf-ny-co {
padding: 0 10px;
}
.mail .rf-ny-cl {
margin-top: 4px;
}
.mail .rf-ny-ic {
display: block;
background-image: url(mail.png);
background-position: 50% 50%;
background-repeat: no-repeat;
width: 18px;
height: 20px;
}
</style>
</head>
<body class="rich-container">
<ui:include src="menu.xhtml"/>
<p>
Skinning. Icon, skining by message type.
</p>
<notify:notify title="You've got mail"
nonblocking="#{greeter.nonblocking}"
sticky="true"
styleClass="mail"
/>
<notify:notify title="You've got more mail (hides in 3sec)"
nonblocking="true"
sticky="false"
styleClass="mail"
delay="3000"
stayTime="3000"
/>
<pre>
<div class="rf-ny" style="width: 300px; opacity: 1; display: block; right: 15px; top: 15px;">
<div class="rf-ny-sh"></div> (This div only appears when shadow is turned on.)
<div class="rf-ny-co" style="min-height: 16px;">
<div class="rc-ny-cl" style="cursor: pointer; display: none;">
<span class="rc-ny-cl-ic"></span>
</div>
<div class="rc-ny-ic">
<span></span>
</div>
<div class="rf-ny-tl">Pines Notify</div>
<div class="rf-ny-te">Welcome to Pines Notify.</div>
</div>
</div>
</pre>
<rich:insert src="/notify_2.xhtml" highlight="xhtml"/>
</body>
</html>
|