-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathfeatures.html
More file actions
277 lines (252 loc) · 10.3 KB
/
features.html
File metadata and controls
277 lines (252 loc) · 10.3 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Meta, title, CSS, favicons, etc. -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Juzu Web Framework</title>
<!-- Juzuweb CSS -->
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="css/site.css" />
<!-- Juzuweb Favicons -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-1292368-37', 'juzuweb.org');
ga('send', 'pageview');
</script>
</head>
<body class="body-page">
<nav id="navbarTop" class="navbar navbar-default navbar-fixed-top affix" role="navigation">
<a href="https://github.com/crashub">
<img class="github img-responsive"class="github" alt="Fork me on GitHub" src="../images/github.png">
</a>
<div class="container">
<div class="row">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbarCollapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="logo" href="index.html"><img class="img-responsive"alt="logo" src="../images/logo.png"></a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="nav navbar-nav navbar-right">
<li ><a href="/">Home</a></li>
<li class="active"><a href="/features.html">Features</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Documentation <i class="arrowIcon"></i></a>
<ul class="dropdown-menu">
<li><a href="reference/index.html" target="blank_"><span>Reference</span></a></li>
<li><a href="javadoc/index.html" target="blank_"><span>Javadoc</span></a></li>
<li><a href="extension/index.html" target="blank_"><span>Extension</span></a></li>
<li><a href="tutorial/index.html" target="blank_"><span>Weather Tutorial</span></a></li>
<li><a href="tutorial-portlet/index.html" target="blank_"><span>JuZcret Tutorial</span></a></li>
<li><a href="http://www.slideshare.net/exoplatform/e-xoers-on-the-grill-juzu-46208480" target="blank_"><span>Presentation</span></a></li>
</ul>
</li>
<li ><a href="/screencasts.html">Screencasts</a></li>
<li class="menu-icon-item">
<ul class="clearfix">
<li><a href="https://github.com/juzu/juzu"><i class="uiIconCrash uiIconGithub"></i></a></li>
<li><a href="https://twitter.com/juzuweb"><i class="uiIconCrash uiIconTwitter"></i></a></li>
<li><a href="http://community.exoplatform.com/portal/g/:spaces:juzu/juzu/forum"><i class="uiIconCrash uiIconExo"></i></a></li>
</ul>
</li>
</ul>
</div><!-- /.navbar-collapse -->
</div>
</div><!-- /.container-fluid -->
</nav><!-- /.navbar-top -->
<div class="features-page">
<section class="section-banner">
<section class="banner-small">
<div class="caption">
<h2 class="text-center">Web Framework to develop powerful web applications</h2>
</div>
</section> <!-- end banner -->
</section>
<div class="whiteBlock">
<div class="container">
<div class="features">
<div class="page-header"><h1 class="big-title-with-arrow">Features</h1></div>
<div class="row">
<div class="col-md-6">
<h3 class="title-with-line"><span>Web Client Programming</span></h3>
<p>Juzu makes client side programming easy as it supports declarative assets for JavaScript and Stylesheet.</p>
<p>You can also easily reuse client-side web libraries in your project with the Webjars support.</p>
</div>
<div class="col-md-6">
<div class="resources bgBlue1">
<pre><code>@WebJars(@WebJar("jquery"))
@Scripts(
{
@Script(id = "jquery", value = "jquery/1.10.2/jquery.js"),
@Script(value = "javascripts/myJs.js", depends = "jquery")
}
)
@Assets("*")</code></pre>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6 col-md-push-6">
<h3 class="title-with-line"><span>Controller</span></h3>
<p>Process all the requests of your application using controllers: a simply annotated method of the application with @View, @Action, @Resources or @Event.</p>
<p>Controllers request parameters can be Primitive Types, Multivalued Type and Bean types.</p>
</div>
<div class="col-md-6 col-md-pull-6">
<div class="resources bgOrange">
<pre><code>@View
public Response.Content index() {
...
}
@Action
public Response login(@Mapped User user) {
...
}</code></pre>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<h3 class="title-with-line"><span>Graphical component libraries</span></h3>
<p>Create your own libraries of Graphical Component and reuse it in any Juzu application by implementing simple tags.</p>
<p>Simple tags allow creation of custom tags with templates.</p>
</div>
<div class="col-md-6">
<div class="resources bgGreen">
<pre><code>//my reusable footer
<div class="footer">
Created with <a
href="http://www.github.com/juzu">juzu</a>
</div></code></pre>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6 col-md-push-6">
<h3 class="title-with-line"><span>Dependency Injection</span></h3>
<p>Declare your custom bean in one place and use them anywhere in the application using the @Inject annotation.</p>
<p>Let the IOC container managing the service lifecycle (instantiation, inject dependencies).</p>
</div>
<div class="col-md-6 col-md-pull-6">
<div class="resources bgViolet">
<pre><code>@Bindings({
@Binding(
value = org.juzu.tutorial.services.SecretService.class,
implementation =
org.juzu.tutorial.services.SecretServiceImpl.class,
scope = Scope.SINGLETON)
})
package org.juzu.tutorial;</code></pre>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<h3 class="title-with-line"><span>Modularity</span></h3>
<p>Juzu can be extended with plugins and template engines.</p>
</div>
<div class="col-md-6"></div>
</div>
<div class="row modularity">
<div class="col-md-6">
<h4><strong>LESS plugin</strong></h4>
<p>The LESS plugin compiles .less files to .css files during the compilation of the project:</p>
</div>
<div class="col-md-6">
<div class="resources bgBlue2">
<pre><code>@Less(value = "bootstrap.less", minify = true)
package my.app;</code></pre>
</div>
</div>
</div>
<div class="row modularity">
<div class="col-md-6">
<h4><strong>Webjars plugin</strong></h4>
<p>Reuse web assets in your project with the Webjars support:</p>
</div>
<div class="col-md-6">
<div class="resources bgBlue2">
<pre><code>@Application
@WebJars("jquery.js")
@Assets(scripts = { @Script(id = "jquery", src="jquery.js") })
package my.app;</code></pre>
</div>
</div>
</div>
<div class="row modularity">
<div class="col-md-6">
<h4><strong>Portlet plugin</strong></h4>
<p>The portlet plugin is able to generate a Portlet class for running the Juzu application. It also provides dependency injection for Portlet Preferences:</p>
</div>
<div class="col-md-6">
<div class="resources bgBlue2">
<pre><code>@Inject
PortletPreferences prefs;</code></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<div class="container">
<p class="pull-left">Sponsored by <a href="http://www.exoplatform.com" class="text-blue">eXo Platform</a></p>
<ul class="footer-links pull-right clearfix">
<li>Follow us: </li>
<li><a href="https://www.facebook.com/eXoPlatform"><i class="uiIconSoc uiIconFacebook"></i></a></li>
<li><a href="https://twitter.com/eXoPlatform"><i class="uiIconSoc uiIconTwitter"></i></a></li>
<li><a href="https://plus.google.com/+ExoplatformTribe"><i class="uiIconSoc uiIconGplus"></i></a></li>
<li><a href="http://www.linkedin.com/company/exo-platform"><i class="uiIconSoc uiIconLinkedin"></i></a></li>
<li><a href="http://feeds.feedburner.com/eXo-Platform"><i class="uiIconSoc uiIconRss"></i></a></li>
<li><a href="http://www.youtube.com/channel/UCtKQaab9rTJ_gN-OCzkOvIw"><i class="uiIconSoc uiIconYoutube"></i></a></li>
</ul>
</div>
</div><!-- /#footer -->
<!-- Juzuweb Javascript -->
<!-- Currenly using Jquery v.1.7.1 because Jquery Address conflict with Jequery v.11.0 -->
<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="js/bootstrap-3.1/jquery.address-1.5.min.js"></script>
<script type="text/javascript" src="js/bootstrap-3.1/dropdown.js"></script>
<script type="text/javascript" src="js/bootstrap-3.1/collapse.js"></script>
<script type="text/javascript" src="js/bootstrap-3.1/juzu.js"></script>
<script type="text/javascript">
$(document).ready(function() {
// The page navigation
$.address.change(function(event){
// Get anchor
var anchor = event.value.substring(1);
if (anchor == "")
anchor = "home";
//
var page = $(".page:has(a[name=" + anchor + "])");
if (page.length == 1) {
page.filter(function() {
return this != window.previous;
}).each(function() {
// Do show/hide
$(".page").hide();
$(this).show();
// Reset page to top
$(window).scrollTop(0);
// Update previous
window.previous = this;
});
} else {
// Should log something somehow
}
});
});
</script>
</body>
</html>