Hi!
I hope someone get help with or give me a hint for the following
problem:
Facts:
--------
- I use Ravis.
- I use a HTTP-Service:
http://www.die-jane.com/graph/GraphMXML.txt
...
- ... to get an XML-generating JSP-File from a Server:
http://www.die-jane.com/graph/vizdata.txt
- The server has a database, which saves nodes and edges and further
information for the graph.
- The server is based on Liferay Portal Technology.
- You can see the architecture right here:
http://www.die-jane.com/graph/architektur.jpg
- The JSP-File uses Java-Classes to get the data from the database.
- I embed the rendered MXML-Ravis-Graph-SWF in a portlet just like
here:
http://www.die-jane.com/graph/view.txt
The Problem:
-----------------
Somewhere in this construct is a thinking failure.
When I generate the Nodes and Edges by myself with Testdata (not from
the Database) the JSP can create the XML and Flex is able to
interprete this and shows me the graph...wonderful!
BUT:
In the Liferay-Portal you can create projects. For every project
should be a graph visualization. So it depends on the project id, how
the visualization looks like.
But I can't tell the Flex-Application that is shall find the project
(id), because when I do this in a JSPor Java File:
com.liferay.portal.model.Layout l = themeDisplay.getLayout();
Group group1 = l.getGroup();
long groupId = group1.getGroupId();
(this is the regular way to get the groupId in liferay...and it works
perfectly for the jsp-file, which don't have to create an xml-file)
..the JSP-File is not able to create a correct XML OR Flex is not able
to interpret the jsp-created XML anymore (IO Error 2032).
Some Thoughts:
-------------------
- Yes, I googled the IO Error 2032 for a hundred times.
- Maybe I cannot embed the swf-file so easlily...maybe it need some
kind of connection, besides the http-service.
- Maybe I should add another XML-Writer...but I have not find the
right thing until now.
- Maybe I can tell Flex just to read a special part from the JSP-Page.
Yeah...I know that sound kind of complex and weired...but I don't know
what I can do anymore to work around this problem.