unittesting flow

2005-10-26 Thread Stefan Klein
Hi, I was wondering if someone has got a hint on how to unittest flow (javaflow in my case, but I guess it'd be the same for any flow). I searched the wiki and the archives without luck. I saw the callFunction-method in SitemapComponentTestcase which looks like what I want, but couldn't

Re: ant static generation - class not found DOMError

2004-04-30 Thread Stefan Klein
Hi Martin, thanks for your help. I doesn't work, though, unfortunately. SET ANT_OPTS=-Djava.endorsed.dirs=D:\cocoon-2.1.4-src\cocoon-2.1.4\lib\en dorsed-Xms64m -Xmx512m What is -Xms64m -Xmx512m. I set the ant option as you did, but didn't understand what this second part is. I don't think,

Re: ant static generation - class not found DOMError

2004-04-30 Thread Stefan Klein
Hi Upayavira, thanks for helping. Does it work with the CLI instead of the ant task? No, unfortunately that doesn't work, either. I used the sample xconfig file from http://cocoon.apache.org/2.1/userdocs/offline/configuration.html#Sample+xconf+File with minor changes for my project. I can see

ant static generation - class not found DOMError

2004-04-29 Thread Stefan Klein
Hi, I am trying to use the cocoon ant task to generate a static website. The error I am getting is: NoClassDefFound: org.w3c.dom.DOMError. Guessing that it should be in xml-apis.jar and checking, I found that the class, indeed, doesn't exist. Not in the lastest xml-apis.jar from CVS, either,

again: best practice for minor form changes/optional elements

2004-03-05 Thread Stefan Klein
Hi, I thought I'd give this a second try, since I didn't get any replies the first time round. I'd appreciate any kind of comment/suggestion. Thanks! Just wondering whether anyone has got any thoughts on this/best practices to offer: I have got a woody form that I need to display in very

limitation in woody-repeater binding and collections

2004-03-02 Thread Stefan Klein
Hi, here's an issue I came across the other day and it took me quite a while to figure out, so I thought I'd let everyone know and maybe someone could include a note in the WoodyBinding documentation on the wiki: I had a bean with a Collection of type HashSet which I was trying to bind to

best practice for minor form changes/optional elements

2004-03-02 Thread Stefan Klein
Hi, just wondering whether anyone has got any thoughts on this/best practices to offer: I have got a woody form that I need to display in very slight variations, e.g. a certain button should only be visible under certain conditions that I can check in my flow. The options I can see are:

Re: building Collection from JDO problems

2004-02-22 Thread Stefan Klein
Hi Bert, Does the problem with object identities mean that OJB is not the right way to go when building forms that display editable lists? If that is that case I lost quite a lot of time just trying to find an quicker way to build web forms. What are the limitiations of OJB exactly?

wildcardhostmatcher / mount: session lost

2004-02-13 Thread Stefan Klein
Hi, I've got a very odd behaviour in conjunction with the WildcardHostMatcher: My main sitemap contains the following snippet: map:match type=host pattern=www.mydomain.de map:mount src=sub/sitemap.xmap uri-prefix= check-reload=true / /map:match Every time a new request is received, the

Re: Authentication framework problem

2004-01-21 Thread Stefan Klein
Hi Nesto, not a complete answer, but some pointers that might help you: 1) writing a simple action that checks the user parameters (username/password) provided through a web form, with those stored in the database. Here the problem, for me, is to write java code that reuse the connection

Re: role-based access to pages and parts of pages - ideas?

2004-01-13 Thread Stefan Klein
Nicolas, I'm interested: I've done the same work but with an XSL Stylesheet but a java class would be better. Where can we get it? I've sent you a copy of my classes off-list. It is, however, as I pointed out before, tailored to my own little authentication system, not to cocoon's framework.

Re: role-based access to pages and parts of pages - ideas?

2004-01-08 Thread Stefan Klein
Helma, Any ideas? might not be of much use for you, cause I am not using the authentication-fw, but I thought, I'd tell you anyway. I am using a structure very much like the authentication-fw, but using my own actions, thus a lot lighter and tailored exactly to my needs (thus not as nice and

Re: App level variable in flow

2004-01-04 Thread Stefan Klein
Upayavira, How do I store a java object in some application context or an application level variable, just once during servlet container startup, when I'm writing an app that uses flow? Could you not write it as I component, include it in cocoon.roles so that it'll be loaded automatically

Re: JDOUserException: Object not PersistenceCapable

2004-01-04 Thread Stefan Klein
Eric, Is the class listed in your repository.xml and the repository.xml lies somewhere in the classpath? AFAIK, OJB raises ObjectNotPersistenceCapable in two cases: 1. The class hasn't been enhanced (which can't be it in your case) 2. No description of the class can be found in repository.xml

Re: Reading and passing parameters in the sitemap

2003-11-17 Thread Stefan Klein
Jan, have the following problem: I would like to pass the parameter gr_name to the redirect-uri which is used in the pipeline. Use input modules. The RequestParameterModule lets you do exactly that. Just put {request-param:gr_name} into the redirect-uri. (Also see

Re: xsl:include href=another.xsl/ not working in xsl-file

2003-10-25 Thread Stefan Klein
Which stylesheet processor are you using? I was playing around with Lenya (a CMS based on Cocoon) the other day and they'd made XSLTC the default and it crashed on xsl:includes saying something like could't get transformer handler Replacing XSLTC by Xalan did the job. I didn't go into detail

Re: Actions and Session

2003-09-16 Thread Stefan Klein
Giancarlo, the SessionModule that you access by {session:...} only provides general info about the session like session-id etc. You need to use the SessionAttributeModule to access attributes. like your username. Use {session-attr:username} instead (if you haven't changed the module name to

Re: tutorial - MySQL - NoValidConnectionException: No valid JdbcConnection class available

2003-09-16 Thread Stefan Klein
Flavio, if you have tried all the reasonable things and doublechecked your settings (which I think you have from previous posts on this thread), it's most likely to be a version problem. I ran into the same problem when I upgraded from MySQL 4.0 to 4.1 and had to replace my old

possible to put identifier in cocoon list subject?

2003-09-16 Thread Stefan Klein
Hi all, this might be my own personal problem, but maybe other people have got the same: My spam filter doesn't allow for filtering for sender addresses, so there is no way for me to identify cocoon-list messages and allow them to come through and I always have to fetch them manually. Would

Re: possible to put identifier in cocoon list subject?

2003-09-16 Thread Stefan Klein
filter by cc and subject. That's all. So unfortunately your suggestion won't work either. It's server-side, though, so maybe I should just do like you and use a client-side tool. Thanks Stefan On Tue, 16 Sep 2003 10:03:10 +0200 Steven Noels [EMAIL PROTECTED] wrote: Stefan Klein wrote: Hi

Re: Actions and Session

2003-09-16 Thread Stefan Klein
This way a can get session attributes either as parameter passed from sitemap, or with Session object in an Action. Am i right? Not sure whether I got you right: You mean, assign {session-attr:username} to an action parameter and then use the parameter in the action? This seems to me an overly