What is the need of JSF, when UI can be achieved with JavaScript libraries such as jQuery and AngularJS

JSF to plain JSP/Servlet/HTML/CSS/JS is like as jQuery to plain JS: do more with less code. To take PrimeFaces (jQuery + jQuery UI based) as an example, browse through its showcase to see complete code examples. BootsFaces (jQuery + Bootstrap UI based) has also a showcase with complete code examples. If you study those examples … Read more

What are the real-world strengths and weaknesses of the many frameworks based on backbone.js? [closed]

Most of (all of?) the frameworks that you’re looking at solve the same problems, but they do it in slightly different ways with slightly different goals. I think it’s fair to say that all of these projects would solve the problems in these categories: Provide sensible set of defaults Reduce boilerplate code Provide application structure … Read more

How to create a jQuery plugin with methods?

According to the jQuery Plugin Authoring page (http://docs.jquery.com/Plugins/Authoring), it’s best not to muddy up the jQuery and jQuery.fn namespaces. They suggest this method: (function( $ ){ var methods = { init : function(options) { }, show : function( ) { },// IS hide : function( ) { },// GOOD update : function( content ) { … Read more

Difference between the ‘controller’, ‘link’ and ‘compile’ functions when defining a directive

I’m going to expand your question a bit and also include the compile function. compile function – use for template DOM manipulation (i.e., manipulation of tElement = template element), hence manipulations that apply to all DOM clones of the template associated with the directive. (If you also need a link function (or pre and post … Read more

AngularJS passing data to $http.get request

An HTTP GET request can’t contain data to be posted to the server. However, you can add a query string to the request. angular.http provides an option for it called params. $http({ url: user.details_path, method: “GET”, params: {user_id: user.id} }); See: http://docs.angularjs.org/api/ng.$http#get and https://docs.angularjs.org/api/ng/service/$http#usage (shows the params param)

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)