Re: accessing a spring bean methods from sitemap

2012-11-13 Thread Mansour Al Akeel
e yet. What is the end goal you are trying to accomplish? Maybe > you can do it purely in xslt.. just saying. > > Robby > > -Original Message- > From: Mansour Al Akeel [mailto:mansour.alak...@gmail.com] > Sent: Saturday, November 10, 2012 6:38 PM > To: users >

RE: accessing a spring bean methods from sitemap

2012-11-11 Thread Robby Pelssers
2012 6:38 PM To: users Subject: accessing a spring bean methods from sitemap I need to link documents through some identification. For example, assuming that I have: articles/my-first-article.xml articles/second-one.xml articles/hello-world-article.xml books/book1.xml which has references t

Re: accessing a spring bean methods from sitemap

2012-11-11 Thread Javier Puerto
2012/11/10 Thorsten Scherler > Hi Mansour, > > Javier is on a flight to Zürich ATM but I know what code he is talking > about. > Yeah, for an input module. If you want to access from a flowscript as Francesco suggested you can use this: var yourComponentInstance = cocoon.getComponent("BEAN-ID")

Re: accessing a spring bean methods from sitemap

2012-11-10 Thread Thorsten Scherler
Hi Mansour, Javier is on a flight to Zürich ATM but I know what code he is talking about. I read between the lines that you are on 2.2. If you happen to be on 3 then the whole thing is much straight forward. I am not sure whether the following is the best approach for your problem since it

Re: accessing a spring bean methods from sitemap

2012-11-10 Thread Mansour Al Akeel
Javier, thank you. The module I am going to implement is to be used by one block only, and would love to be able to declare it in the sitemap.xmap. I haven't implemented input modules before, but reading this: http://cocoon.apache.org/2.1/userdocs/concepts/modules.html "Step 1: Making a new modu

Re: accessing a spring bean methods from sitemap

2012-11-10 Thread Javier Puerto
I did something similar for a client. We did it with a custom input module so you can define a protocol on when the input is the key an the output the value. Also I can't access to my laptop now but I have an example about accessing to spring beans from flow script, probably the input module it's

Re: accessing a spring bean methods from sitemap

2012-11-10 Thread Francesco Chicchiriccò
On 10/11/2012 18:38, Mansour Al Akeel wrote: > I need to link documents through some identification. For example, > assuming that I have: > > articles/my-first-article.xml > articles/second-one.xml > articles/hello-world-article.xml > > books/book1.xml which has references to artice-1 and articl

accessing a spring bean methods from sitemap

2012-11-10 Thread Mansour Al Akeel
I need to link documents through some identification. For example, assuming that I have: articles/my-first-article.xml articles/second-one.xml articles/hello-world-article.xml books/book1.xml which has references to artice-1 and article-3 identified by an id of the form: A001 I need to create