Highcharts, MySql and Vaadin - java

I am looking for an example on using Highcharts with data from MYSQL in java with Vaadin framework. I literally don't know whether it is possible.When i tried for Vaadin InvientCharts I was redirected to Highcharts. Highcharts looks promising for my project but i want to use along with Java and Mysql. Please elaborate me if I am wrong. I am beginner to this.

Yes, it is possible. Invient Charts (which is Java wrapper for JavaScript-based HighCharts) is totally independent on the data source. The Invient Charts package contains instructions and an example how to use it in your Vaadin project.
You can use Vaadin SQLContainer addon to get the data from your database. There's a simple example behind that link.

You can use JPAContainer or HbnContainer.

The addon suggested my #miq seems to be not maintained anymore.
This one looks more current:
https://vaadin.com/directory#!addon/highchartsapi-add-on

Related

Generic HighCharts (Javascript\Java)

I have searched for ages but couldn't find what I am looking for.
I'm using highCharts.
Is there a method or project or something that creates generic highcharts charts for me? Currently I must make a javascript chart function for every chart I want. I want to make this generic.
So that I only have to ask the method getChart('line','etc'); something like this.
This way i dont have to code everything over and over again for each chart that I want.
(its for a Dashboard )
If this doesn't exists at all I will make it myself.
There are several libraries out there for producing highcharts. Many are listed on the highcharts download page here: http://www.highcharts.com/download under 'API Wrappers:'.
If you are most confortable working in Java, maybe you should check out GWT and the GWT Highcharts wrapper. GWT lets you write Java code, which compiles down into javascript.
Those ones are the bests http://www.highcharts.com/ i tried them and they work absolutely fine with great design just download them and make us know if you get problemes using them.

Web UI for existing Java application

I am trying to build a search engine using java and the lucene API as part of a project. For the last step, we plan to build a web UI (a local host would do) for the same. Are there UI softwares/plugins for eclipse which will allow me to call the functions present in the java classes?
Essentially I would want to have a search box and a search key, pressing which will throw up the search results(which is computed from the java program). javascript cannot call java code I understand. So using that is eliminated?
Any suggestions on what to use will be greatly appreciated. I have pretty poor knowledge in front end design!
Cheers!
AB
If all you have is a simple screen with a entry field and a button and you simply want to return an html table. I would go with a servlet and two jsps. Your servlet can call your search engine and then have the jsp format the data into the table. If you do not know web apis this is probably the easiest entry.
I think, If your using JAVA, that you should look into JSF.
It's a rather easy to maintain and work with library for just the uses you describe.
I recommend these tutorials to get you started: http://www.coreservlets.com/JSF-Tutorial/jsf2/#Tutorial-Intro
There are lots of options to achieve this.
you can create web-ui using jsp.
I have also created same type of project using Lucene, here i have used spring mvc.i have provided all the back-end process as REST api which any web-ui can use.
Please do not look into JSF; it is an overengineered pile for your task.
Sure you can call your java code from javascript, you can make it really simple with something like DWR.
However, for your project I would suggest GWT as then you only deal with Java and it will generate javascript, html and css for you.
For your project you dont really need an "enterprise" level framework like spring or a fullstack JavaEE, you could keep it real oldschool with only JSPs and html/javascript. However thats a bit too flaky for my taste, so go with GWT.
With GWT you basically set it up, define your module, entrance point (look at the hello world), and then you add a layout to your page like something to place the searchbox into and the resultbox to. Then you call your other Java code and classes from there like you normally would.
I would suggest you to use GWT in your application because GWT enables you to call java methods and it will also convert Javascript and css for your Java modules after GWT compile.
GWT reference :- http://code.google.com/webtoolkit/gettingstarted.html
If you're going to use GWT, you could aslo check Vaadin.
Creating a search UI is really simple, and the tutorial show a criteria /result table application taht could be adapted.

Java library which can generate charts from sql

I have weblogic where I can deploy this java application and database where I have data. Can you recommend me some free java library which can generate charts from my data ?
I found http://oreports.com/ but their forum seems to be inactive for a long time so when I want to advice I have problem
Try out Jasper Reports.
List of open source options for generating reports in java.
I personally recommend JasperReports.
I found this: http://art.sourceforge.net/ which is exactly what I need
Assuming nothing like presenting charts from data directly without any java app. (So no informatica like tools) jfreechart is an option. have a lookt at fusion-charts too

Dyanamic Graphs using jsf

My requirement is I need to populate dyanamic graphs in a jsp page. I am using jsf for my project. I planning to use "jfreecharts" but dont know how to bind my jsp page with the back bean. I have some drop downs on the basis of the selection I my BackBean is fetching the data from the DB. Can you please suggest me some procedure to that with some sample code for my reference?
You can use Fiji (Exadel) library.
They have charts, as well as support for wrapping SWF elements and sending properties in JSF.
See an example here. For each component, there is source code as well so you can try it yourself.
Primefaces has a nice chart component as well.
Fiji is very nice but check out this http://www.fusioncharts.com/

JQgrid and Java

Can someone point to jqgrid + java web app solution or especially with populating the grid and sending the form back to server. there are several php examples but nothing on java.
If you want to use some advanced tools like Spring, Hibernate and Maven here is the good example.
http://krams915.blogspot.in/2012/01/spring-mvc-31-jqgrid-and-spring-data_1887.html
EDIT:
See this, if you want to use plain Servlet and JSP. This is very basic example.
http://javahunter.wordpress.com/2010/12/07/jqgrid-example/
Here is one example on the web:
jqGrid Forum: how-use-jqgrid-in-jsp-server-one-example
If you are using struts2 there's a plugin which includes jqueryui and jqgrid components.
http://struts2-jquery.googlecode.com/

Categories

Resources