Re: [HELP]Cannot convert null to an object.

2009-05-12 Thread Derek Hohls
Someone more savvy than me may be able to see directly what the issue is... what I do is to isolate which part of my code the error is occurring in, then add in some print statements to check that all the variables I *think* have values are not, in fact, actually null instead... then you can start

RE: Map serialize flowscript output

2009-05-12 Thread Robby Pelssers
Yes... Jasha is right. For the ones interested I wrote a small article on my blog showing you how to create simple dynamic SVG images using Apache Cocoon. http://robbypelssers.blogspot.com/ Cheers, Robby -Original Message- From: Jasha Joachimsthal [mailto:j.joachimst...@onehippo.com]

RE: Map serialize flowscript output

2009-05-12 Thread Derek Hohls
Added a blog comment Robby... On 2009/05/12 at 10:42, in message 7c655c04b6f59643a1ef66056c0e095e023cc...@eusex01.sweden.ecsoft, Robby Pelssers robby.pelss...@ciber.nl wrote: Yes... Jasha is right. For the ones interested I wrote a small article on my blog showing you how to create simple

RE: Map serialize flowscript output

2009-05-12 Thread Robby Pelssers
And here's my response ;-) I posted it on the blog as well. If the images do not require animation you can just serialize the images to png or jpeg for instance. At the first project i ever did with SVG we used animated images for mobile network visualization. It showed extra information if

Re: custom serializer

2009-05-12 Thread saeid itune
Basically i have xml file which it will be compressed and the result will be displayed to the user in compressed format. i want to get whole xml file as a string and pass it to function which will compress the string and returns the result as string. the result will be displayed to the user.

No bean named 'org.apache.excalibur.source.SourceResolver' is defined

2009-05-12 Thread Robby Pelssers
Hi all, I get following exception while trying to run a unittest. It looks like there is no bean org.apache.excalibur.source.SourceResolver defined. I created this Cocoon2 block about 3 months ago using the maven-archetype. Anybody who can give me some help fixing this? Kind regards,

RE: No bean named 'org.apache.excalibur.source.SourceResolver' is defined

2009-05-12 Thread Robby Pelssers
It looks like this has been fixed. http://issues.apache.org/jira/browse/COCOON-2176 Is this a matter of checking out cocoon 2.2 from trunk.. run mvn install and change the dependency to use the 1.1.0-SNAPSHOT ? dependency groupIdorg.apache.cocoon/groupId

Re: custom serializer

2009-05-12 Thread Joerg Heinicke
In which way not helpful? Is ZIP the wrong compression for you or did you just not get it to work? Joerg On 12.05.2009 07:53, saeid itune wrote: Basically i have xml file which it will be compressed and the result will be displayed to the user in compressed format. i want to get whole xml

Re: Map serialize flowscript output

2009-05-12 Thread Christian Decker
That's really cool Robby, actually I am trying to do something similar. What I need to do is embed clickable links into the SVG image so that the users can then go to the details page of the item they clicked on. Problem is that I'm using JGraph to do the layout of the graph and I have absolutely

RE: Map serialize flowscript output

2009-05-12 Thread Robby Pelssers
If I have time this week I might try to create a more advanced tutorial on creating SVG. - Use xml data as input for the images - The images show basic animation and hyperlinks I can't really point you to good material at the moment. At the time I did that project

RE: Map serialize flowscript output

2009-05-12 Thread Robby Pelssers
I made a mistake in the xslt template ;-) xsl:template mactch=favourite a xsl:attribute name=xlink:href select=url / text x=10 y=20xsl:value-of select=description //text /a /xsl:template From: Robby Pelssers [mailto:robby.pelss...@ciber.nl] Sent: Tuesday, May 12, 2009

RE: Map serialize flowscript output

2009-05-12 Thread Derek Hohls
Agreed - I learnt using DEF is key to more maintainable and readable code... On 2009/05/12 at 03:09, in message 7c655c04b6f59643a1ef66056c0e095e023cc...@eusex01.sweden.ecsoft, Robby Pelssers robby.pelss...@ciber.nl wrote: If I have time this week I might try to create a more advanced tutorial

Form generation

2009-05-12 Thread Andre Juffer
Hi, is the following allowed (in flow): var data = ..; var form = new Form(cocoon://make-form.jx, { data : data } ); The idea is to automatically generate a form definition from given data with jx:forEach. The data object doesn't seem to be passed on. The make-form.jx actually does

Re: Form generation

2009-05-12 Thread DAVIGNON Andre - CETE NP/DIODé/PANDOC
Hi, Yes, it works. You can define forms dynamically. And even pass cocoon://make-form.jx as a sitemap parameter. André Le 12/05/2009 15:31, Andre Juffer (par Internet, dépôt users-return-97598-andre.davignon=developpement-durable.gouv...@cocoon.apache.org) a écrit : Hi, is the

Re: Form generation

2009-05-12 Thread Derek Hohls
Funny you should ask that; i had the same issue myself a while back: http://www.nabble.com/JX---Flowscipt-variable-not-accessible-in-generated-form--td21684221.html The answer there is the approach I adopted. Derek On 2009/05/12 at 03:31, in message 4a097a27.4050...@oulu.fi, Andre Juffer

Re: Form generation

2009-05-12 Thread Andre Juffer
DAVIGNON Andre - CETE NP/DIODé/PANDOC wrote: Hi, Yes, it works. You can define forms dynamically. And even pass cocoon://make-form.jx as a sitemap parameter. OK. The point is however that in make-form.jx, the data object is actually null. In other words, it doesn't seem to be passed on. I

Re: Form generation

2009-05-12 Thread Andre Juffer
Derek Hohls wrote: Funny you should ask that; i had the same issue myself a while back: http://www.nabble.com/JX---Flowscipt-variable-not-accessible-in-generated-form--td21684221.html The answer there is the approach I adopted. Yes, I see how this would work. I can adopt a similar approach.

Cocoon 2.2 build failure

2009-05-12 Thread Robby Pelssers
Hi all, I checked out cocoon 2.2 from trunk today and can't seem to build due some missing daisy artifacts. I also noticed that the build.sh is not in unix format... (using cygwin shell) $ ./build.sh install ./build.sh: line 2: $'\r': command not found ./build.sh: line 17: $'\r':

Re: Map serialize flowscript output

2009-05-12 Thread Christian Decker
Yup, that would of course work, only problem is that the graph being painted on to a batik SVG image I have no clue at all on how to pass the URL through on the other side, where indeed I could use the XSLT transformer to make the links clickable, but maybe that's more fit in the jgraph mailing

Re: Cocoon 2.2 build failure

2009-05-12 Thread Jeroen Reijn
Hi Robby, it seems to work here. I do see though that you have a nexus maven repository in front of you maven install. Could that be the problem? Regards, Jeroen Robby Pelssers wrote: Hi all, I checked out cocoon 2.2 from trunk today and can’t seem to build due some missing daisy