I'm looking for some help Although AngularJS and JSF are completely different frameworks at first sight, AngularJS is client side HTML and Javascript, JSF is server side Java and XML.
When I was looking for a framework a couple of months ago, to do some web development with JavaScript, I stumbled by accident on AngularJS.
I found a few clear differences. Well, basically JSF’s XHTML pages are just pimped-up HTML code. It offers a lot of high-level components translating to a lot of HTML code, but basically, it’s just HTML the way it should be. Plus a few syntactical peculiarities.
<h:panelgrid columns="2">
<h:outputText value="Your name:" />
<h:input id="commentatorsNameID" type="text"
value="#{commentBean.yourName}"
placeholder="Anonymous" />
<h:outputText value="Your website: />
<h:input id="commentatorsWebSiteID" type="text"
value="#{commentBean.website}"
placeholder="advertise your website here"/>
<h:outputText value="Your comment:" />
<h:textarea id="commentID" type="text"
value="#{commentBean.comment}"
placeholder="feel free to leave your comment here" />
</h:panelGrid>
Now AngularJS code
<table>
<tr>
<td>Your name:</td>
<td>
<input id="commentatorsNameID" type="text"
ng-model="yourName"
placeholder="Anonymous" />
</td>
</tr>
<tr>
<td>Your website:</td>
<td>
<input id="commentatorsWebSiteID" type="text"
ng-model="website"
placeholder="advertise your website here"/>
</td>
</tr>
<tr>
<td>Your comment:</td>
<td>
<textarea id="commentID" type="text"
ng-model="comment"
placeholder="feel free to leave your comment here">
</textarea>
</td>
<tr>
</table>
So with this in mind, I would like to read your opinion about which of both is better for a simple Java Application or some real examples.
If anyone can point me in the right direction that'd be great. Sorry for the huge post, it needed a bit of explaining to make it coherent. Hopefully it makes sense. Thanks.