Re: Simple cocoon distribution

2008-07-22 Thread Ken Starks
Stephen Rosman wrote: There seems to have been some feedback about how hard cocoon 2.2 is since it requires users to use assorted development and programming tools when all they want to do is use sitemaps. I've been working on creating a simple cocoon war file that you could mount as a webapp

Web-level testing.

2008-07-22 Thread Ken Starks
Has anyone tried 'selenium' to test their Cocoon application, and should selenium tests be part of an 'examples' suite? website http://selenium-ide.openqa.org/ In an apache project: - http://shale.apache.org/shale-apps/selenium.html screencast ---

Re: Web-level testing.

2008-07-22 Thread Andreas Kuehne
Hi Ken, yes, I do use selenium. I find it pretty hard to test any JavaScript driven application without the executing browser ! Yes, it would make a good Cocoon example to see how things can be tested. I guess many people shy away from testing because of a nice and simple example. Proposal for

Re: Simple cocoon distribution

2008-07-22 Thread Derek Hohls
Ditto from me. Not a major Java user. XSLT + Flowscript + the standard Cocoon components should handle 95% of all website needs. If I can use C2.2 without major investment in learning new development and programming tools, I will consider upgrading. Suggest that, if possible, you get

access external resources by map:read

2008-07-22 Thread Johannes Hoechstaedter
Hi, stupid as things are, I can not access external resource which are outside of my cocoon block in the web-inf directory. WEB-INF/ classes/ 1.jpg 2.jpg I want to access them by map:read in my sitemap by the default pipeline for external resources. When I leave the resources in the

Re: Java bean puzzle. using ecliplse plugin or not.

2008-07-22 Thread David Legg
Hi Ken, It depends which way I do things, but I am still having problems with 'Your first Cocoon 2.2 Application' because the Java Bean doesn't work. Can anyone explain this behaviour, in terms that a non-java-speaker might understand? I think the problem is that the

Re: Accessing Spring beans from an Avalon component

2008-07-22 Thread Molnar Peter
On Pén, Július 18, 2008 5:44 pm, Grzegorz Kossakowski wrote: Just use servicemanager.lookup('here.goes.spring.bean') method. The Service Manager can be injected into Avalon component by implementing Serviceable interface. It was solved eventually, because I have figured out that in Cocoon

Re: Accessing Spring beans from an Avalon component

2008-07-22 Thread Grzegorz Kossakowski
Molnar Peter pisze: On Pén, Július 18, 2008 5:44 pm, Grzegorz Kossakowski wrote: Just use servicemanager.lookup('here.goes.spring.bean') method. The Service Manager can be injected into Avalon component by implementing Serviceable interface. It was solved eventually, because I have figured

Re: Accessing Spring beans from an Avalon component

2008-07-22 Thread Molnar Peter
On Ked, Július 22, 2008 2:12 pm, Grzegorz Kossakowski wrote: We have a Avalon-Spring bridge that will pick up all Avalon components and initialize them using Spring so in a fact they are Spring beans. That was made on purpose to make a transition from Avalon to Spring smooth. Does this

servlet URLs in the XSL template

2008-07-22 Thread Peter Molnar
Hi all, I use Cocoon 2.2, and I am trying to use servlet:... URLs in my XSL templates the way they are used in the CForms example. I'm getting an error unknown protocol: serlvet. Is there a simple way to register such a resolver to the xslt transformer to let these URLs work? -- Peter Molnar

Re: servlet URLs in the XSL template

2008-07-22 Thread David Legg
Hi Peter, I'm getting an error unknown protocol: serlvet. I'm hoping you did a cut 'n' paste in your email and the problem is simply a typo servlet and not serlvet ? David Legg - To unsubscribe, e-mail: [EMAIL

Re: servlet URLs in the XSL template

2008-07-22 Thread Peter Molnar
On Ked, Július 22, 2008 4:22 pm, David Legg wrote: Hi Peter, I'm getting an error unknown protocol: serlvet. I'm hoping you did a cut 'n' paste in your email and the problem is simply a typo servlet and not serlvet ? No, it's a typo in the e-mail only. -- Peter Molnar [EMAIL PROTECTED]

Re: servlet URLs in the XSL template

2008-07-22 Thread Grzegorz Kossakowski
Peter Molnar pisze: On Ked, Július 22, 2008 4:22 pm, David Legg wrote: Hi Peter, I'm getting an error unknown protocol: serlvet. I'm hoping you did a cut 'n' paste in your email and the problem is simply a typo servlet and not serlvet ? No, it's a typo in the e-mail only. Can you show

Re: Accessing Spring beans from an Avalon component

2008-07-22 Thread Grzegorz Kossakowski
Molnar Peter pisze: On Ked, Július 22, 2008 2:12 pm, Grzegorz Kossakowski wrote: We have a Avalon-Spring bridge that will pick up all Avalon components and initialize them using Spring so in a fact they are Spring beans. That was made on purpose to make a transition from Avalon to Spring

Re: servlet URLs in the XSL template

2008-07-22 Thread Peter Molnar
On Ked, Július 22, 2008 5:02 pm, Grzegorz Kossakowski wrote: Can you show us how exactly the snippet where you use servlet: looks like? Additionally, include the whole stack trace. Answering your question directly: no, there is no need to register anything, it's done by default.\ My XSL

Re: servlet URLs in the XSL template

2008-07-22 Thread Grzegorz Kossakowski
Peter Molnar pisze: On Ked, Július 22, 2008 5:02 pm, Grzegorz Kossakowski wrote: Can you show us how exactly the snippet where you use servlet: looks like? Additionally, include the whole stack trace. Answering your question directly: no, there is no need to register anything, it's done by

Re: servlet URLs in the XSL template

2008-07-22 Thread Peter Molnar
On Ked, Július 22, 2008 5:36 pm, Grzegorz Kossakowski wrote: snip what=stack trace/ Then it looks you are right, the servlet: protocol really cannot be found. What about your dependencies, do you have the dependency on cocoon-servlet-service-components artifact in your pom.xml? Yes, I

Re: servlet URLs in the XSL template

2008-07-22 Thread Grzegorz Kossakowski
Peter Molnar pisze: On Ked, Július 22, 2008 5:36 pm, Grzegorz Kossakowski wrote: snip what=stack trace/ Then it looks you are right, the servlet: protocol really cannot be found. What about your dependencies, do you have the dependency on cocoon-servlet-service-components artifact in your

Re: servlet URLs in the XSL template

2008-07-22 Thread Peter Molnar
On Ked, Július 22, 2008 5:45 pm, Grzegorz Kossakowski wrote: That's interesting. What about constructing following simple pipe: map:generate src=servlet:dojo11:/resource/internal/dojo-helper.xsl/ map:serialize type=xml/ In the same sitemap where pipeline using XSLT is placed. Does this

Re: servlet URLs in the XSL template

2008-07-22 Thread Grzegorz Kossakowski
Peter Molnar pisze: On Ked, Július 22, 2008 5:45 pm, Grzegorz Kossakowski wrote: That's interesting. What about constructing following simple pipe: map:generate src=servlet:dojo11:/resource/internal/dojo-helper.xsl/ map:serialize type=xml/ In the same sitemap where pipeline using XSLT is

Re: servlet URLs in the XSL template

2008-07-22 Thread Peter Molnar
On Ked, Július 22, 2008 6:10 pm, Grzegorz Kossakowski wrote: What about accessing this file directly from a browser? Point browser to http://localhost:/{mount_path}/resource/internal/dojo-helper.xsl Where the mount_path is a mount path for dojo11 block (I guess it's simply dojo11).

Re: servlet URLs in the XSL template

2008-07-22 Thread Grzegorz Kossakowski
Peter Molnar pisze: On Ked, Július 22, 2008 6:10 pm, Grzegorz Kossakowski wrote: What about accessing this file directly from a browser? Point browser to http://localhost:/{mount_path}/resource/internal/dojo-helper.xsl Where the mount_path is a mount path for dojo11 block (I guess it's

Re: block communication and page fragment

2008-07-22 Thread Mansour Al Akeel
Is there an answer to this question ? If more info is required please let me know. Mansour Al Akeel wrote: Thank you, I am trying it now, but getting errors. I think it's with block communications. When I put this in my site map: map:aggregate element=root map:part src=cocoon:/block1/

Re: servlet URLs in the XSL template

2008-07-22 Thread Peter Molnar
On Ked, Július 22, 2008 6:34 pm, Grzegorz Kossakowski wrote: Peter, I guess I know the explanation: If you depend on another block then Maven is going to pull it from its local repository. You have changed dojo11 block but you forgot to call mvn install so Maven can install new snapshot of

Re: Java bean puzzle. using ecliplse plugin or not.

2008-07-22 Thread Ken Starks
Thankyou very much, David. I can confirm that the spring-bean now does work properly. How do we report this to the developers? David Legg wrote: Hi Ken, It depends which way I do things, but I am still having problems with 'Your first Cocoon 2.2 Application' because the Java Bean doesn't

Re: images in svg not serializing as jpeg

2008-07-22 Thread Joerg Heinicke
On 09.08.2007 14:14, Lincoln Mitchell wrote: How do I create a jpeg from an SVG which has reference to a relative external image? In previous posts I read that you can't write... xlink:href=image.jpg ... because the path CAN'T be relative. Is this true? Yes, that's true. The SVG2JPEG

Re: Is it possible to restrict file uploads to certain URLs?

2008-07-22 Thread Joerg Heinicke
On 29.01.2008 01:20, Andy Stevens wrote: I have a new requirement for one of our sites to allow the users to upload some files. However, I read in the Cocoon docs/wiki that switching on the enable-uploads init parameter will make it use the multipart request factory etc. on all requests it

Re: Problem with CInclude and nested exceptions

2008-07-22 Thread Joerg Heinicke
I remember a problem with exceptions/errors in flowscript swallowing the actual exception just like try { ... } catch (Exception e) { throw new Exception(); } in Java. Joerg On 10.09.2007 13:18, Tobia Conforto wrote: I'm currently experiencing an annoying problem where Cocoon does not

Re: Automatic call pipeline at startup

2008-07-22 Thread Joerg Heinicke
If you don't want to program it yourself you have to use the infrastructure provided. In your case it's the servlet API as Andreas pointed out. Joerg On 30.01.2008 14:40, Alessandro Vincelli wrote: Thank you for this solution, but I want find a solution less inasive. Andreas Kuehne ha

Re: Database connection by cocoon 2.2

2008-07-22 Thread Joerg Heinicke
I agree with Boris. In Cocoon 2.2 the database block is kind of obsolete. An application should rather be developed with more standard means as provided by Spring. Cocoon was never very good at integrating database stuff. Joerg On 06.06.2008 10:05, Johannes Hoechstaedter wrote: I know,

Re: Max file size in FileGenerator and encoding in StreamGenerator

2008-07-22 Thread Joerg Heinicke
On 26.02.2008 16:05, Stefan Ludwig wrote: my problem is solved! now i use the FileGenerator. configured like this: map:generate type=file src={request-param:file}/ I'm really surprised this works. It seems to be a valid alternative to upload protocol. But then I wonder why having the latter

Re: cache-dir keeps adding same jar files when creating an object

2008-07-22 Thread Joerg Heinicke
I might be wrong but I don't think the cache-dir is created by Cocoon. Joerg On 16.08.2007 21:54, footh wrote: The cache-dir in my cocoon app keeps adding about 4 megs of jar files every time I instantiate a certain class. The class in question is the ServiceClient class from Axis2. Simply

Re: More continuation scope questions ... [was: map:flow scope?]

2008-07-22 Thread Joerg Heinicke
On 01.02.2008 20:43, Steven D. Majewski wrote: So it appears that the continuation uri must resolve back to the same sitemap that originated the initial flowscript call. Yes, they have to. IIRC this feature was only introduced later on for security reasons and not there from the beginning.

Re: IncludeCacheManager vs. SourceUtil.toSAX

2008-07-22 Thread Joerg Heinicke
On 11.06.2008 15:00, Christoph Gaffga (triplemind.com) wrote: What is the best practice on including another pipeline? Does SourceUtil does use the pipeline cache also. And is IncludeCacheManager really using the pipeline cache? Somebody might correct me here, but I'm pretty sure ... Both

Re: Cocoon Productivity

2008-07-22 Thread Joerg Heinicke
On 31.05.2007 09:20, Niels van Kampenhout wrote: I have not seen anyone else pointing it out, but after a day or two I was really struck by the fact that conceptually pipelines are not pipelines in any common understanding of the term; rather matchers are the pipelines! I know what you mean,

Re: FileInputStream/GZIPOutputStream in flow

2008-07-22 Thread thelizardreborn
My solution was to move this section of code into a Java class, and call the method from flowscript. It seemed that my efforts to create a byte array in flow would not satisfy the FileInputStream. This code can be ported directly into Java, changing the vars to type declarations, making sure the

Re: MultipartHttpServletRequest in a generator

2008-07-22 Thread Joerg Heinicke
On 16.06.2008 23:10, Grzegorz Kossakowski wrote: Situations like this are little bit worrying me but anyway standard question: why do you want to cast to MultipartHttpServletRequest? MultipartHttpServletRequest provides a method get(String) for access to multiparts which can't be accessed in

Re: Java bean puzzle. using ecliplse plugin or not.

2008-07-22 Thread David Legg
Ken, Thankyou very much, David. I can confirm that the spring-bean now does work properly. Thanks for confirming that. How do we report this to the developers? Normally, you would open a new item in the bugs database (called JIRA) [1]. However, I've just looked at the latest version of

AW: Simple cocoon distribution

2008-07-22 Thread Michel Erard
Hi, That's a good idea. I also thought on a small sample app. Perhaps with a sample layout, menu concept to handle this in a generic way, security (possibility to login), some sample Service Classes to get Data with java, ... but unfortunately I didn't have the time till now :-( Regards,