Re: Cocoon and Spring

2006-06-02 Thread Derek Hohls
Hmm - seems more personal than religious; tho' some of it does seem to spill over into the technical. If anything, that long debate (?) makes one lean towards the Spring camp (philosophy) rather than the EJB one, with Hibernate caught in the cross-fire... (but I am very much a bemused

AW: Restrict users to flow

2006-06-02 Thread Christofer Dutz
Hmmm dont know why my last post didnt make it into the List well here another try ;) Hi Foss, Just read your question .. How about making all Pipelines you want to protect internal pipelines? If the user enters the urls manually they will get page not founds but if Flowscript

Encoding from flowscript to component

2006-06-02 Thread Sébastien Chauvin
Hello, We are using Cocoon 2.1.9 (Windows XP/Tomcat 5.0.30 and Suse 9/Tomcat 5.0) and we have a problem with the encoding when passing Java objects from the fowscript to an Avalon component. Here is a sample of our code: form.save(myBean); try { var myComponent =

Re: CForms tree-model using xml as source?

2006-06-02 Thread Fred Vos
On Thu, Jun 01, 2006 at 06:02:49AM +0200, Simone Gianni wrote: Hi Fred, this seems to be nice stuff, if you can, why don't you contribute it? You can do that opening a JIRA issue with [PATCH] in the title, a description of what your code does and how it works, and then attaching your source

Completely lost with Lucene

2006-06-02 Thread 321los
Hi,I'd like to use the Lucene search in my page, but reading the docs at http://cocoon.apache.org/2.1/userdocs/concepts/xmlsearching.html and http://wiki.apache.org/cocoon/LuceneIndexTransformer does not really enlighten me.My case:The content of my pages is generated dynamically, getting the

XPath 2.0 with Cocoon

2006-06-02 Thread Frank Müller-Witte
Hi, I'd like to use both XSLT 2.0 and XPath 2.0 in Cocoon. I've configured Saxon 8.7 according to http://wiki.apache.org/cocoon/Saxon but XPath 2.0 - expressions like current-grouping-key are not understood. I get the following error message: javax.xml.transform.TransformerException: Die

AW: XPath 2.0 with Cocoon

2006-06-02 Thread Christofer Dutz
Hi Frank This is strange because I have definitively used that successfully. Are you sure you defined your xslt as 2.0 stylesheet? I remember when having version=1.0 in the root-element all XPath 2.0 stuff is ignored. On the other side: are you sure saxon is really used? Hope I am not asking you

Re: AW: XPath 2.0 with Cocoon

2006-06-02 Thread Frank Müller-Witte
Hi Chris, This is strange because I have definitively used that successfully. Are you sure you defined your xslt as 2.0 stylesheet? I remember when having Yes: xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=2.0 version=1.0 in the root-element all XPath 2.0 stuff is

Re: Flowscript file permissions on mkdir - pls help!

2006-06-02 Thread Dan Hertz
Thanks for the tip, Bertrand. Unfortunately, the folder created by the flowscript still doesn't get write permissions. Using your chmod g+s, the folder gets 2755 permissions, instead of 2774. Any suggestions? Daniel == On 6/1/06, Dan Hertz wrote: ...but on LINUX, the folder

Re: Flowscript file permissions on mkdir - pls help!

2006-06-02 Thread Dan Hertz
Thanks for helping me out, Gianugo. I'm not sure I follow though -- is umask not meant to *subtract* values, in other words, 0777 - 002 = 0775. But if my system default (set by the ISP) is 0755, how do I use umask to *bump it up* to 0775? Daniel PS I'm a Windows guy, so please bear with

Re: [Spam:5.0] Re: AW: XPath 2.0 with Cocoon

2006-06-02 Thread Adam Constabaris
Frank Müller-Witte wrote: So do you know an easy way to find out whether Saxon 8.7 is properly used? Very low-tech debug/info technique here: to find out which XSLT processor is being used, you could add something like the following in an appropriate place in the stylesheet you're using to

Re: Flowscript file permissions on mkdir - pls help!

2006-06-02 Thread Andrew Stevens
From: Dan Hertz [EMAIL PROTECTED] Date: Fri, 02 Jun 2006 08:45:14 -0600 Thanks for helping me out, Gianugo. I'm not sure I follow though -- is umask not meant to *subtract* values, in other words, 0777 - 002 = 0775. Yes, that's right. But if my system default (set by the ISP) is 0755, how do

AW: AW: XPath 2.0 with Cocoon

2006-06-02 Thread Christofer Dutz
Hi Frank Nice to hear that I didn't offend you with my question ;) My tip would be to build an error in yous XSLT ... the component complaining about this in your log or console should tell you which one it is (Yeah ... don't throw stones at me for this hint ... but it works and it works fast).

Re: [Spam:5.0] Re: AW: XPath 2.0 with Cocoon

2006-06-02 Thread Frank Müller-Witte
Thanks Adam, indeed Saxon is not being used. But it doesn't work according to the instructions. Maybe saxon8.jar isn't at the right place in /home/muewi/apache/cocoon-2.1.9/lib/local ? When I remove saxon8.jar again from the folder, cocoon doesn't complain. What am I doing wrong? Regards,

Re: Completely lost with Lucene

2006-06-02 Thread Peter Sparkes
Hi, Suggest use the LuceneIndexTransformer as follows: map:match pattern=buildIndex map:generate src=karte.xml/ map:transform type=index/ map:serialize type=xml/ /map:match map:match pattern=karte.xml Generate a single file that contains all the data that you want

Re: XPath 2.0 with Cocoon

2006-06-02 Thread Frank Müller-Witte
It seems I have to put files under cocoon-2.1.9/build/ and not under cocoon-2.1.9/src/ But why? What belongs to src/ and what to build/? I'm sure there must be documentation on this, but I couldn't find it yet. Could someone give me the link? Thanks, Frank Hi, I'd like to use both

How to call event

2006-06-02 Thread johnson
Hi! I define a event addActionListener(form.lookupWidget(addNew) and want to call it programlly, does anybody tell me how to do it. Best Regards johnson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: XPath 2.0 with Cocoon

2006-06-02 Thread Adam Constabaris
Frank Müller-Witte wrote: It seems I have to put files under cocoon-2.1.9/build/ and not under cocoon-2.1.9/src/ But why? What belongs to src/ and what to build/? I'm not sure whether this answers your question, but src/ is for the application sources, build/ is where the compiled

how to use i18n in flowscript

2006-06-02 Thread johnson
Hi! Can I use i18n in flowscript, How? Best Regards johnson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: XPath 2.0 with Cocoon SOLVED

2006-06-02 Thread Frank Müller-Witte
thanks, that answered my question! It's working now, thanks a lot. Frank Frank Müller-Witte wrote: It seems I have to put files under cocoon-2.1.9/build/ and not under cocoon-2.1.9/src/ But why? What belongs to src/ and what to build/? I'm not sure whether this answers your

Re: Completely lost with Lucene

2006-06-02 Thread 321los
Thank you very much Peter. The problem is solved2006/6/2, Peter Sparkes [EMAIL PROTECTED]: Hi,Suggest use the LuceneIndexTransformer as follows:map:match pattern=buildIndexmap:generate src=""> map:transform type=index/ map:serialize type=xml//map:matchmap:match pattern=karte.xml Generate a single

cocoon actions implements threadsafe

2006-06-02 Thread Doug Herold
Hi, I have noticed that some of our programers are usingthreadsafe when creating a class for actions. public class StudentSearchAction extends AbstractAction implements SingleThreaded { I read that you should never useSingleThreaded and that it was going to bedepreciated. Our server has a very

Re: cocoon actions implements threadsafe

2006-06-02 Thread Ralph Goers
It is interesting that you say that they are using threadsafe and then show an example that says SingleThreaded. These are not the same thing. Look at http://excalibur.apache.org/developing/framework.html. Actions only have a single act method so in most cases they should be able to

Re: cocoon actions implements threadsafe

2006-06-02 Thread Doug Herold
I am sorry I meant SingleThreaded. So you would think that this is a bottle neck. On 6/2/06, Ralph Goers [EMAIL PROTECTED] wrote: It is interesting that you say that they are using threadsafe and thenshow an example that says SingleThreaded.These are not the same thing. Look at

Re: cocoon actions implements threadsafe

2006-06-02 Thread Doug Herold
If I have an action that is SingleThreaded and I have 2 clients logged in (2 sessions). Does one client have to wait on the other client's thread to finish or is the SingleThreaded per session. On 6/2/06, Ralph Goers [EMAIL PROTECTED] wrote: It is interesting that you say that they are using

SendMailTransformer - jars

2006-06-02 Thread Peter Sparkes
Hi, I am having difficulties getting email working using the SendMailTransformer. I am using tomcat 5 and cocoon 2.1.9. The SendMailTransformer apidocs states that I have to put the following files into Cocoon lib directory: |mail.jar and ||activation.jar However at

Re: SendMailTransformer - jars

2006-06-02 Thread Antonio Gallardo
Hi Peter, Remove all the geronimo*.jar in your cocoon aplication WEB-INF/lib directory. Restart tomcat and everything should work. Best Regards, Antonio Gallardo. Peter Sparkes escribió: Hi, I am having difficulties getting email working using the SendMailTransformer. I am using tomcat

RE: SendMailTransformer - jars

2006-06-02 Thread Jasha Joachimsthal
-Original Message- From: Peter Sparkes [mailto:[EMAIL PROTECTED] Sent: vrijdag 2 juni 2006 20:59 To: users@cocoon.apache.org Subject: SendMailTransformer - jars Hi, I am having difficulties getting email working using the SendMailTransformer. I am using tomcat 5 and

Re: cocoon actions implements threadsafe

2006-06-02 Thread Joerg Heinicke
On 02.06.2006 20:28, Doug Herold wrote: If I have an action that is SingleThreaded and I have 2 clients logged in (2 sessions). Does one client have to wait on the other client's thread to finish or is the SingleThreaded per session. You have to think of it as a pool. It is no problem as

Re: cocoon actions implements threadsafe

2006-06-02 Thread Ralph Goers
Why would an action be pooled? Actions should, if at all possible, be ThreadSafe. In this case there will only be one instance of the Action and multiple threads can execute it concurrently. Since actions generally only have one method this should be easy to achieve. Joerg Heinicke wrote: