Java Web Framework for Ajax-based UI [closed] - java

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Background
Looking to leverage an existing web framework to create a simple data-driven user interface.
Problem
The mock-up allows creating JasperReports Server domains. Creation of domains is based on a data dictionary comprised of Business Areas and Column Clusters. It works as follows:
User selects one or more Business Areas.
This causes the Column Cluster list to update (AJAX-style) with the available Column Clusters for the selected business areas.
User selects one or more Column Clusters.
User shuttles Column Clusters into Domain Content list.
The user has two options: Create Domain and Upload Domain.
Both buttons do the same thing: create an XML document based on the Domain Content list.
Technologies
Here are the technologies I am considering:
Servlet. Means hand-crafting database queries and jQuery code.
Grails. There is no writing to the database, though.
JavaServer Faces. Quite bulky, but it has shuttles.
Facelets. Integrates with RichFaces.
Eclipse + JBoss + RichFaces. ???
Tapestry. ???
Requirements
The fixed requirements:
Apache Tomcat 6
Java
PostgreSQL (JDBC)
Firefox or Chrome
No Struts
No IE
Constraints
Other criterion to consider:
Easily maintained by novice developers
Easy to extend (add interactive widgets)
Database model has already been designed and implemented
Resources
Websites that demonstrate potential solutions:
http://www.giantflyingsaucer.com/blog/?p=723
http://www.ibm.com/developerworks/java/library/j-richfaces/
Question
What Java-based web framework would you recommend for this task?

A few possibilities:
Play! Framework
RichFaces (using JSF)
In my opinion, choosing a framework based on one component's needs is not the best option. But assuming you need a Java-based web framework, with Ajax support, I would recommend Play! It has a similar approach to Grails, but it is Java.
It is a real web-based stateless Java framework, with an enthusiastic and active community, and great documentation. There are no widget as you can have in JSF but with jQuery on the client side, that solution would work like a charm.

Take a look at vaadin

Have you looked at the Google Web Toolkit?

Related

Styling Java with HTML/CSS [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
So im fairly new to Java, anyway i have a implemented a simple Java program on IntelliJ which runs in the IntelliJ terminal, it basically ask the user to input some details and then records them along with the current time.
I now want to style it out using HTML/CSS to convert it into a webpage, where the user would enter the details into input boxes etc.
Im not sure how to approach this, what would be my best shot?
Also the user input is also being stored in a variable at the moment, would i have to use a database instead for a webpage?
Thanks.
Well I would recommend you to read first about what is Model-View-Controller paradigm in web page architecture, then you can probably better reply to yourself in terms of what you need for your webpage in order to do what you want.
I will grasp some about the things that you need:
You will need a database to store your user input details along with with the current time. (MySQL for example)
After that you need to define which type of data you need to save, you will have to make models in java for parsing those details from java to the db and vice versa.
Then you will need to create some services (You can learn about repositories before services if you need, which you probably would) to support those connections with the database in which you will retrieve data from DB.
A way to control how those services to serve your webpage is having a controller for processing the HTTP requests.
Last but not least, the controller will "glue" your jsp views with the data from services to be shown in your browser.
There will be many other ways, at least this is the way I know. I use Spring framework for building the MVC.
You have to do full stack page with java backend and html & css for the front-end.
Do a webservice with spring boot this generate a restful API to communicate with your web page using HTTP methods ( Get, Post, Put and delete ) and use AngularJS for example to parse the webservice created.
check out this : example
Quite simply, you'll need a web server to spit out HTML. I mean, there's lots of ways you could do it, but far and away the most popular is a web server.
There are lots of options for you. As an Eclipse fanboy myself, I can't say specifically, but a cursory google search yields this Tomcat plugin which should allow you to run a web server via IntelliJ. There are probably dozens of other plugins for differnt web servers you could use.
What you put into that server is up to you - it could be a simple html document populated by parameters, a REST endpoint, a JSP, who knows what. That's beyond the scope of the question - the first step is getting your web server up and running and then deciding the framework to use.

About Using Hibernate in a Web Application (J2EE) [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm new in Java EE (J2EE) , i would like to build web application that store users and passwords in databases than they can login and login out , after that i want let them can add , delete and edit fields like in this pic:
Table
Edit table
Is there examples of that, thank you
There are no specific technologies for building an application like that, there are hundreds of technologies in thousands of combinations that will build a simple CRUD web application. You have specified that you want to use Java EE, but even that is not specific enough: do you want to use Java as a front end technology (eg JSP, JSF, etc) or just for server side processing? I would recommend that you investigate front end frameworks/technologies, different types of databases and different architectural styles and decide which combination is right for your application. Only that can you begin to think about examples and tutorials that will show you how to put them together.
To give you a starting point, the flavour of the month in front end technologies seems to be javascript frameworks like AngularJS (prior to that java based technologies were preferred in many cases). You can use this to communicate with RESTful web services written in Java EE. NoSQL databases like MongoDB are popular at the moment, but you could use a more traditional relational database like MySQL. Both of these databases work well with hibernate.
Bear in mind that is just a starting point for your research and may not be appropriate for your application.

Searching a java framework to simply create a database web-administration tool [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I'm looking for a framework, to simply create a administration tool (web project preferred).
Hibernate models are available, but there are many 1:n and n:m relations.
Is there an easy way, to create a administration tool as quick as possible? Is Spring ROO a solution for this? Or Smart GWT Power edition? Wicket?
Greetings
I would not go with Spring Roo + GWT, and let me give you some reasons:
1.- Spring Roo setups projects based on AspectJ and a complex scaffolding of classes in GWT with MVP, RF, which makes complex code, difficult to follow/modify, and difficult to deal with it in IDEs.
2.- The Spring Roo documentation about GWT is vague and confuse. There are certain combinations of JPA provider and database providers which do not work. I think they are not very focused on the GWT setup and probably they are thinking on removing it.
3.- One of the best java frameworks around GWT is vaadin: Vaadin is a Java framework for building modern web applications that look great, perform well and make you and your users happy. Take a look to their 3 minute video if you have a while. Vaadin 6 did have support for Spring-roo, see chapter 14 of its documentation, but with Vaadin 7 they have removed that chapter.
Said that, and based on my experience, I would discard spring-roo + GWT. Although it produces a CRUD with a few commands, if your customer wants to modify few things it is not trivial.
If you need GWT, I'd rather go with a full gwt framework like Vaadin or Errai. Otherwise, If you want spring-roo, use their JSF scaffolding instead of GWT
Maybe JSF in an option. Look at NetBeans generator for JSF CRUD application from an existing DB: https://netbeans.org/kb/docs/web/jsf20-crud.html
You can try with Oracle ADF. It comes included with JDeveloper IDE. You can easily create a CRUD application within a day (as a Fusion application) using drag & drop feature for UI components and deploy it to the internal WebLogic Server , or to any other application server: http://www.oracle.com/technetwork/developer-tools/adf/overview/index.html

Is JSF/JSP the only choice if I use the Java EE to develop my site? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
I am studying Java EE technology. I noticed that JSF is an available choice for developing web application. But is it the only choice if I wanna use Java EE tech?
You have numerous Choices when it comes to choosing Web Application Frameworks, depending upon your choice you select one.
You can go for no framework too, but it would be like ending up with complex designs that even yourself won't be able to understand later.
JSF, Netty, Seam, Sitemesh, Spark, Spring MVC, Stripes, Struts, VRaptor, Wicket are some of the examples you can go for.
With JSF, you have navigational framework, MVC framework and RichFaces/IceFaces for front-end. With others, you have navigation and mvc too, and you can use jQuery for front-end.
When it comes to using Databases, transactions, etc. You will have to make another choice between persistence implementations i.e. JPA, EJB3.0 JPA Implementation, Hibernate, Spring with Hibernate and MVC and IoC.
so.. long story short, you need to read.
JSF is only one of the Front-End solutions. There are too many to enumerate.
There are differences between they, advantages and disadvantages.
Other Javascript based UI is GWT.
You can have non Javascript based ones: JSP or even just servlet for a "Hello word"
You can use frameworks which will have the MVC pattern embedded: Struts, Spring.
For start learning: I would choose a framework free implementation - to learn what is implemented later in different frameworks. Just a plain JSP pages written manually.
Later on production, bigger J2EE, which will require more team members, higher speed of development, you can choose a framework, which the project needs and most of developers know.

Google AppEngine Java Web Technologies [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
In the last period, I tried to learn something about the Google cloud technology and I quite liked it.
I made a test project for learning GWT bound to GAE, too. In my opinion, the web toolkit is a nice framework for building a Web 2.0 UI from scratch, for those who always worked with Java, but... I think my team is not ready for that, unfortunately.
So, I have to choose another front-end technology, rather than leave my mates writing thousands-code-lines JSP.
What do you recommend to me? Last year I worked a little with Spring MVC and Struts, but since the project we're going to start is a "green field", I'd like to go for a state of art framework.
Remember:
traditional "page" approach (html views, forms, and so on)
must work on Google App Engine
This link lists all the supported frameworks on GAE. After going through that list I'd either go with Spring MVC or Struts 1.
Here is a CRUD tutorial with sprint MVC to get you started.
If you have to go with GAE I would stick with GWT (if your devs are good they should be willing to learn :) ), or maybe a simple framework like apache click. Otherwise developing something other than simple Servlet/JSP is a pain even if it doesn't look so at the beginning of the project.
Try PLAY (http://www.playframework.org/), watch the video and I think you would be sold.
It supports GAE through a plugin (http://www.playframework.org/modules/gae). It states that it supports GAE 1.4 but we are using the 1.5.3 SDK and it works just fine. You can also use the siena plugin which is a hibernate-like layer for the GAE datastore. You can develop locally (and have the same file-backed datastore and in-memory memcache), once you are done, hit "gae:deploy", enter your email and password and you're done.
Let me recommend you using Spring MVC, but using Thymeleaf [http://www.thymeleaf.org] --of which I'm author-- as a view-layer technology instead of JSPs.
This combination will provide you with the traditional approach you require (HTML views, forms...) and at the same time will allow you to use a more elegant approach to prototyping and developing your HTML interface.
Good luck with your projects.
I would try Jello framework. It is a Java Application Framework optimized for Google App Engine including comprehensive Data Authorization model, a powerful RESTful engine, and out-of-the-box UI views.

Categories

Resources