I am new to Kendo ui, Can any one help in understaning what is the deifference between ajax and kendo UI datasource
A Kendo UI datasource is an object in JavaScript that abstracts AJAX communication in your web application.
AJAX is a client-side technique used to communicate with a server in web applications.
Related
I am creating an application which has a front end developped using Angular, and a backend developped using SpringBoot.
The problem is that the backend has controllers with request mappings and models (services and repositories) and no views , so does it really implement the MVC pattern?
I have read in this article " Spring MVC or Spring Boot" that spring MVC which itslef implements the MVC pattern is a part of spring boot, so basically spring boot is MVC, which is true when you have views and HTML pages in your project, but in my case i can't talk about views since i am sending and recieving JSON data from a restful API.
According to https://www.wikiwand.com/en/Model%E2%80%93view%E2%80%93controller
view means presentation of the model in a particular format.
I think it is good definition. Particular format in case of backend for REST API happen to be JSON or XML.
From the same page
Some web MVC frameworks take a thin client approach that places almost
the entire model, view and controller logic on the server. In this
approach, the client sends either hyperlink requests or form
submissions to the controller and then receives a complete and updated
web page (or other document) from the view; the model exists entirely
on the server.
In your case the View would be the front-end. The View is the presentation of the data in a human understandable way.
So I believe the View in your case would be the front-end app.
Is it possible to use a Spring MVC application to serve React Bootstrap or Material UI webpages from the Spring application?
If it is possible, what areas do I need to research?
Check server side rendering with Spring MVC and react.
Example:
https://patrickgrimard.io/2016/11/24/server-side-rendering-with-spring-boot-and-react/
Once you have the react being served by the server, you can add React Bootstrap or Material UI to your client application.
I am creating a web application that will basically register users onto a website where they can log-in and browse an inventory of items, much like a store. The user info and store items will be stored in a MongoDB.
For the server/back-end side, I plan on using Spring RESTful services implementation to communicate with the MongoDB and perform the CRUD operations when necessary.
Now my main question is what to use for the client-side (Browser rendering, web pages, etc). I am considering either JSF, along with Facelets for the view, or Spring MVC and Facelets for the view.
If I use JSF for my client-side, will this architecture work?
Spring and JSF working well together.
http://docs.spring.io/autorepo/docs/spring/3.2.x/spring-framework-reference/html/web-integration.html
http://docs.spring.io/spring-webflow/docs/current-SNAPSHOT/reference/html/spring-faces.html
You can choose any framework for the frontend application and call your backend with REST Calls.
Currently we have on the server side a spring mvc application.
We need to change the client part and we checking GWT.
Is there a way from the gwt code to call a spring controller?
You can call your Spring controllers by submitting forms. This is the difference between the two architectures: GWT uses javascript on the client side to do the job, and communicates with the server only to grab the necessary data (and send the minimal data), Spring MVC requires an http request on each click, and rebuilds the whole page.
You can keep the Spring MVC logic of submitting a form with the data when the user finishes his job with the page (in GWT it's a module). And have GWT commodities to handle the UI in js until the job is finished (client side validation, interactive experience).
You can submit a "traditional" form in GWT easily. Then your MVC logic will point the user to another "GWT module": (you can see this in action when you switch between Contacts and Mail in Gmail)
To have an idea on what can be done without the server interaction, take a look at this lib where I guarantee you everything is client side (since it's my lib :) ) here: https://code.google.com/p/advanced-suggest-select-box/
I have developed an web app using Spring MVC and jQuery ajax. At time I'm having problem with my ajax call; it's not hitting the specified request mapping but at times it hits it without any problem. I don't know where the problem lies.