I'm trying to create a Hierarchical Data Grid in flex using AdvancedDataGrid. The data is retrieved from a remote java object.
For project and requirement purposes, GroupingCollection is NOT an option.
So I'm trying to create a dataprovider just like the one shown in the first example in this link, on the java side and then send it to flex.
How do i create such a data structure in java?
Is there any working code as an example?
In all examples that I've seen the data is manually inserted just like in the example.
In flex, you can set the dataProvider to some different data types. When you are working with Java for back-end and flex for UI, you should take in account the communication through XML as basic data representation. So, even if you want to use as dataProvider for your AdvancedDataGrid an ArrayCollection or an GroupingCollection, you will create this kind of data from an XML that is taken from the RemoteObject. I think searching on the web about this topic will help you.
Related
I need to create a dynamic form from dynamic data base.
I would like your opinion on which framework, approach or technique to use.
The idea is the user create a custom form and define somes rules.
Currently, I'm working with java + angular + sql server or mysql.
Thanks
I would suggest to use a dynamic language like JavaScript and a schema-less database like Mongo which makes it easier to deal with.
Javascript on the client(angularjs), on server with nodejs(express/restify) and the database with MongoDB(schema-less).
In fact I built a search solution with Elasticsearch instead of Mongo and everything else was the same.
Your idea is good, please go ahead, In Joomla you can achive this by custom module easily, you can create custom component for adminside management functionality.
You must need to know about Module creation for your front side website but for admin side you can create component using http://www.component-creator.com. It is free for single table and using this you will easily get the concept how you have to manage data in your adminside.
I want to store the temperatures for a year from a weather forecast web site like this one into a database to can use it later in an android application. I tried to use Jsoup, but i only get pieces of the table containing temperatures.
Is there any way to get that html table content to can store it?
It would be a whole lot better if you used the API provided by wunderground instead of using jsoup in order to screen scrape the page.
The main reasons are that the implementation will be a lot cleaner and also your implementation will be immune to stylistic changes in wunderground web pages.
Here is guide on how to consume a REST web service with Spring.
Once you have retrieved the data from the API you could easily store the data in a database using an ORM framework like Hibernate since you would have already created the objects to retrieve the data.
You can make your life even easier if you use Spring with Hibernate integration to save the data. Check out this guide.
The guides mentioned above use Spring Boot to make it extremely easy to get started with the Spring framework (gone are the days where it would be almost impossible for a novice to get started with a Spring project all alone)
Broadly speaking, the HTML document displayed on the website would have to be parsed programmatically, tokenized, converted to suitable data types and finally stored into the database. However it should be checked whether the data on the website could be read via a SOAP webservice or something similar, as the interface would be cleaner and the approach more robust.
I'm building a Spring MVC application where I create graphs in browser using data from database. I have already created data handling in the backend and I have needed keys and values in a Java map. I was wondering what is the best way to put data to javascript data tables which Google Charts are using. I found that there is Google Visualization Data Source Library but I didn't found much info or examples of that.
I'm leaning on sending the java map via model to javascript and parse the data there. But if that javascript parsing could somehow be avoided it would be great...
The data source library you linked to is a complete package for handling database access and returning data to your charts via the Visualization API's Query interface. If you don't want to use that, you have a spectrum of options which vary the workload from the server to the client. On one end, you can offload the parsing to the client by passing your data object as-is (or a JSON representation of it) and let the client parse that into a DataTable. On the other end, you can create a Java class that replicates the structure of a DataTable constructor's object-literal parameter (see documentation). Everything in between is transforming your data on the server into a format that is easier for the client to parse into a DataTable.
As far as I am aware, there is no pre-packaged DataTable class for Java, other than what comes in the data source library you linked to.
I'm developing an application where I've requested data from an external institution's website. They have informed me that the data will be provided by OAI-PMH.
Could someone show me some sample code in Java how data is extracted from a OAI-PMH ?
I wonder how different it is from reading and parsing XML data.
Thank you.
Warmest wishes,
Shoubhik
For a Java implementation, for example, you could use some already existent library, like XOAI with an easy to use API. There are some provided samples.
To extract metadata from each Record you could use a XML Parser or a XML bind approach (JAXB). For other languages, like PHP and Perl there are also other alternatives.
(i even don't know if i need a cms)
what i need is: a simple web based way for a functional department to create/edit multilingual text documents (probably tagged with customizable semantic tags).
The containing Texts are used in an RIA showing statistical data and infos about it. This infos and other user visible Stings should be fully managed by functional department.
the destination of the this texts/documents is an embedded apache derby db - delivered together with RIA release (as zip-File,- the texts are static).
So on the other hand the cms (if this is an cms) should provide an interface to export the data - either a simple db-structure to get data via jdbc or a java api.
so what cmc/?? do you suggest for this usecase
thx in advance
Maybe you could use a java web framework like Tapestry to create a simple web application.
It has some premade components too easily modify and save data to a database.