Adding JSF to existing project J2EE in Netbeans - mysql

I have created a J2EE project, Now I want to generate CRUD from MYSQL.
Here is one option that looks fine by using JSF Generating a JavaServer Faces 2.x CRUD Application from a Database.
My question is "Would this work with the existing code and navigation stuff?"
OR
Is there any other technique to generate CRUD code from MYSQL database automatically?

If you migrate to JSF, you'll have to replace all JSP pages with JSF pages; and all servlets with ManagedBeans. Navigation, and everything related to the view is handled by JSF too.
If you already have many pages and servlets coded, and your only motivation of using JSF is to generate CRUD automatically, then I suggest that you create CRUD manually using the same technology you are currently using. On the other hand, using a framework makes things much easier for web development, so it's not a bad idea to use one. Other than JSF, you could use Spring MVC.

Related

Wordpress vs php or asp.net

Is it possible to use a wordpress website similarly as php or asp.net websites to access jason webservice? If It is possible is there any limitations? Which is better to use knowing that I need to use it to send and receive json objects to and from the db server, and will need it to display events, news, items, buying and booking. Note that I am using the same webservice on a mobile application. Thankyou in advance
Is it possible to use a WordPress website similarly as PHP or ASP.net websites to access JSON webservice?
Yes. WordPress is built with PHP, and PHP provides the necessary tools you need to access a JSON webservice, and convert these into PHP Objects.
Are there any limitations?
No.
Which is better to use? (WordPress vs ASP.net)
WordPress is a content management system, where as ASP.net is a framework. WordPress will, without modifications, be efficient at managing content such as events, news and items. ASP.net will not provide these things for you out of the box.

What are all the considerations to be taken care while moving from Play! framework to Springs/Hibernate?

I was working on Web development project using Java, Scala, JPA, Ajax, HTML, CSS, Javascript etc. But now due to some problems like 'lack of resource persons on Play framework in my team' we have decided to move to the Spring/Hibernate framework. So we need to convert the complete project in Spring/Hibernate framework. So what are all the considerations to be taken care while doing the same? Whether to use Hibernate annotations or do we need to proceed only with hbm and xml files? We are using MySQL as a database.
It's very general question. So the answer could be as well.
If you want to move from Play to Spring, then you want to leave scala as well. You wrote that you have scala in your current project. Then .... You will need completely rewrite your that part.
You use play and MySQL and want to move to the Hibernate. Then be sure that you use in the Play JPA for the access to the Database (or you can even use Hibernate if you want). After this migration to Hibernate in Spring would be easy.
In general ... It could be more easy just write a new project on Spring based on the current business cases.

PrimeFaces built-in CRUD?

I'm pretty new to PrimeFaces and I'd need to setup a basic CRUD User Interface. From the showcase I can see there is a built-in Datatable parameter named editable to enable editing. I wonder if there is any built-in feature to enable also Adding and Deleting items.
If not, what would be the simplest way to achieve it ? Maybe using a Dialog component to collect the new items ?
Thanks
The simplest way to get a CRUD would be to reverse engineer it. Create your tables in a database and in Netbeans 7 or 8 (I use 8) create
Entity classes from database
JSF pages from entity classes
During the second point you can choose between Primefaces and plain JSF. If you prefer, you could also skip the first point and code the entity classes yourself instead, and tell the server to create the tables on start.
This will get a full CRUD running, complete with theming, menustructure and templating, using primefaces, facelets, beans, custom entity converters, EJB's, entities and JPA.
I like most of the generated code quite well and there is a lot to learn from it as a beginner. The result is a full page for the list and dialogs (via ui:include's) for create, view and edit.
I'd think Eclipse has something similar.

web service json mssql kendo ui connection... how to

Im new at web programming and I have to make a website which will get the data from a mssql server. The thing I tried is just write SQL commands and get the data but I need to change the settings of internet explorer so it did not work. Now I want to write a web service to get the data form my server and formats the data like .json and then I need to use that service to display my list on my website. What is your suggestion where should I begin to work ? And Im using KendoUI for my website.
The easiest and probably most used approach nowadays is to use an ORM - most common EntityFramework for .NET developers, then in your web service you just return the objects and they are automatically serialized.
Search the web for some tutorials.

Can I use django as a front end for an already existing database?

I have a database populated with data that I want to present as a website. It will be read-only and I was wondering if there was a standard way of presenting the data using django's forms and template syntax to make my job easier.
I could code up a site with php but I was wondering if it was possible from an alternative language. I suppose this question could be extended to other web frameworks eg. ruby on rails. My background is with python so a django answer would be preferable.
I am not concerned with administering the database as it is out of my hands (I only have read-only access anyway).
Thanks
"Integrating Django with a legacy database"