Re: Cocoon / Hibernate revisited

2007-05-30 Thread Fabrizio Sitzia
Hello Johannes, following an inspiring discussion with Fabrizio here on the User's list, I reworked the Cocoon and Hibernate tutorial and the underlying glue classes. The solution is now free of major architectural sins (as far as I can say) and allows a clean implementation of DAOs. No more

Continuations with dynamically created forms?

2007-05-30 Thread Derek Hohls
Working with Cocoon 2.1.8 I am getting the following error when I try to reference the continuation variable, used for the form action. javax.xml.transform.TransformerException: Could not find variable with the name of continuation Basically, I am calling the form creation match via

Re: Applet in portal coplet

2007-05-30 Thread Andreas Kuehne
Hi Bary, I would guess once you're with the coplet you use a different path than called directly. Are there any strange accesses reported within the log file ? Anyway, try to use a path wildcard matcher for the jar like this : map:match pattern=**/*.jar map:read src=lib/{2}.jar

Context 'temporary' not found

2007-05-30 Thread 范志宏
Working with Cocoon 2.1.10, using authentication-fw: session:getxml context=temporary path=/data/ within index.html org.apache.cocoon.ProcessingException: SessionManager.streamContextFragment: Context 'temporary' not found. at map:serialize -

Re: Continuations with dynamically created forms?

2007-05-30 Thread Niels van Kampenhout
Derek Hohls wrote: Working with Cocoon 2.1.8 I am getting the following error when I try to reference the continuation variable, used for the form action. javax.xml.transform.TransformerException: Could not find variable with the name of continuation Basically, I am calling the form

Incorrect JXPathContext in custom binding

2007-05-30 Thread Niels van Kampenhout
Hi, While upgrading an application from Cocoon 2.1.8 to the latest 2.1.X branch, I encountered a problem with a custom binding class that used to work correctly. The class extends AbstractCustomBinding, and overrides the methods doLoad(Widget frmModel, JXPathContext context) and

lost database connection

2007-05-30 Thread Varga Zsombor
Hi All! I declared a database pool in the cocoon.xconf: jdbc name=focitipp pool-controller min=5 max=10/ dburljdbc:mysql://localhost/database1/dburl useruser/user passwordpassword/password encodingiso-8859-2/encoding /jdbc Everything is ok, working well, but after a while (a few hours) if i

Re: lost database connection

2007-05-30 Thread Johannes Textor
Hi Varga, use jdbc:mysql://localhost:3306/YourDatabaseName?autoReconnect=true as described here: http://wiki.apache.org/cocoon/MySQL Regards, Johannes

Re: Incorrect JXPathContext in custom binding

2007-05-30 Thread Niels van Kampenhout
Niels van Kampenhout wrote: While upgrading an application from Cocoon 2.1.8 to the latest 2.1.X branch, I encountered a problem with a custom binding class that used to work correctly. The class extends AbstractCustomBinding, and overrides the methods doLoad(Widget frmModel, JXPathContext

Re: Cocoon Productivity

2007-05-30 Thread Grzegorz Kossakowski
bart remmerie pisze: I've been a 'jojo' cocoon user for some years now and a convinced addict. The learning curve is rather steep, but with nices 'plateaus': repeated steps of steep learning followed by rather easy mass-production. snip/ Upgrading to a next version has never been a smooth

Re: Continuations with dynamically created forms?

2007-05-30 Thread Derek Hohls
Thanks Niels but I am not sure that is the fault.. I now get the error: org.xml.sax.SAXParseException: The value of attribute action associated with an element type ft:form-template must not contain the '' character. when I try and use the CDATA wrapper in the stylesheet: ft:form-template

Re: Continuations with dynamically created forms?

2007-05-30 Thread Niels van Kampenhout
Hi Derek, Derek Hohls wrote: Thanks Niels but I am not sure that is the fault.. I now get the error: org.xml.sax.SAXParseException: The value of attribute action associated with an element type ft:form-template must not contain the '' character. when I try and use the CDATA wrapper in the

Re: Continuations with dynamically created forms?

2007-05-30 Thread Niels van Kampenhout
Derek Hohls wrote: ft:form-template action=![CDATA[#{$continuation/id}.continue}]] method=POST BTW if you use ft:continuation-id/ inside your template instead of putting the continuation ID in the URL, you don't have this problem, and you get a nicer URL for free :-) Regards, Niels

Re: Continuations with dynamically created forms?

2007-05-30 Thread Derek Hohls
Thanks Niels That works now - only issue is that the continuation no. has a } at the end - is this a problem: action=3d815e...b28.continue} Thanks Derek Niels van Kampenhout [EMAIL PROTECTED] 2007/05/30 04:42 PM Hi Derek, Derek Hohls wrote: Thanks Niels but I am not sure that is the

Re: Cocoon Productivity

2007-05-30 Thread Dev at weitling
Grzegorz Kossakowski wrote: bart remmerie pisze: Upgrading to a next version has never been a smooth process so far. I'm currently using 2.1.10 and the YourCocoonBasedProject ant scripts from the wiki. One day, I'll shift to 2.2, but so far, trying to set it up out of curiosity has

RE: Cocoon Productivity

2007-05-30 Thread toman
Original Message Subject: Re: Cocoon Productivity From: Grzegorz Kossakowski [EMAIL PROTECTED] Date: Wed, May 30, 2007 7:15 am To: users@cocoon.apache.org [...] Even I'm Cocoon developer I don't think about myself like a Maven or Spring guru. After switching to Maven

Re: Cocoon Productivity

2007-05-30 Thread Grzegorz Kossakowski
[EMAIL PROTECTED] pisze: Original Message Subject: Re: Cocoon Productivity From: Grzegorz Kossakowski [EMAIL PROTECTED] Date: Wed, May 30, 2007 7:15 am To: users@cocoon.apache.org [...] Even I'm Cocoon developer I don't think about myself like a Maven or Spring guru. After

RE: Cocoon Productivity

2007-05-30 Thread Christian Schlichtherle
Hi, sounds exciting. please allow to me ask the following as a seasoned NetBeans user and Cocoon newby: What will I lose if I want to use Cocoon 2.2 in NetBeans 5.5.1? Will I still be able to follow the instructions or do I need to figure everything myself? Kind regards, Christian Schlichtherle

Re: Cocoon Productivity

2007-05-30 Thread Grzegorz Kossakowski
Christian Schlichtherle pisze: Hi, sounds exciting. please allow to me ask the following as a seasoned NetBeans user and Cocoon newby: What will I lose if I want to use Cocoon 2.2 in NetBeans 5.5.1? Will I still be able to follow the instructions or do I need to figure everything myself? I

RE: Cocoon Productivity

2007-05-30 Thread toman
Original Message Subject: Re: Cocoon Productivity From: Grzegorz Kossakowski [EMAIL PROTECTED] Date: Wed, May 30, 2007 10:29 am To: users@cocoon.apache.org [EMAIL PROTECTED] pisze: Original Message Subject: Re: Cocoon Productivity From: Grzegorz

Re: Cocoon Productivity

2007-05-30 Thread Fergus McMenemie
As a new adopter of cocoon, I beg to differ from some of what I have read regarding documentation. Referring to cocoon version 2.1, it comes with lots and lots docs and examples. I really do not think we are dealing with a lack of documentation or examples. Rather it's a case of knocking what

Re: Cocoon / Hibernate revisited

2007-05-30 Thread Johannes Textor
Hi Tricia, What is the advantage of using a DAO? I'm not sure if I am the right person to answer this question, but I'll give it a try. Quoting from Wikipedia at http://en.wikipedia.org/wiki/Data_Access_Object: Data Access Objects are a Core J2EE

Re: Cocoon / Hibernate revisited

2007-05-30 Thread Johannes Textor
Hi Fabio, Fabrizio Sitzia wrote: I've looked your page up in the Wiki - Wow! (Einfach geil!) Thanks for the props :) As soon as I've got something I can trust in production, I'll write up the Wiki page describing it. I'll keep you posted. I'm looking forward to see that. Let's get rid of

Cannot access sitemap parameters using Velocity and JXTemplate

2007-05-30 Thread Christian Schlichtherle
Hi, in my sitemap, I have this: map:match pattern=*.xsl map:generate type=jx src={1}.xsl map:parameter name=select value=start/ map:parameter name=data-type value=text/ map:parameter name=order

RE: Cannot access sitemap parameters using Velocity and JXTemplate

2007-05-30 Thread Christian Schlichtherle
What the !§$%/()=? Everything works as expected if I use the newjx generator instead of the jx generator. I suppose this is a bug. How to report it? Kind regards, Christian smime.p7s Description: S/MIME cryptographic signature

Re: Cocoon Productivity

2007-05-30 Thread Jonathan Hipkiss
I think Fergus has it spot on here. Most developers operate by first copying another example of something that works, then they modify it to their own use. As a fall back, complete technical documentation of the technology is then needed to detail how it operates and what its syntax, grammar

Please give me online tutorial for cocoon

2007-05-30 Thread vijay ravindran
Hi please give me a sample simple example to run the cocoon application like hello world regards -- Vijay.R

RE: unpack/unizp a complete zip file?

2007-05-30 Thread Geert Josten
Hi H., It is not as complex as it might look, but you must extend the ZipSource component to make it work. I added the following code in the getInputStream function: String xml = ?xml version=\1.0\ encoding=\utf-8\?\nzip:archive xmlns:zip=\ + ZIP_NAMESPACE + \ name=\ +