<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>dev@cocoon.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/"/>
<id>http://mail-archives.apache.org/mod_mbox/cocoon-dev/</id>
<updated>2009-12-07T01:25:43Z</updated>
<entry>
<title>[jira] Created: (COCOON-2272) CLONE -Calling SitemapSource.getInputStream() twice</title>
<author><name>&quot;josh (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200912.mbox/%3c20656507.1260082280883.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c20656507-1260082280883-JavaMail-jira@brutus%3e</id>
<updated>2009-12-06T06:51:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
CLONE -Calling SitemapSource.getInputStream() twice
---------------------------------------------------

                 Key: COCOON-2272
                 URL: https://issues.apache.org/jira/browse/COCOON-2272
             Project: Cocoon
          Issue Type: Bug
          Components: * Cocoon Core
         Environment: Operating System: other
Platform: Other
            Reporter: josh
            Priority: Critical


Hello,

It seems that Cocoon is broken WRT calling SitemapSource.getInputStream() twice.
 The first invocation is okay, but the second one is doing a refresh().  Then
the environment's context is reset, which is making the request fail.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: closeLoudly()</title>
<author><name>Simone Tripodi &lt;simone.tripodi@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200912.mbox/%3c4173dc210912050602p2a57d508vba3922f2094c1a35@mail.gmail.com%3e"/>
<id>urn:uuid:%3c4173dc210912050602p2a57d508vba3922f2094c1a35@mail-gmail-com%3e</id>
<updated>2009-12-05T14:02:28Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Jos,
please don't think so, were are a community and we should help each other :)
In the past I did errors, but Reinhard and Steven kindly helped me as well ;)
Have a nice day,
Simo

On Sat, Dec 5, 2009 at 9:51 AM, Jos Snellings &lt;Jos.Snellings@pandora.be&gt; wrote:
&gt; I attached the patch. Is this the proper way to submit?
&gt; Thanks, and please excuse me my ignorance. It is the first time.
&gt; (first times can be traumatic, so far I am feeling well).
&gt;
&gt; Jos
&gt;
&gt; On Sat, 2009-12-05 at 09:28 +0100, Jos Snellings wrote:
&gt;&gt; Thank you, Simone. I will do that.
&gt;&gt;
&gt;&gt; On Sat, 2009-12-05 at 09:21 +0100, Simone Tripodi wrote:
&gt;&gt; &gt; Hi Jos,
&gt;&gt; &gt; nice to meet you :) Usually suggestions of this kind have to be
&gt;&gt; &gt; submitted by the issue tracker:
&gt;&gt; &gt;
&gt;&gt; &gt; http://issues.apache.org/jira/browse/COCOON3
&gt;&gt; &gt;
&gt;&gt; &gt; Make your own patch through the command line:
&gt;&gt; &gt;
&gt;&gt; &gt; svn diff -x -u Main.java &gt; arg-fix.patch
&gt;&gt; &gt;
&gt;&gt; &gt; giving your patch file meaningful name.
&gt;&gt; &gt; Goof job!
&gt;&gt; &gt; Simo
&gt;&gt; &gt;
&gt;&gt; &gt; On Sat, Dec 5, 2009 at 8:29 AM, Jos Snellings &lt;Jos.Snellings@pandora.be&gt;
wrote:
&gt;&gt; &gt; &gt; URLResponse.java:
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; Modifying the finally-clause to remain silent:
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; finally {
&gt;&gt; &gt; &gt; Â  Â  Â  Â  Â  Â if (servletConnection != null)
&gt;&gt; &gt; &gt; URLConnectionUtils.closeQuietly(servletConnection);
&gt;&gt; &gt; &gt; Â  Â  Â  Â }
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; Jos
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt;
&gt;&gt; &gt;
&gt;&gt; &gt;
&gt;&gt; &gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;
&gt;



-- 
http://www.google.com/profiles/simone.tripodi


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [jira] Commented: (COCOON3-46) URLConnectionUtils.closeQuietly() complains loudly if servletConnection == null</title>
<author><name>Joerg Heinicke &lt;joerg.heinicke@gmx.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200912.mbox/%3c4B1A3384.4020106@gmx.de%3e"/>
<id>urn:uuid:%3c4B1A3384-4020106@gmx-de%3e</id>
<updated>2009-12-05T10:18:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Oh, you're right :-) I only read your mail on the mailing list, not the 
complete issue text.

Joerg

On 05.12.2009 11:04, Jos Snellings wrote:
&gt; That is what I did.
&gt; 
&gt; On Sat, 2009-12-05 at 09:50 +0000, JÃ¶rg Heinicke (JIRA) wrote:
&gt;&gt; [ https://issues.apache.org/jira/browse/COCOON3-46?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12786368#action_12786368
] 
&gt;&gt;
&gt;&gt; JÃ¶rg Heinicke commented on COCOON3-46:
&gt;&gt; --------------------------------------
&gt;&gt;
&gt;&gt; Isn't it more convenient if closeQuietly(..) just handles null?
&gt;&gt;
&gt;&gt;&gt; URLConnectionUtils.closeQuietly() complains loudly if servletConnection == null
&gt;&gt;&gt; -------------------------------------------------------------------------------
&gt;&gt;&gt;
&gt;&gt;&gt;                 Key: COCOON3-46
&gt;&gt;&gt;                 URL: https://issues.apache.org/jira/browse/COCOON3-46
&gt;&gt;&gt;             Project: Cocoon 3
&gt;&gt;&gt;          Issue Type: Improvement
&gt;&gt;&gt;          Components: cocoon-pipeline
&gt;&gt;&gt;    Affects Versions: 3.0.0-alpha-2
&gt;&gt;&gt;            Reporter: Jos Snellings
&gt;&gt;&gt;            Assignee: Cocoon Developers Team
&gt;&gt;&gt;            Priority: Minor
&gt;&gt;&gt;             Fix For: 3.0.0-alpha-3
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; finally clause in URLResponse method execute()
&gt;&gt;&gt; contains call to URLConnectionUtils.closeQuietly.
&gt;&gt;&gt; If  servletConnection = this.url.openConnection(); fails, servletConnection is
null.
&gt;&gt;&gt; In that case closeQuietly causes a stacktrace to be output.
&gt;&gt;&gt; Solution is if (servletConnection != null) URLConnectionUtils.closeQuietly(servletConnection);,
guard the call with a test,
&gt;&gt;&gt; or even better, take into account in closeQuietly that the input parameter may
be null.
&gt; 
&gt; 


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [jira] Commented: (COCOON3-46) URLConnectionUtils.closeQuietly() complains loudly if servletConnection == null</title>
<author><name>Jos Snellings &lt;Jos.Snellings@pandora.be&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200912.mbox/%3c1260007493.2598.0.camel@joske-laptop%3e"/>
<id>urn:uuid:%3c1260007493-2598-0-camel@joske-laptop%3e</id>
<updated>2009-12-05T10:04:53Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
That is what I did.

On Sat, 2009-12-05 at 09:50 +0000, JÃ¶rg Heinicke (JIRA) wrote:
&gt; [ https://issues.apache.org/jira/browse/COCOON3-46?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12786368#action_12786368
] 
&gt; 
&gt; JÃ¶rg Heinicke commented on COCOON3-46:
&gt; --------------------------------------
&gt; 
&gt; Isn't it more convenient if closeQuietly(..) just handles null?
&gt; 
&gt; &gt; URLConnectionUtils.closeQuietly() complains loudly if servletConnection == null
&gt; &gt; -------------------------------------------------------------------------------
&gt; &gt;
&gt; &gt;                 Key: COCOON3-46
&gt; &gt;                 URL: https://issues.apache.org/jira/browse/COCOON3-46
&gt; &gt;             Project: Cocoon 3
&gt; &gt;          Issue Type: Improvement
&gt; &gt;          Components: cocoon-pipeline
&gt; &gt;    Affects Versions: 3.0.0-alpha-2
&gt; &gt;            Reporter: Jos Snellings
&gt; &gt;            Assignee: Cocoon Developers Team
&gt; &gt;            Priority: Minor
&gt; &gt;             Fix For: 3.0.0-alpha-3
&gt; &gt;
&gt; &gt;
&gt; &gt; finally clause in URLResponse method execute()
&gt; &gt; contains call to URLConnectionUtils.closeQuietly.
&gt; &gt; If  servletConnection = this.url.openConnection(); fails, servletConnection is null.
&gt; &gt; In that case closeQuietly causes a stacktrace to be output.
&gt; &gt; Solution is if (servletConnection != null) URLConnectionUtils.closeQuietly(servletConnection);,
guard the call with a test,
&gt; &gt; or even better, take into account in closeQuietly that the input parameter may be
null.
&gt; 




</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (COCOON3-46) URLConnectionUtils.closeQuietly() complains loudly if servletConnection == null</title>
<author><name>=?utf-8?Q?J=C3=B6rg_Heinicke_=28JIRA=29?= &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200912.mbox/%3c2048655023.1260006620623.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c2048655023-1260006620623-JavaMail-jira@brutus%3e</id>
<updated>2009-12-05T09:50:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/COCOON3-46?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12786368#action_12786368
] 

JÃ¶rg Heinicke commented on COCOON3-46:
--------------------------------------

Isn't it more convenient if closeQuietly(..) just handles null?

&gt; URLConnectionUtils.closeQuietly() complains loudly if servletConnection == null
&gt; -------------------------------------------------------------------------------
&gt;
&gt;                 Key: COCOON3-46
&gt;                 URL: https://issues.apache.org/jira/browse/COCOON3-46
&gt;             Project: Cocoon 3
&gt;          Issue Type: Improvement
&gt;          Components: cocoon-pipeline
&gt;    Affects Versions: 3.0.0-alpha-2
&gt;            Reporter: Jos Snellings
&gt;            Assignee: Cocoon Developers Team
&gt;            Priority: Minor
&gt;             Fix For: 3.0.0-alpha-3
&gt;
&gt;
&gt; finally clause in URLResponse method execute()
&gt; contains call to URLConnectionUtils.closeQuietly.
&gt; If  servletConnection = this.url.openConnection(); fails, servletConnection is null.
&gt; In that case closeQuietly causes a stacktrace to be output.
&gt; Solution is if (servletConnection != null) URLConnectionUtils.closeQuietly(servletConnection);,
guard the call with a test,
&gt; or even better, take into account in closeQuietly that the input parameter may be null.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: closeLoudly()</title>
<author><name>Jos Snellings &lt;Jos.Snellings@pandora.be&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200912.mbox/%3c1260003089.2597.12.camel@joske-laptop%3e"/>
<id>urn:uuid:%3c1260003089-2597-12-camel@joske-laptop%3e</id>
<updated>2009-12-05T08:51:29Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I attached the patch. Is this the proper way to submit?
Thanks, and please excuse me my ignorance. It is the first time.
(first times can be traumatic, so far I am feeling well).

Jos

On Sat, 2009-12-05 at 09:28 +0100, Jos Snellings wrote:
&gt; Thank you, Simone. I will do that.
&gt; 
&gt; On Sat, 2009-12-05 at 09:21 +0100, Simone Tripodi wrote:
&gt; &gt; Hi Jos,
&gt; &gt; nice to meet you :) Usually suggestions of this kind have to be
&gt; &gt; submitted by the issue tracker:
&gt; &gt; 
&gt; &gt; http://issues.apache.org/jira/browse/COCOON3
&gt; &gt; 
&gt; &gt; Make your own patch through the command line:
&gt; &gt; 
&gt; &gt; svn diff -x -u Main.java &gt; arg-fix.patch
&gt; &gt; 
&gt; &gt; giving your patch file meaningful name.
&gt; &gt; Goof job!
&gt; &gt; Simo
&gt; &gt; 
&gt; &gt; On Sat, Dec 5, 2009 at 8:29 AM, Jos Snellings &lt;Jos.Snellings@pandora.be&gt; wrote:
&gt; &gt; &gt; URLResponse.java:
&gt; &gt; &gt;
&gt; &gt; &gt; Modifying the finally-clause to remain silent:
&gt; &gt; &gt;
&gt; &gt; &gt; finally {
&gt; &gt; &gt;            if (servletConnection != null)
&gt; &gt; &gt; URLConnectionUtils.closeQuietly(servletConnection);
&gt; &gt; &gt;        }
&gt; &gt; &gt;
&gt; &gt; &gt; Jos
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; 
&gt; &gt; 
&gt; &gt; 
&gt; 
&gt; 
&gt; 



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (COCOON3-46) URLConnectionUtils.closeQuietly() complains loudly if servletConnection == null</title>
<author><name>&quot;Jos Snellings (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200912.mbox/%3c467377389.1260002480618.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c467377389-1260002480618-JavaMail-jira@brutus%3e</id>
<updated>2009-12-05T08:41:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
URLConnectionUtils.closeQuietly() complains loudly if servletConnection == null
-------------------------------------------------------------------------------

                 Key: COCOON3-46
                 URL: https://issues.apache.org/jira/browse/COCOON3-46
             Project: Cocoon 3
          Issue Type: Improvement
          Components: cocoon-pipeline
    Affects Versions: 3.0.0-alpha-2
            Reporter: Jos Snellings
            Assignee: Cocoon Developers Team
            Priority: Minor
             Fix For: 3.0.0-alpha-3


finally clause in URLResponse method execute()
contains call to URLConnectionUtils.closeQuietly.

If  servletConnection = this.url.openConnection(); fails, servletConnection is null.

In that case closeQuietly causes a stacktrace to be output.

Solution is if (servletConnection != null) URLConnectionUtils.closeQuietly(servletConnection);,
guard the call with a test,
or even better, take into account in closeQuietly that the input parameter may be null.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: closeLoudly()</title>
<author><name>Jos Snellings &lt;Jos.Snellings@pandora.be&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200912.mbox/%3c1260001732.2597.9.camel@joske-laptop%3e"/>
<id>urn:uuid:%3c1260001732-2597-9-camel@joske-laptop%3e</id>
<updated>2009-12-05T08:28:52Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thank you, Simone. I will do that.

On Sat, 2009-12-05 at 09:21 +0100, Simone Tripodi wrote:
&gt; Hi Jos,
&gt; nice to meet you :) Usually suggestions of this kind have to be
&gt; submitted by the issue tracker:
&gt; 
&gt; http://issues.apache.org/jira/browse/COCOON3
&gt; 
&gt; Make your own patch through the command line:
&gt; 
&gt; svn diff -x -u Main.java &gt; arg-fix.patch
&gt; 
&gt; giving your patch file meaningful name.
&gt; Goof job!
&gt; Simo
&gt; 
&gt; On Sat, Dec 5, 2009 at 8:29 AM, Jos Snellings &lt;Jos.Snellings@pandora.be&gt; wrote:
&gt; &gt; URLResponse.java:
&gt; &gt;
&gt; &gt; Modifying the finally-clause to remain silent:
&gt; &gt;
&gt; &gt; finally {
&gt; &gt;            if (servletConnection != null)
&gt; &gt; URLConnectionUtils.closeQuietly(servletConnection);
&gt; &gt;        }
&gt; &gt;
&gt; &gt; Jos
&gt; &gt;
&gt; &gt;
&gt; 
&gt; 
&gt; 




</pre>
</div>
</content>
</entry>
<entry>
<title>Re: closeLoudly()</title>
<author><name>Simone Tripodi &lt;simone.tripodi@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200912.mbox/%3c4173dc210912050021s18d055f2g6b6e62ba1d21a34f@mail.gmail.com%3e"/>
<id>urn:uuid:%3c4173dc210912050021s18d055f2g6b6e62ba1d21a34f@mail-gmail-com%3e</id>
<updated>2009-12-05T08:21:13Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Jos,
nice to meet you :) Usually suggestions of this kind have to be
submitted by the issue tracker:

http://issues.apache.org/jira/browse/COCOON3

Make your own patch through the command line:

svn diff -x -u Main.java &gt; arg-fix.patch

giving your patch file meaningful name.
Goof job!
Simo

On Sat, Dec 5, 2009 at 8:29 AM, Jos Snellings &lt;Jos.Snellings@pandora.be&gt; wrote:
&gt; URLResponse.java:
&gt;
&gt; Modifying the finally-clause to remain silent:
&gt;
&gt; finally {
&gt; Â  Â  Â  Â  Â  Â if (servletConnection != null)
&gt; URLConnectionUtils.closeQuietly(servletConnection);
&gt; Â  Â  Â  Â }
&gt;
&gt; Jos
&gt;
&gt;



-- 
http://www.google.com/profiles/simone.tripodi


</pre>
</div>
</content>
</entry>
<entry>
<title>closeLoudly()</title>
<author><name>Jos Snellings &lt;Jos.Snellings@pandora.be&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200912.mbox/%3c1259998186.2597.8.camel@joske-laptop%3e"/>
<id>urn:uuid:%3c1259998186-2597-8-camel@joske-laptop%3e</id>
<updated>2009-12-05T07:29:46Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
URLResponse.java:

Modifying the finally-clause to remain silent:

finally {
            if (servletConnection != null)
URLConnectionUtils.closeQuietly(servletConnection);
        }

Jos



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Cocoon3  Wicket integration</title>
<author><name>=?UTF-8?Q?Florent_Andr=C3=A9?= &lt;florent.andre-dev@4sengines.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200912.mbox/%3c293351284f5fa918f1d558582f89c167@4sengines.eu%3e"/>
<id>urn:uuid:%3c293351284f5fa918f1d558582f89c167@4sengines-eu%3e</id>
<updated>2009-12-04T13:41:03Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Reinhard, and thanks for this. 

I have in mind to create - one day :) - a "Form module" for Lenya.

----- Here the main line of the idea : -----
[[..]] (pick up from a lenya thread)
Year, IMO forms is a good and user-friendly solution for pick-up structured
data from user.

IMO, a great cform module can be composed by something like that : 

0) user interface for defining the "form container" {can be done by
advanced user} (the last step in developping)

1) xml "form container"  {can be done by xml-compliant user), that contain
: 
--- the xml form declaration (a cform file ?) ==&gt; define all inputs and
authorized values
--- the action connector : define what doing with the filled result (eg :
send a mail, create a new lenya doc, fire a pipeline, ...)

2) a set of "actionners" (send a mail, create a lenya doc, calculate result
from filling,...)

------ With wicket ? (point 1) )------

- So IMO with this ""specifications"" and wicket : 

-- cocoon pick-up the "form container" and pass the "form declaration" to
wicket
-- wicket deal with presentation, validation,... and put the result into
cocoon
-- cocoon retrieve the filling result and apply the "action connector" on
it (send a mail, create a doc, etc...) 

------ Questions -----

I don't have jump into cocoon 3 for now, so maybe my questions are
stupid...

- What do you think about this solution ?

- What is the ideas (of the five) that can answer to this ?

- One of your samples can give me some pointer on it ?

Thanks
++

On Thu, 26 Nov 2009 09:13:52 +0100, Reinhard PÃ¶tz &lt;reinhard@apache.org&gt;
wrote:
&gt; Since I was asked several times off-list and there have also been some
&gt; mails on the users list asking about the best way to integrate Cocoon
&gt; with Wicket, I invested some time into a first implementation. Actually
&gt; there are five ideas that I have:
&gt; 
&gt;  a) An IRequestTargetUrlCodingStrategy wrapping a Cocoon sitemap
&gt;  b) An IRequestTargetUrlCodingStrategy wrapping a Cocoon pipeline
&gt;  c) A page component wrapping a Cocoon pipeline
&gt;  d) A Wicket reader to be used in Cocoon sitemaps
&gt;  e) Wicket generator/transformer, again to be used in sitemaps
&gt; 
&gt; a) and b) are useful to add a couple of pipelines to your Wicket
&gt; application. c) helps if you want to use a Cocoon pipeline to provide
&gt; the content of some parts of a page.
&gt; 
&gt; d) and e) help to run a Wicket application in parallel with Cocoon while
&gt; Cocoon remains the "leading" framework.
&gt; 
&gt;                                    - o -
&gt; 
&gt; I added implementations and samples for a, c and d to the SVN. The
&gt; generic parts are in the cocoon-wicket module, the Cocoon/Wicket samples
&gt; in cocoon-samples and the Wicket/Cocoon samples in
&gt; cocoon-samples-wicket-webapp.
&gt; 
&gt; I also wrote some initial documentation that you can find at
&gt; http://people.apache.org/~reinhard/c3-ref/html/wicket-integration.html
&gt; 
&gt;                                    - o -
&gt; 
&gt; Currently it's rather a proof-of-concept (especially the reader) than
&gt; something that you should use in production, but hopefully a first step
&gt; and a basis for further discussions if this is of help to others.
&gt; 
&gt; Let me know if this is of interest to you and what you think about the
&gt; different approaches.
&gt; 
&gt; And finally many thanks to Steven who helped me to hunt down some
&gt; bugs in the reader component.


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Cocoon documentation</title>
<author><name>=?UTF-8?B?UmVpbmhhcmQgUMO2dHo=?= &lt;reinhard@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200912.mbox/%3c4B190601.5060804@apache.org%3e"/>
<id>urn:uuid:%3c4B190601-5060804@apache-org%3e</id>
<updated>2009-12-04T12:52:17Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Jos Snellings wrote:
&gt; What editor do you use?.
&gt; (I mostly use XMLMind)

yes, either XMLMind or I use use a schema-aware editor.

-- 
Reinhard PÃ¶tz                           Managing Director, {Indoqa} GmbH
                         http://www.indoqa.com/en/people/reinhard.poetz/

Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member                  reinhard@apache.org
________________________________________________________________________


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Cocoon documentation</title>
<author><name>Jos Snellings &lt;Jos.Snellings@pandora.be&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200912.mbox/%3c1259930115.2617.0.camel@joske-laptop%3e"/>
<id>urn:uuid:%3c1259930115-2617-0-camel@joske-laptop%3e</id>
<updated>2009-12-04T12:35:15Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
What editor do you use?.
(I mostly use XMLMind)

On Fri, 2009-12-04 at 12:09 +0100, Reinhard PÃ¶tz wrote:
&gt; Jos Snellings wrote:
&gt; &gt; Currently there is an initialisation problem. 
&gt; &gt; Anyway, Reinhard, you had a great table of contents. That is a good way
&gt; &gt; to get started: what nodes are missing? That way, we may fill in the
&gt; &gt; gaps, whilst trying our best to preserve unity of presentation &amp; writing
&gt; &gt; style
&gt; &gt; All docbook, I guess?
&gt; 
&gt; Yes, cocoon-docs is based on docbook and a Maven 2 docbook plugin that
&gt; creates html and pdf docs:
&gt; 
&gt; See
&gt; http://svn.apache.org/repos/asf/cocoon/cocoon3/trunk/cocoon-docs/src/docbkx/reference/
&gt; 
&gt; You can generate the documentation yourself by invoking 'mvn site' from
&gt; the base directory of the cocoon-docs module.
&gt; 




</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Cocoon documentation</title>
<author><name>=?UTF-8?B?UmVpbmhhcmQgUMO2dHo=?= &lt;reinhard@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200912.mbox/%3c4B18EDDC.9040902@apache.org%3e"/>
<id>urn:uuid:%3c4B18EDDC-9040902@apache-org%3e</id>
<updated>2009-12-04T11:09:16Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Jos Snellings wrote:
&gt; Currently there is an initialisation problem. 
&gt; Anyway, Reinhard, you had a great table of contents. That is a good way
&gt; to get started: what nodes are missing? That way, we may fill in the
&gt; gaps, whilst trying our best to preserve unity of presentation &amp; writing
&gt; style
&gt; All docbook, I guess?

Yes, cocoon-docs is based on docbook and a Maven 2 docbook plugin that
creates html and pdf docs:

See
http://svn.apache.org/repos/asf/cocoon/cocoon3/trunk/cocoon-docs/src/docbkx/reference/

You can generate the documentation yourself by invoking 'mvn site' from
the base directory of the cocoon-docs module.

-- 
Reinhard PÃ¶tz                           Managing Director, {Indoqa} GmbH
                         http://www.indoqa.com/en/people/reinhard.poetz/

Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member                  reinhard@apache.org
________________________________________________________________________


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Cocoon documentation</title>
<author><name>Jos Snellings &lt;Jos.Snellings@pandora.be&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200912.mbox/%3c1259923534.2665.37.camel@joske-laptop%3e"/>
<id>urn:uuid:%3c1259923534-2665-37-camel@joske-laptop%3e</id>
<updated>2009-12-04T10:45:34Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Currently there is an initialisation problem. 
Anyway, Reinhard, you had a great table of contents. That is a good way
to get started: what nodes are missing? That way, we may fill in the
gaps, whilst trying our best to preserve unity of presentation &amp; writing
style
All docbook, I guess?

Jos


On Fri, 2009-12-04 at 10:15 +0100, Reinhard PÃ¶tz wrote:
&gt; Matt Whipple wrote:
&gt; &gt; Reinhard PÃ¶tz wrote:
&gt; &gt;&gt; Matt Whipple wrote:
&gt; &gt;&gt;   
&gt; &gt;&gt;&gt; Jos Snellings wrote:
&gt; &gt;&gt;&gt;     
&gt; &gt;&gt;&gt;&gt; The documentation of cocoon-3 can be checked out as:
&gt; &gt;&gt;&gt;&gt; svn co http://svn.apache.org/repos/asf/cocoon/cocoon3/trunk/cocoon-docs\
&gt; &gt;&gt;&gt;&gt;   
&gt; &gt;&gt;&gt;&gt;       
&gt; &gt;&gt;&gt; I stumbled upon the HTML deliverable of that on
&gt; &gt;&gt;&gt; http://people.apache.org/~reinhard/c3-ref/html/ after sending my email.

&gt; &gt;&gt;&gt; I'd think it would be best if the official documentation focused on
&gt; &gt;&gt;&gt; being primarily a comprehensive reference with a quick bootstrap guide.

&gt; &gt;&gt;&gt; A community documentation site could then supplement that with all the
&gt; &gt;&gt;&gt; typical tutorials/how-to's and tips &amp; tricks which gets the reader where
&gt; &gt;&gt;&gt; he wants to be with a straightforward, minimalist approach which then
&gt; &gt;&gt;&gt; references the official docs and other more enlightening sources. 
&gt; &gt;&gt;&gt; Regular articles/blog entries could then highlight the activity in the
&gt; &gt;&gt;&gt; community, and the possibilities of various Cocoon components could be
&gt; &gt;&gt;&gt; showcased.  Guides to all of the overlapping processes which can be
&gt; &gt;&gt;&gt; [easily] extrapolated from existing material can be given a home so that
&gt; &gt;&gt;&gt; a potential new developer with a specific need is provided with an
&gt; &gt;&gt;&gt; apparent foot in the door.  Basically a site which presents a welcoming,
&gt; &gt;&gt;&gt; active community rather than seemingly a group of scattered people
&gt; &gt;&gt;&gt; developing in Cocoons and enabling me to make bad wordplay (such is the
&gt; &gt;&gt;&gt; price).  To that end, an agreed upon forum would be ideal. 
&gt; &gt;&gt;&gt;     
&gt; &gt;&gt; Agreed. When I started to write the C3 documentation, I had the Spring
&gt; &gt;&gt; reference documentation in mind. I think it's one of the best examples
&gt; &gt;&gt; because it focuses on describing the technology and the concepts.
&gt; &gt;&gt;
&gt; &gt;&gt; As a forum for everything beyond reference docs we could either use
&gt; &gt;&gt; Daisy or the Apache Wiki. (http://wiki.apache.org/cocoon)
&gt; &gt;&gt;
&gt; &gt;&gt;   
&gt; &gt; My thought would be Daisy (cocoondev.org?) so the site itself can be
&gt; &gt; Cocoon powered and then the wiki can remain legacy docs.
&gt; 
&gt; The Cocoon project runs its own Daisy instance at
&gt; http://cocoon.zones.apache.org/daisy/
&gt; 
&gt; We could setup a Cocoon 3 wiki site there.
&gt; 




</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Cocoon documentation</title>
<author><name>=?UTF-8?B?UmVpbmhhcmQgUMO2dHo=?= &lt;reinhard@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200912.mbox/%3c4B18D341.6090901@apache.org%3e"/>
<id>urn:uuid:%3c4B18D341-6090901@apache-org%3e</id>
<updated>2009-12-04T09:15:45Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Matt Whipple wrote:
&gt; Reinhard PÃ¶tz wrote:
&gt;&gt; Matt Whipple wrote:
&gt;&gt;   
&gt;&gt;&gt; Jos Snellings wrote:
&gt;&gt;&gt;     
&gt;&gt;&gt;&gt; The documentation of cocoon-3 can be checked out as:
&gt;&gt;&gt;&gt; svn co http://svn.apache.org/repos/asf/cocoon/cocoon3/trunk/cocoon-docs\
&gt;&gt;&gt;&gt;   
&gt;&gt;&gt;&gt;       
&gt;&gt;&gt; I stumbled upon the HTML deliverable of that on
&gt;&gt;&gt; http://people.apache.org/~reinhard/c3-ref/html/ after sending my email. 
&gt;&gt;&gt; I'd think it would be best if the official documentation focused on
&gt;&gt;&gt; being primarily a comprehensive reference with a quick bootstrap guide. 
&gt;&gt;&gt; A community documentation site could then supplement that with all the
&gt;&gt;&gt; typical tutorials/how-to's and tips &amp; tricks which gets the reader where
&gt;&gt;&gt; he wants to be with a straightforward, minimalist approach which then
&gt;&gt;&gt; references the official docs and other more enlightening sources. 
&gt;&gt;&gt; Regular articles/blog entries could then highlight the activity in the
&gt;&gt;&gt; community, and the possibilities of various Cocoon components could be
&gt;&gt;&gt; showcased.  Guides to all of the overlapping processes which can be
&gt;&gt;&gt; [easily] extrapolated from existing material can be given a home so that
&gt;&gt;&gt; a potential new developer with a specific need is provided with an
&gt;&gt;&gt; apparent foot in the door.  Basically a site which presents a welcoming,
&gt;&gt;&gt; active community rather than seemingly a group of scattered people
&gt;&gt;&gt; developing in Cocoons and enabling me to make bad wordplay (such is the
&gt;&gt;&gt; price).  To that end, an agreed upon forum would be ideal. 
&gt;&gt;&gt;     
&gt;&gt; Agreed. When I started to write the C3 documentation, I had the Spring
&gt;&gt; reference documentation in mind. I think it's one of the best examples
&gt;&gt; because it focuses on describing the technology and the concepts.
&gt;&gt;
&gt;&gt; As a forum for everything beyond reference docs we could either use
&gt;&gt; Daisy or the Apache Wiki. (http://wiki.apache.org/cocoon)
&gt;&gt;
&gt;&gt;   
&gt; My thought would be Daisy (cocoondev.org?) so the site itself can be
&gt; Cocoon powered and then the wiki can remain legacy docs.

The Cocoon project runs its own Daisy instance at
http://cocoon.zones.apache.org/daisy/

We could setup a Cocoon 3 wiki site there.

-- 
Reinhard PÃ¶tz                           Managing Director, {Indoqa} GmbH
                         http://www.indoqa.com/en/people/reinhard.poetz/

Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member                  reinhard@apache.org
________________________________________________________________________


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Initialization of variables</title>
<author><name>Jos Snellings &lt;Jos.Snellings@pandora.be&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200912.mbox/%3c1259905814.2665.7.camel@joske-laptop%3e"/>
<id>urn:uuid:%3c1259905814-2665-7-camel@joske-laptop%3e</id>
<updated>2009-12-04T05:50:14Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Johannes,

I must say, I do not completely understand your point. Talking about
such things as 'transactions': you could setup in the system what needs
to be setup once in a separate class.
Below is an example from the real world where database connections are
set up in a separate spring bean:




On Fri, 2009-12-04 at 02:06 +0100, Johannes Lichtenberger wrote:
&gt; Hello,
&gt; 
&gt; how do I initialize an object (a transaction), which I then have to
&gt; access in a self written pipeline component (generator)?
&gt; 
&gt; My concern is, that the session can only be bound once to a path/file,
&gt; so subsequent requests throw errors.
&gt; 
&gt; regards,
&gt; Johannes
&gt; 
&gt; 
package org.herein.thesaurus.cocoon;

import java.util.Map;
import java.util.Set;

import javax.servlet.http.HttpServletRequest;

import org.apache.cocoon.pipeline.caching.CacheKey;
import org.apache.cocoon.pipeline.caching.SimpleCacheKey;
import org.apache.cocoon.pipeline.component.CachingPipelineComponent;
import org.apache.cocoon.sax.AbstractSAXGenerator;
import org.apache.cocoon.xml.sax.AttributesImpl;
import org.apache.cocoon.sax.SAXConsumer;

import org.apache.cocoon.rest.controller.annotation.SitemapParameter;
import org.apache.cocoon.servlet.util.HttpContextHelper;

import org.xml.sax.SAXException;

import org.herein.thesaurus.ThesaurusBrowser;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

public class ToptermsGenerator extends AbstractSAXGenerator  implements
CachingPipelineComponent, ApplicationContextAware {
  
	private ApplicationContext applicationContext;
	
    @SitemapParameter
    private String language;
    
    @SitemapParameter
    private String deep;  
    
    private String showClass;  
    private String id;
    private String editing;
    
// String language = "en";

public void setup(Map&lt;String, Object&gt; parameters)  {
     HttpServletRequest request =
HttpContextHelper.getRequest(parameters);
     language = request.getParameter("language");
     deep = request.getParameter("all");     
     showClass = request.getParameter("class");
     id = request.getParameter("nr");
     editing = request.getParameter("edit");
}

public void execute() {
	
	
        SAXConsumer consumer = this.getSAXConsumer();
        try {
            consumer.startDocument();

            consumer.startElement("", "page", "page", new
AttributesImpl());
            
            if (deep == null) {
            	AttributesImpl attr = new AttributesImpl();
            	consumer.startElement("", "searchform", "searchform",
attr);
            	consumer.endElement("", "searchform", "searchform");      
            	}
            
            ThesaurusBrowser T;
            
            if (editing != null) T =  (ThesaurusBrowser)
applicationContext.getBean("EditThesaurusBrowser");
            else T = (ThesaurusBrowser)
applicationContext.getBean("ThesaurusBrowser");
            
            if ((showClass != null) &amp;&amp; showClass.equals("1")) {
            	T.showClass(consumer,id);
            	}
            else if ((deep != null) &amp;&amp; (deep.equals("1"))) {
            	T.listClassesDeep(consumer, language);
                }
            else if (language != null) {
            	T.listClasses(consumer, language);
            	}
            consumer.endElement("","page","page");
            consumer.endDocument();
        } catch (SAXException e) {
            throw new RuntimeException(e);
        }
    }
	
	
public CacheKey constructCacheKey() {
	        return new SimpleCacheKey();
	    }
	
public void setApplicationContext(ApplicationContext applicationContext)
{
    this.applicationContext = applicationContext;
}


}




</pre>
</div>
</content>
</entry>
<entry>
<title>Initialization of variables</title>
<author><name>Johannes Lichtenberger &lt;Johannes.Lichtenberger@uni-konstanz.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200912.mbox/%3c1259888792.3973.114.camel@luna%3e"/>
<id>urn:uuid:%3c1259888792-3973-114-camel@luna%3e</id>
<updated>2009-12-04T01:06:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello,

how do I initialize an object (a transaction), which I then have to
access in a self written pipeline component (generator)?

My concern is, that the session can only be bound once to a path/file,
so subsequent requests throw errors.

regards,
Johannes



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Subscription: COCOON-open-with-patch</title>
<author><name>jira@apache.org</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200912.mbox/%3c965510944.1259750421573.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c965510944-1259750421573-JavaMail-jira@brutus%3e</id>
<updated>2009-12-02T10:40:21Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Issue Subscription
Filter: COCOON-open-with-patch (110 issues)
Subscriber: cocoon
        
Key         Summary
COCOON-2268 To extend the image reader we need to change the visibility to the parameter of
the ImageReader
            https://issues.apache.org/jira/browse/COCOON-2268
COCOON-2262 container.refresh() is called before embeddedServlet.init()
            https://issues.apache.org/jira/browse/COCOON-2262
COCOON-2260 wrong parent version in pom of cocoon-flowscript-impl
            https://issues.apache.org/jira/browse/COCOON-2260
COCOON-2259 Memory leak in PoolableProxyHandler
            https://issues.apache.org/jira/browse/COCOON-2259
COCOON-2250 Wrong error message in Element.java (jx:element)
            https://issues.apache.org/jira/browse/COCOON-2250
COCOON-2249 XHTMLSerializer uses entity references &amp;quot; and &amp;apos; which cause JavaScript
parse errors
            https://issues.apache.org/jira/browse/COCOON-2249
COCOON-2246 HttpRequest  should handle encoding in getParameter and getParameterValues in
the same way
            https://issues.apache.org/jira/browse/COCOON-2246
COCOON-2233 Update archetypes to current trunk artifact versions
            https://issues.apache.org/jira/browse/COCOON-2233
COCOON-2222 Add SaxParser configuration properties
            https://issues.apache.org/jira/browse/COCOON-2222
COCOON-2216 IncludeCacheManager can not perfom parallel includes
            https://issues.apache.org/jira/browse/COCOON-2216
COCOON-2212 jx:attribute does not check name is correct before proceeding
            https://issues.apache.org/jira/browse/COCOON-2212
COCOON-2197 Making the cocoon-auth-block acegi-security-sample work
            https://issues.apache.org/jira/browse/COCOON-2197
COCOON-2173 AbstractCachingProcessingPipeline: Two requests can deadlock each other
            https://issues.apache.org/jira/browse/COCOON-2173
COCOON-2162 [PATCH] Fix for Paginator when accessing out of bounds Pagination page
            https://issues.apache.org/jira/browse/COCOON-2162
COCOON-2137 XSD Schemas for CForms Development
            https://issues.apache.org/jira/browse/COCOON-2137
COCOON-2114 fix sorting in TraversableGenerator
            https://issues.apache.org/jira/browse/COCOON-2114
COCOON-2108 xmodule:flow-attr Does not accept document objects
            https://issues.apache.org/jira/browse/COCOON-2108
COCOON-2104 [PATCH] Add base URI fixup support to XIncludeTransformer
            https://issues.apache.org/jira/browse/COCOON-2104
COCOON-2100 Retrieving mimeType returned by pipeline executed from Flow
            https://issues.apache.org/jira/browse/COCOON-2100
COCOON-2041 WebDAV Returns improper status on PUT
            https://issues.apache.org/jira/browse/COCOON-2041
COCOON-2040 Union widget does not work with booleanfield set as case widget
            https://issues.apache.org/jira/browse/COCOON-2040
COCOON-2037 New DynamicGroup widget
            https://issues.apache.org/jira/browse/COCOON-2037
COCOON-2035 NPE in the sorter of the EnhancedRepeater
            https://issues.apache.org/jira/browse/COCOON-2035
COCOON-2032 [PATCH] Sort order in paginated repeater
            https://issues.apache.org/jira/browse/COCOON-2032
COCOON-2030 submit-on-change doesn't work for a multivaluefield with list-type="checkbox"
            https://issues.apache.org/jira/browse/COCOON-2030
COCOON-2018 Use thread context class loader to load custom binding classes
            https://issues.apache.org/jira/browse/COCOON-2018
COCOON-2017 More output beautification options for serializers
            https://issues.apache.org/jira/browse/COCOON-2017
COCOON-2015 Doctype added twice because root element (html) is inlined
            https://issues.apache.org/jira/browse/COCOON-2015
COCOON-2002 HTML transformer  only works with latin-1 characters
            https://issues.apache.org/jira/browse/COCOON-2002
COCOON-1974 Donating ContextAttributeInputModule
            https://issues.apache.org/jira/browse/COCOON-1974
COCOON-1973 CaptchaValidator: allow case-insensitive matching
            https://issues.apache.org/jira/browse/COCOON-1973
COCOON-1964 Redirects inside a block called via the servlet protocol fail
            https://issues.apache.org/jira/browse/COCOON-1964
COCOON-1963 Add a redirect action to the browser update handler
            https://issues.apache.org/jira/browse/COCOON-1963
COCOON-1960 Pipeline errors for "generator/reader already set" should provide more information
            https://issues.apache.org/jira/browse/COCOON-1960
COCOON-1949 [PATCH] load flowscript from file into specified Rhino context object
            https://issues.apache.org/jira/browse/COCOON-1949
COCOON-1946 [PATCH] - Javaflow Sample errors trying to enhance Javaflow classes and showing
cform templates
            https://issues.apache.org/jira/browse/COCOON-1946
COCOON-1943 [Patch] Parameters in blocks-protocol URIs get decoded too early
            https://issues.apache.org/jira/browse/COCOON-1943
COCOON-1932 [PATCH] correct styling of disabled suggestion lists
            https://issues.apache.org/jira/browse/COCOON-1932
COCOON-1929 [PATCH] Reloading classloader in Cocoon 2.2
            https://issues.apache.org/jira/browse/COCOON-1929
COCOON-1917 Request Encoding problem: multipart/form vs. url encoded
            https://issues.apache.org/jira/browse/COCOON-1917
COCOON-1915 Nullable value with additional String or XMLizable in JavaSelectionList
            https://issues.apache.org/jira/browse/COCOON-1915
COCOON-1914 Text as XMLizable in EmptySelectionList
            https://issues.apache.org/jira/browse/COCOON-1914
COCOON-1899 [PATCH] Cocoon XML:DB Implementation should not depend on Xindice
            https://issues.apache.org/jira/browse/COCOON-1899
COCOON-1898 [PATCH] XPatch support for maven-cocoon-deployer-plugin
            https://issues.apache.org/jira/browse/COCOON-1898
COCOON-1893 XML-Binding: Problem creating a new element
            https://issues.apache.org/jira/browse/COCOON-1893
COCOON-1877 [PATCH] Pageable Repeater
            https://issues.apache.org/jira/browse/COCOON-1877
COCOON-1870 Lucene block does not store attributes when instructed so
            https://issues.apache.org/jira/browse/COCOON-1870
COCOON-1846 [PATCH] BooleanField and radio do not send on-value-changed at the rigth time
with IE
            https://issues.apache.org/jira/browse/COCOON-1846
COCOON-1843 LDAPTransformer: add-entry tag doesn't work
            https://issues.apache.org/jira/browse/COCOON-1843
COCOON-1842 LDAPTransformer: ClassCastException with Binary fields
            https://issues.apache.org/jira/browse/COCOON-1842
COCOON-1810 [PATCH] JMSEventMessageListener does not work
            https://issues.apache.org/jira/browse/COCOON-1810
COCOON-1807 Workaround for IE Bug in &lt;button&gt;
            https://issues.apache.org/jira/browse/COCOON-1807
COCOON-1794 [PATCH] Propagation of namespaces to a repeaters child bindings and implementation
of a move-node binding
            https://issues.apache.org/jira/browse/COCOON-1794
COCOON-1738 double-listbox problem in repeaters
            https://issues.apache.org/jira/browse/COCOON-1738
COCOON-1726 Implementation of Source that supports conditional GETs
            https://issues.apache.org/jira/browse/COCOON-1726
COCOON-1717 Use custom cache keys for caching uri coplets using input modules.
            https://issues.apache.org/jira/browse/COCOON-1717
COCOON-1697 Allow request parameters to be used in "for (var k in h)" kind of Javascript Loops
            https://issues.apache.org/jira/browse/COCOON-1697
COCOON-1648 Add support for ISO8601 in I18nTransformer and Forms
            https://issues.apache.org/jira/browse/COCOON-1648
COCOON-1618 [PATCH] SoapGenerator/Serializer for Axis Block
            https://issues.apache.org/jira/browse/COCOON-1618
COCOON-1611 [PATCH] Add additonal constructor to FormInstance.java to be able to pass a locale
            https://issues.apache.org/jira/browse/COCOON-1611
COCOON-1603 [PATCH] handling of alternatives in MailTransformer
            https://issues.apache.org/jira/browse/COCOON-1603
COCOON-1573 Improvement SetAttributeJXPathBinding and Contribution SetNodeValueJXPathBinding
            https://issues.apache.org/jira/browse/COCOON-1573
COCOON-1556 [PATCH] Add a JXPathConvertor for conversion betwean beans and Strings
            https://issues.apache.org/jira/browse/COCOON-1556
COCOON-1535 [PATCH] enhancement to {global:} input module: return all sitemap globals
            https://issues.apache.org/jira/browse/COCOON-1535
COCOON-1527 [PATCH] Cache control logic sheets for XSP to override getKey and getValidity
            https://issues.apache.org/jira/browse/COCOON-1527
COCOON-1526 [PATCH] processToDOM returns a read-only DOM
            https://issues.apache.org/jira/browse/COCOON-1526
COCOON-1519 [PATCH] TeeTransformer refactoring
            https://issues.apache.org/jira/browse/COCOON-1519
COCOON-1508 [PATCH] Avalonize TranscoderFactory
            https://issues.apache.org/jira/browse/COCOON-1508
COCOON-1506 [PATCH] Manually specifying a mounted sitemap's context
            https://issues.apache.org/jira/browse/COCOON-1506
COCOON-1488 [PATCH] htmlunit-based testing, needs to be ported to 2.2
            https://issues.apache.org/jira/browse/COCOON-1488
COCOON-1467 ESQL exception handling problem
            https://issues.apache.org/jira/browse/COCOON-1467
COCOON-1439 [poi] vertical text orientation and font cache
            https://issues.apache.org/jira/browse/COCOON-1439
COCOON-1398 New CachingPortletAdapter
            https://issues.apache.org/jira/browse/COCOON-1398
COCOON-1395 [PATCH] Missing ContextAttributeInputModule
            https://issues.apache.org/jira/browse/COCOON-1395
COCOON-1394 [PATCH] Implementation of PortletRequest#getQueryString()
            https://issues.apache.org/jira/browse/COCOON-1394
COCOON-1384 [PATCH] flow redirector should allow explicit 'cocoon:' scheme
            https://issues.apache.org/jira/browse/COCOON-1384
COCOON-1370 [PATCH] proxy block can now use JTidy and handle multipart POST
            https://issues.apache.org/jira/browse/COCOON-1370
COCOON-1368 [PATCH] HTTPRequestTransformer
            https://issues.apache.org/jira/browse/COCOON-1368
COCOON-1362 [PATCH] log4j.xconf should have the same default config as logkit.xconf
            https://issues.apache.org/jira/browse/COCOON-1362
COCOON-1360 [patch] client side validation for CForms
            https://issues.apache.org/jira/browse/COCOON-1360
COCOON-1345 [PATCH] Extract convertors into their own block
            https://issues.apache.org/jira/browse/COCOON-1345
COCOON-1340 [PATCH] lucene block contribution : a AnalyzerManager component
            https://issues.apache.org/jira/browse/COCOON-1340
COCOON-1337 [PATCH] Suggestion for widget population
            https://issues.apache.org/jira/browse/COCOON-1337
COCOON-1336 [PATCH] PortletWindowAspect: hiding portlet mode icons and new feature "force-sizable"
            https://issues.apache.org/jira/browse/COCOON-1336
COCOON-1332 [PATCH] content-length and content-type for portlet ActionRequest
            https://issues.apache.org/jira/browse/COCOON-1332
COCOON-1329 [PATCH] Fix for cocoon.jar bundled in ear common for portal.war and portlet.war
            https://issues.apache.org/jira/browse/COCOON-1329
COCOON-1325 [PATCH] commons-fileupload based multipart parser
            https://issues.apache.org/jira/browse/COCOON-1325
COCOON-1302 [Patch] Word Document Generator
            https://issues.apache.org/jira/browse/COCOON-1302
COCOON-1295 ParallelContentAggregator, multithreaded aggregating
            https://issues.apache.org/jira/browse/COCOON-1295
COCOON-1260 [PATCH] MultipartParser can now handle multipart/mixed
            https://issues.apache.org/jira/browse/COCOON-1260
COCOON-1254 [Patch] OWQLTransformer + RDQLTransformer
            https://issues.apache.org/jira/browse/COCOON-1254
COCOON-1249 [Patch] XMLDBSource should accept scheme://user:pass@host:port/path URIs
            https://issues.apache.org/jira/browse/COCOON-1249
COCOON-1232 [PATCH] NEW--ModuleDB Action for ORACLE( auto. increment )
            https://issues.apache.org/jira/browse/COCOON-1232
COCOON-1203 [PATCH] inserver junit testing
            https://issues.apache.org/jira/browse/COCOON-1203
COCOON-1200 [PATCH] XML CSS engine
            https://issues.apache.org/jira/browse/COCOON-1200
COCOON-1185 [PATCH] BerkeleyDBStore
            https://issues.apache.org/jira/browse/COCOON-1185
COCOON-1147 [PATCH] namespace issues with XMLDBTransformer
            https://issues.apache.org/jira/browse/COCOON-1147
COCOON-1125 [PATCH] Updated CastorTransformer + samples
            https://issues.apache.org/jira/browse/COCOON-1125
COCOON-1027 [PATCH] CocoonBean add additional features for reprocessing pipelines and interrupt
processing
            https://issues.apache.org/jira/browse/COCOON-1027
COCOON-996  [PATCH] LuceneIndexContentHandler.java produces CLOBs
            https://issues.apache.org/jira/browse/COCOON-996
COCOON-988  [PATCH] StreamGenerator can't handle multipart request parameters correctly
            https://issues.apache.org/jira/browse/COCOON-988
COCOON-881  [PATCH] file upload component for usage with flowscript
            https://issues.apache.org/jira/browse/COCOON-881
COCOON-871  [PATCH] XML posting from SourceWritingTransformer by using an enhanced HTTPClientSource
            https://issues.apache.org/jira/browse/COCOON-871
COCOON-867  [PATCH] wsinclude and htmlinclude transformers
            https://issues.apache.org/jira/browse/COCOON-867
COCOON-865  [PATCH] New ResourceLoadAction
            https://issues.apache.org/jira/browse/COCOON-865
COCOON-844  [PATCH] adding &lt;wd:on-phase&gt; and moving load() and save() to Form.
            https://issues.apache.org/jira/browse/COCOON-844
COCOON-825  [PATCH] Fix Bug: Better handling of CLOB in esql (get-xml) and handling of Oracle
'temporary lobs'
            https://issues.apache.org/jira/browse/COCOON-825
COCOON-719  [PATCH] Support for transactions in SQLTransformer
            https://issues.apache.org/jira/browse/COCOON-719
COCOON-717  [PATCH] Namespace cleanup in HTMLSerializer
            https://issues.apache.org/jira/browse/COCOON-717
COCOON-665  [PATCH] HSSFSerializer Support for FreezePane
            https://issues.apache.org/jira/browse/COCOON-665

You may edit this subscription at:
https://issues.apache.org/jira/secure/FilterSubscription!default.jspa?subId=10311&amp;filterId=12310771



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Cocoon documentation</title>
<author><name>=?UTF-8?B?UmVpbmhhcmQgUMO2dHo=?= &lt;reinhard@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200912.mbox/%3c4B157FB8.70406@apache.org%3e"/>
<id>urn:uuid:%3c4B157FB8-70406@apache-org%3e</id>
<updated>2009-12-01T20:42:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Matt Whipple wrote:
&gt; Jos Snellings wrote:
&gt;&gt; The documentation of cocoon-3 can be checked out as:
&gt;&gt; svn co http://svn.apache.org/repos/asf/cocoon/cocoon3/trunk/cocoon-docs\
&gt;&gt;   
&gt; I stumbled upon the HTML deliverable of that on
&gt; http://people.apache.org/~reinhard/c3-ref/html/ after sending my email. 
&gt; I'd think it would be best if the official documentation focused on
&gt; being primarily a comprehensive reference with a quick bootstrap guide. 
&gt; A community documentation site could then supplement that with all the
&gt; typical tutorials/how-to's and tips &amp; tricks which gets the reader where
&gt; he wants to be with a straightforward, minimalist approach which then
&gt; references the official docs and other more enlightening sources. 
&gt; Regular articles/blog entries could then highlight the activity in the
&gt; community, and the possibilities of various Cocoon components could be
&gt; showcased.  Guides to all of the overlapping processes which can be
&gt; [easily] extrapolated from existing material can be given a home so that
&gt; a potential new developer with a specific need is provided with an
&gt; apparent foot in the door.  Basically a site which presents a welcoming,
&gt; active community rather than seemingly a group of scattered people
&gt; developing in Cocoons and enabling me to make bad wordplay (such is the
&gt; price).  To that end, an agreed upon forum would be ideal. 

Agreed. When I started to write the C3 documentation, I had the Spring
reference documentation in mind. I think it's one of the best examples
because it focuses on describing the technology and the concepts.

As a forum for everything beyond reference docs we could either use
Daisy or the Apache Wiki. (http://wiki.apache.org/cocoon)

-- 
Reinhard PÃ¶tz                           Managing Director, {Indoqa} GmbH
                         http://www.indoqa.com/en/people/reinhard.poetz/

Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member                  reinhard@apache.org
________________________________________________________________________


</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (COCOON3-3) Provide an XInclude transformer as a PipelineComponent</title>
<author><name>&quot;Simone Tripodi (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200912.mbox/%3c173504950.1259698760695.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c173504950-1259698760695-JavaMail-jira@brutus%3e</id>
<updated>2009-12-01T20:19:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/COCOON3-3?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Simone Tripodi updated COCOON3-3:
---------------------------------

    Attachment: XIncludeTransformer.patch

Last uploaded patch (XIncludeTransformer.patch ~92K) contains a new implementation of the
XInclude processor based strictly only on SAX APIs, no more DOM to extract elements by ids
or by xpath expressions.

Like always, don't hesitate to contact me if some help or extra work is needed to apply the
patch.

&gt; Provide an XInclude transformer as a PipelineComponent
&gt; ------------------------------------------------------
&gt;
&gt;                 Key: COCOON3-3
&gt;                 URL: https://issues.apache.org/jira/browse/COCOON3-3
&gt;             Project: Cocoon 3
&gt;          Issue Type: Improvement
&gt;          Components: cocoon-sax
&gt;    Affects Versions: 3.0.0-alpha-1
&gt;            Reporter: Simone Tripodi
&gt;            Assignee: Cocoon Developers Team
&gt;            Priority: Minor
&gt;             Fix For: 3.0.0-alpha-3
&gt;
&gt;         Attachments: XInclude.patch, XIncludeTransformer.patch, XIncludeTransformerFixedAndApacheHeaders.patch
&gt;
&gt;
&gt; Oldest versions of cocoon already contain an XInclude transformer, it could be a good
starting point:
&gt; http://svn.eu.apache.org/repos/asf/cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-components/src/main/java/org/apache/cocoon/transformation/XIncludeTransformer.java
&gt; XPointer package's dependencies should be reduced to be imported in the new pipeline:
&gt; http://svn.eu.apache.org/repos/asf/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/components/xpointer
&gt; An alternative solution could be using xerces2 APIs:
&gt; http://xerces.apache.org/xerces2-j/faq-xinclude.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Cocoon documentation</title>
<author><name>Matt Whipple &lt;matt@mattwhipple.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200912.mbox/%3c4B154A5E.8010601@mattwhipple.com%3e"/>
<id>urn:uuid:%3c4B154A5E-8010601@mattwhipple-com%3e</id>
<updated>2009-12-01T16:54:54Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Reinhard PÃ¶tz wrote:
&gt; Matt Whipple wrote:
&gt;   
&gt;&gt; Jos Snellings wrote:
&gt;&gt;     
&gt;&gt;&gt; The documentation of cocoon-3 can be checked out as:
&gt;&gt;&gt; svn co http://svn.apache.org/repos/asf/cocoon/cocoon3/trunk/cocoon-docs\
&gt;&gt;&gt;   
&gt;&gt;&gt;       
&gt;&gt; I stumbled upon the HTML deliverable of that on
&gt;&gt; http://people.apache.org/~reinhard/c3-ref/html/ after sending my email. 
&gt;&gt; I'd think it would be best if the official documentation focused on
&gt;&gt; being primarily a comprehensive reference with a quick bootstrap guide. 
&gt;&gt; A community documentation site could then supplement that with all the
&gt;&gt; typical tutorials/how-to's and tips &amp; tricks which gets the reader where
&gt;&gt; he wants to be with a straightforward, minimalist approach which then
&gt;&gt; references the official docs and other more enlightening sources. 
&gt;&gt; Regular articles/blog entries could then highlight the activity in the
&gt;&gt; community, and the possibilities of various Cocoon components could be
&gt;&gt; showcased.  Guides to all of the overlapping processes which can be
&gt;&gt; [easily] extrapolated from existing material can be given a home so that
&gt;&gt; a potential new developer with a specific need is provided with an
&gt;&gt; apparent foot in the door.  Basically a site which presents a welcoming,
&gt;&gt; active community rather than seemingly a group of scattered people
&gt;&gt; developing in Cocoons and enabling me to make bad wordplay (such is the
&gt;&gt; price).  To that end, an agreed upon forum would be ideal. 
&gt;&gt;     
&gt;
&gt; Agreed. When I started to write the C3 documentation, I had the Spring
&gt; reference documentation in mind. I think it's one of the best examples
&gt; because it focuses on describing the technology and the concepts.
&gt;
&gt; As a forum for everything beyond reference docs we could either use
&gt; Daisy or the Apache Wiki. (http://wiki.apache.org/cocoon)
&gt;
&gt;   
My thought would be Daisy (cocoondev.org?) so the site itself can be
Cocoon powered and then the wiki can remain legacy docs.


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Cocoon documentation</title>
<author><name>Jos Snellings &lt;Jos.Snellings@pandora.be&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200912.mbox/%3c1259685109.3628.0.camel@joske-laptop%3e"/>
<id>urn:uuid:%3c1259685109-3628-0-camel@joske-laptop%3e</id>
<updated>2009-12-01T16:31:49Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Yes, that would be it...
agreed.
On Tue, 2009-12-01 at 06:23 -0500, Matt Whipple wrote:
&gt; Jos Snellings wrote:
&gt; &gt; The documentation of cocoon-3 can be checked out as:
&gt; &gt; svn co http://svn.apache.org/repos/asf/cocoon/cocoon3/trunk/cocoon-docs\
&gt; &gt;   
&gt; I stumbled upon the HTML deliverable of that on
&gt; http://people.apache.org/~reinhard/c3-ref/html/ after sending my email. 
&gt; I'd think it would be best if the official documentation focused on
&gt; being primarily a comprehensive reference with a quick bootstrap guide. 
&gt; A community documentation site could then supplement that with all the
&gt; typical tutorials/how-to's and tips &amp; tricks which gets the reader where
&gt; he wants to be with a straightforward, minimalist approach which then
&gt; references the official docs and other more enlightening sources. 
&gt; Regular articles/blog entries could then highlight the activity in the
&gt; community, and the possibilities of various Cocoon components could be
&gt; showcased.  Guides to all of the overlapping processes which can be
&gt; [easily] extrapolated from existing material can be given a home so that
&gt; a potential new developer with a specific need is provided with an
&gt; apparent foot in the door.  Basically a site which presents a welcoming,
&gt; active community rather than seemingly a group of scattered people
&gt; developing in Cocoons and enabling me to make bad wordplay (such is the
&gt; price).  To that end, an agreed upon forum would be ideal. 
&gt; &gt; The cocoon community will be delighted at some good documentation.
&gt; &gt; Talking about community I fear such as an active community is to be
&gt; &gt; reestablished, so I think we'd better provide some sweet stuff.
&gt; &gt;
&gt; &gt; What would Reinhard think of starting with as a table of contents?
&gt; &gt; I will be glad to write some documentation as well. I have some goose
&gt; &gt; feathers available after Christmas, when I will be through the
&gt; &gt; experience of creating a first
&gt; &gt; How about you? 
&gt; &gt; Jos
&gt; &gt;
&gt; &gt;
&gt; &gt; On Mon, 2009-11-30 at 08:07 -0500, Matt Whipple wrote:
&gt; &gt;   
&gt; &gt;&gt; I'm a recent transplant to Cocoon (and Java), in particular because
&gt; &gt;&gt; Cocoon 3 appears as though it is/will be closely in line with my own
&gt; &gt;&gt; perspective on web application development.  I'm interested in
&gt; &gt;&gt; contributing to the development of the framework itself, but likely
&gt; &gt;&gt; won't be able to produce anything remotely useful  for a couple months
&gt; &gt;&gt; as I familiarize myself with all of the related technologies. 
&gt; &gt;&gt;
&gt; &gt;&gt; I've just read some of the attacks on the poor documentation of the
&gt; &gt;&gt; project and the resulting difficult entry for those unfamiliar.  This
&gt; &gt;&gt; is, of course, easily confirmed by the combination of woefully out of
&gt; &gt;&gt; date references and dead links on the Web site (i.e. to the Daisy
&gt; &gt;&gt; site).  As I am (obviously) hopeful to see Cocoon succeed, I certainly
&gt; &gt;&gt; don't want it to become mired in isolation like so many good projects. 
&gt; &gt;&gt;
&gt; &gt;&gt; As such I'd like to try to contribute some documentation.  Is there any
&gt; &gt;&gt; idea among the community as to where documentation should end up, or
&gt; &gt;&gt; should I just create a new site?  Also, I'd lean towards focusing on
&gt; &gt;&gt; Cocoon 3, as having documentation in place for a new release would
&gt; &gt;&gt; likely have larger impact than attaching possibly overdue docs to an
&gt; &gt;&gt; older, in the process of being superseded one.  This would be premature
&gt; &gt;&gt; if there's no foreseeable beta....
&gt; &gt;&gt;
&gt; &gt;&gt;     
&gt; &gt;
&gt; &gt;
&gt; &gt;   
&gt; 
&gt; 




</pre>
</div>
</content>
</entry>
<entry>
<title>Re: REST / Can't find URLResponseBuilder</title>
<author><name>Steven Dolg &lt;steven.dolg@indoqa.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200912.mbox/%3c4B154258.7020600@indoqa.com%3e"/>
<id>urn:uuid:%3c4B154258-7020600@indoqa-com%3e</id>
<updated>2009-12-01T16:20:40Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Steven Dolg schrieb:
&gt; Johannes Lichtenberger schrieb:
&gt;&gt; On Sun, 2009-11-29 at 07:32 +0100, Jos Snellings wrote:
&gt;&gt;  
&gt;&gt;&gt; In the samples, a typical use of StringTemplate is shown: a page is to
&gt;&gt;&gt; be interpreted by the StringTemplate engine, and a number of properties
&gt;&gt;&gt; are passed via the hashtable.
&gt;&gt;&gt; The idea is that you would open a view on the object.
&gt;&gt;&gt; So, - the query points to a resource
&gt;&gt;&gt; - the controller decodes what the resource is and what you want (view
&gt;&gt;&gt; it, update it?)
&gt;&gt;&gt; - the way to view it could be: pass my resource to a StringTemplate
&gt;&gt;&gt; invocation:  new Page('stringtemplateinvocation',resource);
&gt;&gt;&gt;  
&gt;&gt;&gt; However, I have not tried to elaborate this so far. Shall I post it 
&gt;&gt;&gt; when
&gt;&gt;&gt; i have a useable example?
&gt;&gt;&gt;     
&gt;&gt;
&gt;&gt; Yes it would be great. My concern is that I don't want to display a
&gt;&gt; template page. I want to process the request (the parameters Google
&gt;&gt; Earth sends when zooming in) and within my Generator query a native XML
&gt;&gt; database system and built the algorithmic logic inside the generator
&gt;&gt; (what data out of the shreddered xml file is needed and has to be
&gt;&gt; transformed with an XSLT stylesheet). So I basically know how RESTful
&gt;&gt; webservices work, but I don't know how to use cocoon3 in this case (I
&gt;&gt; assume new Page(...) isn't the right thing to return when I just want to
&gt;&gt; pass the request params to my generator. So I don't want to use
&gt;&gt; StringTemplate in this case (but it's nontheless a great thing). So the
&gt;&gt; query points to a controller, which decides that it's a GET request
&gt;&gt; (view) and passes the parameters on to my generator (which I still have
&gt;&gt; to write).
&gt;&gt; Would be great if you or someone else could help me out (it's a project
&gt;&gt; in a course of our university ;-) and I thought cocoon is great for this
&gt;&gt; concern (get RESTful parameters, hand it on to a generator which selects
&gt;&gt; the needed data out of a shreddered xml file according to the
&gt;&gt; parameters, then transform the xml fragments with a XSLT stylesheet and
&gt;&gt; serialize the result, so that Google Earth can use the KML fragments
&gt;&gt; generated).
&gt;&gt;   
&gt;
&gt; Hi,
&gt;
&gt; I'm not entirely sure I understand what you want to do (or to be more 
&gt; precise which parts already exist and which don't), but I'll try to 
&gt; improvise.

I just found your other mail from earlier ("REST / own generator") and 
it seems your only problem is to access the HTTP request parameters.
If that's the case ditch the controller and access them in your 
generator like I explained in the first approach below.
They are already there - no need to use a controller to make them 
accessible...

&gt; I can imagine two approaches:
&gt;
&gt; 1.
&gt; You can access HTTP request parameters from a generator (or any other 
&gt; PipelineComponent - a Controller is just a fancy PipelineComponent) as 
&gt; well.
&gt; The SitemapServlet will add all HTTP request parameters to the 
&gt; invocation that is built to handle the request and will be passed to 
&gt; every PipelineComponent in the 
&gt; "org.apache.cocoon.pipeline.component.PipelineComponent.setup(Map&lt;String, 
&gt; Object&gt;)" method. The keys will be the names of the HTTP request 
&gt; parameters.
&gt; Read the parameters in your generator, and then perform the rest of 
&gt; your logic.
&gt;
&gt;
&gt; 2.
&gt; Keep the controller and do all pre-processing necessary within the 
&gt; controller: the XML DB, XSLT (if you just want to use XLST have a look 
&gt; at org.apache.cocoon.sax.util.TransformationUtils) etc.
&gt; When you are ready, store the data required for your generator in a 
&gt; parameter map (just like you did in the code fragment you posted) and 
&gt; delegate to a pipeline that uses your generator.
&gt; The generator will be able to access the data the same way I described 
&gt; above.
&gt; Only difference would be that in this case the key would be defined by 
&gt; your controller, while in the approach above the key would be 
&gt; determined by the name of the HTTP request parameter.
&gt;
&gt;
&gt; hth,
&gt; Steven
&gt;
&gt;&gt; Thank you,
&gt;&gt; Johannes
&gt;&gt;
&gt;&gt;   
&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: REST / Can't find URLResponseBuilder</title>
<author><name>Steven Dolg &lt;steven.dolg@indoqa.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200912.mbox/%3c4B1540CF.1070401@indoqa.com%3e"/>
<id>urn:uuid:%3c4B1540CF-1070401@indoqa-com%3e</id>
<updated>2009-12-01T16:14:07Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Johannes Lichtenberger schrieb:
&gt; On Sun, 2009-11-29 at 07:32 +0100, Jos Snellings wrote:
&gt;   
&gt;&gt; In the samples, a typical use of StringTemplate is shown: a page is to
&gt;&gt; be interpreted by the StringTemplate engine, and a number of properties
&gt;&gt; are passed via the hashtable.
&gt;&gt; The idea is that you would open a view on the object.
&gt;&gt; So, 
&gt;&gt; - the query points to a resource
&gt;&gt; - the controller decodes what the resource is and what you want (view
&gt;&gt; it, update it?)
&gt;&gt; - the way to view it could be: pass my resource to a StringTemplate
&gt;&gt; invocation:  new Page('stringtemplateinvocation',resource);
&gt;&gt;  
&gt;&gt; However, I have not tried to elaborate this so far. Shall I post it when
&gt;&gt; i have a useable example?
&gt;&gt;     
&gt;
&gt; Yes it would be great. My concern is that I don't want to display a
&gt; template page. I want to process the request (the parameters Google
&gt; Earth sends when zooming in) and within my Generator query a native XML
&gt; database system and built the algorithmic logic inside the generator
&gt; (what data out of the shreddered xml file is needed and has to be
&gt; transformed with an XSLT stylesheet). So I basically know how RESTful
&gt; webservices work, but I don't know how to use cocoon3 in this case (I
&gt; assume new Page(...) isn't the right thing to return when I just want to
&gt; pass the request params to my generator. So I don't want to use
&gt; StringTemplate in this case (but it's nontheless a great thing). So the
&gt; query points to a controller, which decides that it's a GET request
&gt; (view) and passes the parameters on to my generator (which I still have
&gt; to write). 
&gt;
&gt; Would be great if you or someone else could help me out (it's a project
&gt; in a course of our university ;-) and I thought cocoon is great for this
&gt; concern (get RESTful parameters, hand it on to a generator which selects
&gt; the needed data out of a shreddered xml file according to the
&gt; parameters, then transform the xml fragments with a XSLT stylesheet and
&gt; serialize the result, so that Google Earth can use the KML fragments
&gt; generated).
&gt;   

Hi,

I'm not entirely sure I understand what you want to do (or to be more 
precise which parts already exist and which don't), but I'll try to 
improvise.
I can imagine two approaches:

1.
You can access HTTP request parameters from a generator (or any other 
PipelineComponent - a Controller is just a fancy PipelineComponent) as well.
The SitemapServlet will add all HTTP request parameters to the 
invocation that is built to handle the request and will be passed to 
every PipelineComponent in the 
"org.apache.cocoon.pipeline.component.PipelineComponent.setup(Map&lt;String, 
Object&gt;)" method. The keys will be the names of the HTTP request parameters.
Read the parameters in your generator, and then perform the rest of your 
logic.


2.
Keep the controller and do all pre-processing necessary within the 
controller: the XML DB, XSLT (if you just want to use XLST have a look 
at org.apache.cocoon.sax.util.TransformationUtils) etc.
When you are ready, store the data required for your generator in a 
parameter map (just like you did in the code fragment you posted) and 
delegate to a pipeline that uses your generator.
The generator will be able to access the data the same way I described 
above.
Only difference would be that in this case the key would be defined by 
your controller, while in the approach above the key would be determined 
by the name of the HTTP request parameter.


hth,
Steven

&gt; Thank you,
&gt; Johannes
&gt;
&gt;   



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: StringTemplateGenerator</title>
<author><name>Steven Dolg &lt;steven.dolg@indoqa.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200912.mbox/%3c4B153C62.3000905@indoqa.com%3e"/>
<id>urn:uuid:%3c4B153C62-3000905@indoqa-com%3e</id>
<updated>2009-12-01T15:55:14Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Jos Snellings schrieb:
&gt; Dear,
&gt;
&gt; Just a small question, testing:
&gt; When I get:
&gt; java.lang.NullPointerException
&gt; 	at
&gt; org.apache.cocoon.stringtemplate.StringTemplateGenerator.constructCacheKey(StringTemplateGenerator.java:75)
&gt;
&gt; I notice that StringTemplateGenerator has two constructors: one with a
&gt; 'source' argument, and one without.
&gt; The one without source argument is called.
&gt; Does this make sense? Am I making a mistake in the sitemap?
&gt; Here's the code:
&gt;   &lt;map:match pattern="testcases/{name}.st"&gt;
&gt;       &lt;map:generate src="testcases/{map:name}.st"
&gt; type="string-template"/&gt;
&gt;        &lt;map:serialize type="xhtml"/&gt;
&gt;   &lt;/map:match&gt;
&gt;   

Hi,

the two constructors serve two different purposes:
* the default contructor is used by the sitemap to assemble pipelines in 
the way described by the sitemap definition (so that one being called is 
expected in your case)
* the constructor with the source parameter is intended for the 
programmatic use (pure convenience)

Looking at the code in the StringTemplateGenerator suggests that the 
source you're passing "testcases/{map:name}.st" cannot be resolved for 
the "name" you are using, thus resolving in the URL being null and 
causing a NPE.

URL resolution in your case (using a sitemap) is performed by the 
GenerateNode, which delegates back to the Invocation(Impl).
No logging in that area *sigh* so you will either need to double check 
your "name" parameter and resources and/or go debugging...

The sitemap fragment you posted is perfectly fine BTW.


hth,
Steven

&gt; Thanks,
&gt; Jos
&gt;
&gt;   



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Cocoon documentation</title>
<author><name>Matt Whipple &lt;matt@mattwhipple.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200912.mbox/%3c4B14FCA0.20905@mattwhipple.com%3e"/>
<id>urn:uuid:%3c4B14FCA0-20905@mattwhipple-com%3e</id>
<updated>2009-12-01T11:23:12Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Jos Snellings wrote:
&gt; The documentation of cocoon-3 can be checked out as:
&gt; svn co http://svn.apache.org/repos/asf/cocoon/cocoon3/trunk/cocoon-docs\
&gt;   
I stumbled upon the HTML deliverable of that on
http://people.apache.org/~reinhard/c3-ref/html/ after sending my email. 
I'd think it would be best if the official documentation focused on
being primarily a comprehensive reference with a quick bootstrap guide. 
A community documentation site could then supplement that with all the
typical tutorials/how-to's and tips &amp; tricks which gets the reader where
he wants to be with a straightforward, minimalist approach which then
references the official docs and other more enlightening sources. 
Regular articles/blog entries could then highlight the activity in the
community, and the possibilities of various Cocoon components could be
showcased.  Guides to all of the overlapping processes which can be
[easily] extrapolated from existing material can be given a home so that
a potential new developer with a specific need is provided with an
apparent foot in the door.  Basically a site which presents a welcoming,
active community rather than seemingly a group of scattered people
developing in Cocoons and enabling me to make bad wordplay (such is the
price).  To that end, an agreed upon forum would be ideal. 
&gt; The cocoon community will be delighted at some good documentation.
&gt; Talking about community I fear such as an active community is to be
&gt; reestablished, so I think we'd better provide some sweet stuff.
&gt;
&gt; What would Reinhard think of starting with as a table of contents?
&gt; I will be glad to write some documentation as well. I have some goose
&gt; feathers available after Christmas, when I will be through the
&gt; experience of creating a first
&gt; How about you? 
&gt; Jos
&gt;
&gt;
&gt; On Mon, 2009-11-30 at 08:07 -0500, Matt Whipple wrote:
&gt;   
&gt;&gt; I'm a recent transplant to Cocoon (and Java), in particular because
&gt;&gt; Cocoon 3 appears as though it is/will be closely in line with my own
&gt;&gt; perspective on web application development.  I'm interested in
&gt;&gt; contributing to the development of the framework itself, but likely
&gt;&gt; won't be able to produce anything remotely useful  for a couple months
&gt;&gt; as I familiarize myself with all of the related technologies. 
&gt;&gt;
&gt;&gt; I've just read some of the attacks on the poor documentation of the
&gt;&gt; project and the resulting difficult entry for those unfamiliar.  This
&gt;&gt; is, of course, easily confirmed by the combination of woefully out of
&gt;&gt; date references and dead links on the Web site (i.e. to the Daisy
&gt;&gt; site).  As I am (obviously) hopeful to see Cocoon succeed, I certainly
&gt;&gt; don't want it to become mired in isolation like so many good projects. 
&gt;&gt;
&gt;&gt; As such I'd like to try to contribute some documentation.  Is there any
&gt;&gt; idea among the community as to where documentation should end up, or
&gt;&gt; should I just create a new site?  Also, I'd lean towards focusing on
&gt;&gt; Cocoon 3, as having documentation in place for a new release would
&gt;&gt; likely have larger impact than attaching possibly overdue docs to an
&gt;&gt; older, in the process of being superseded one.  This would be premature
&gt;&gt; if there's no foreseeable beta....
&gt;&gt;
&gt;&gt;     
&gt;
&gt;
&gt;   



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [OT] [Job] Cocoon developer required (London)</title>
<author><name>David Legg &lt;david.legg@searchevent.co.uk&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200912.mbox/%3c4B14DF0B.7080503@searchevent.co.uk%3e"/>
<id>urn:uuid:%3c4B14DF0B-7080503@searchevent-co-uk%3e</id>
<updated>2009-12-01T09:16:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
in the HTML
Robby Pelssers wrote:
&gt; What did you do to make it crash? ;-)  I can open the home page without
&gt; any issues.
&gt;   

I've tried it on another XP machine and an Ubuntu system and... Doh! 
both work fine.

I suspect my machine doesn't like the video object in the HTML for some 
reason.  I have performed video editing on it before so maybe I have an 
errant codec installed somewhere.

As you were! ;-)

Regards,
David Legg



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Cocoon documentation</title>
<author><name>Jos Snellings &lt;Jos.Snellings@pandora.be&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200912.mbox/%3c1259648566.2682.7.camel@joske-laptop%3e"/>
<id>urn:uuid:%3c1259648566-2682-7-camel@joske-laptop%3e</id>
<updated>2009-12-01T06:22:46Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
The documentation of cocoon-3 can be checked out as:
svn co http://svn.apache.org/repos/asf/cocoon/cocoon3/trunk/cocoon-docs

The cocoon community will be delighted at some good documentation.
Talking about community I fear such as an active community is to be
reestablished, so I think we'd better provide some sweet stuff.

What would Reinhard think of starting with as a table of contents?
I will be glad to write some documentation as well. I have some goose
feathers available after Christmas, when I will be through the
experience of creating a first app.

How about you? 
Jos


On Mon, 2009-11-30 at 08:07 -0500, Matt Whipple wrote:
&gt; I'm a recent transplant to Cocoon (and Java), in particular because
&gt; Cocoon 3 appears as though it is/will be closely in line with my own
&gt; perspective on web application development.  I'm interested in
&gt; contributing to the development of the framework itself, but likely
&gt; won't be able to produce anything remotely useful  for a couple months
&gt; as I familiarize myself with all of the related technologies. 
&gt; 
&gt; I've just read some of the attacks on the poor documentation of the
&gt; project and the resulting difficult entry for those unfamiliar.  This
&gt; is, of course, easily confirmed by the combination of woefully out of
&gt; date references and dead links on the Web site (i.e. to the Daisy
&gt; site).  As I am (obviously) hopeful to see Cocoon succeed, I certainly
&gt; don't want it to become mired in isolation like so many good projects. 
&gt; 
&gt; As such I'd like to try to contribute some documentation.  Is there any
&gt; idea among the community as to where documentation should end up, or
&gt; should I just create a new site?  Also, I'd lean towards focusing on
&gt; Cocoon 3, as having documentation in place for a new release would
&gt; likely have larger impact than attaching possibly overdue docs to an
&gt; older, in the process of being superseded one.  This would be premature
&gt; if there's no foreseeable beta....
&gt; 




</pre>
</div>
</content>
</entry>
<entry>
<title>RE: [OT] [Job] Cocoon developer required (London)</title>
<author><name>&quot;Robby Pelssers&quot; &lt;robby.pelssers@ciber.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200911.mbox/%3c7C655C04B6F59643A1EF66056C0E095E03111000@eusex01.sweden.ecsoft%3e"/>
<id>urn:uuid:%3c7C655C04B6F59643A1EF66056C0E095E03111000@eusex01-sweden-ecsoft%3e</id>
<updated>2009-11-30T17:25:46Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
What did you do to make it crash? ;-)  I can open the home page without
any issues.

Robby

-----Original Message-----
From: David Legg [mailto:david.legg@searchevent.co.uk] 
Sent: Monday, November 30, 2009 3:42 PM
To: dev@cocoon.apache.org
Subject: Re:[OT] [Job] Cocoon developer required (London)

Hi Robin,

I thought I'd take a peek at your site jacaranda.co.uk and do you know 
what.... it crashed my Firefox browser!  Thinking it was some 
peculiarity of Firefox I tried IE7 and do you now what... it crashed 
that too :-)

Regards,
David Legg

Robin Wyles wrote:
&gt; Hi everyone,
&gt;
&gt; It's been a very long time since I've posted here (apologies, and 
&gt; hopefully more on that soon!)...
&gt;
&gt; We're looking for a Cocoon developer to help me out with the support 
&gt; and further development of our Cocoon based applications.
&gt;
&gt; We need strong skills in Cocoon, Spring, Linux, and preferably someone

&gt; based in or near to London, UK. We're looking for someone which we can

&gt; work with on a regular basis, and possibly even as a full-time
position.
&gt;
&gt; If you're at all interested drop me an email with a little info about 
&gt; yourself: robin@jacaranda.co.uk
&gt;
&gt; Thanks!
&gt;
&gt; Robin
&gt;
&gt;
&gt;
&gt;
&gt;
&gt;
&gt;
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re:[OT] [Job] Cocoon developer required (London)</title>
<author><name>David Legg &lt;david.legg@searchevent.co.uk&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200911.mbox/%3c4B13D99D.6070701@searchevent.co.uk%3e"/>
<id>urn:uuid:%3c4B13D99D-6070701@searchevent-co-uk%3e</id>
<updated>2009-11-30T14:41:33Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Robin,

I thought I'd take a peek at your site jacaranda.co.uk and do you know 
what.... it crashed my Firefox browser!  Thinking it was some 
peculiarity of Firefox I tried IE7 and do you now what... it crashed 
that too :-)

Regards,
David Legg

Robin Wyles wrote:
&gt; Hi everyone,
&gt;
&gt; It's been a very long time since I've posted here (apologies, and 
&gt; hopefully more on that soon!)...
&gt;
&gt; We're looking for a Cocoon developer to help me out with the support 
&gt; and further development of our Cocoon based applications.
&gt;
&gt; We need strong skills in Cocoon, Spring, Linux, and preferably someone 
&gt; based in or near to London, UK. We're looking for someone which we can 
&gt; work with on a regular basis, and possibly even as a full-time position.
&gt;
&gt; If you're at all interested drop me an email with a little info about 
&gt; yourself: robin@jacaranda.co.uk
&gt;
&gt; Thanks!
&gt;
&gt; Robin
&gt;
&gt;
&gt;
&gt;
&gt;
&gt;
&gt;
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Cocoon documentation</title>
<author><name>Matt Whipple &lt;matt@mattwhipple.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200911.mbox/%3c4B13C384.5010601@mattwhipple.com%3e"/>
<id>urn:uuid:%3c4B13C384-5010601@mattwhipple-com%3e</id>
<updated>2009-11-30T13:07:16Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I'm a recent transplant to Cocoon (and Java), in particular because
Cocoon 3 appears as though it is/will be closely in line with my own
perspective on web application development.  I'm interested in
contributing to the development of the framework itself, but likely
won't be able to produce anything remotely useful  for a couple months
as I familiarize myself with all of the related technologies. 

I've just read some of the attacks on the poor documentation of the
project and the resulting difficult entry for those unfamiliar.  This
is, of course, easily confirmed by the combination of woefully out of
date references and dead links on the Web site (i.e. to the Daisy
site).  As I am (obviously) hopeful to see Cocoon succeed, I certainly
don't want it to become mired in isolation like so many good projects. 

As such I'd like to try to contribute some documentation.  Is there any
idea among the community as to where documentation should end up, or
should I just create a new site?  Also, I'd lean towards focusing on
Cocoon 3, as having documentation in place for a new release would
likely have larger impact than attaching possibly overdue docs to an
older, in the process of being superseded one.  This would be premature
if there's no foreseeable beta....


</pre>
</div>
</content>
</entry>
<entry>
<title>[Job] Cocoon developer required (London)</title>
<author><name>Robin Wyles &lt;robin@jacaranda.co.uk&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200911.mbox/%3c48B470F1-97B7-4148-95AA-56FEC9F16483@jacaranda.co.uk%3e"/>
<id>urn:uuid:%3c48B470F1-97B7-4148-95AA-56FEC9F16483@jacaranda-co-uk%3e</id>
<updated>2009-11-30T13:05:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi everyone,

It's been a very long time since I've posted here (apologies, and  
hopefully more on that soon!)...

We're looking for a Cocoon developer to help me out with the support  
and further development of our Cocoon based applications.

We need strong skills in Cocoon, Spring, Linux, and preferably  
someone based in or near to London, UK. We're looking for someone  
which we can work with on a regular basis, and possibly even as a  
full-time position.

If you're at all interested drop me an email with a little info about  
yourself: robin@jacaranda.co.uk

Thanks!

Robin









</pre>
</div>
</content>
</entry>
<entry>
<title>Re: REST / Can't find URLResponseBuilder</title>
<author><name>Johannes Lichtenberger &lt;Johannes.Lichtenberger@uni-konstanz.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200911.mbox/%3c1259497147.2884.102.camel@luna%3e"/>
<id>urn:uuid:%3c1259497147-2884-102-camel@luna%3e</id>
<updated>2009-11-29T12:19:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Sun, 2009-11-29 at 07:32 +0100, Jos Snellings wrote:
&gt; In the samples, a typical use of StringTemplate is shown: a page is to
&gt; be interpreted by the StringTemplate engine, and a number of properties
&gt; are passed via the hashtable.
&gt; The idea is that you would open a view on the object.
&gt; So, 
&gt; - the query points to a resource
&gt; - the controller decodes what the resource is and what you want (view
&gt; it, update it?)
&gt; - the way to view it could be: pass my resource to a StringTemplate
&gt; invocation:  new Page('stringtemplateinvocation',resource);
&gt;  
&gt; However, I have not tried to elaborate this so far. Shall I post it when
&gt; i have a useable example?

Yes it would be great. My concern is that I don't want to display a
template page. I want to process the request (the parameters Google
Earth sends when zooming in) and within my Generator query a native XML
database system and built the algorithmic logic inside the generator
(what data out of the shreddered xml file is needed and has to be
transformed with an XSLT stylesheet). So I basically know how RESTful
webservices work, but I don't know how to use cocoon3 in this case (I
assume new Page(...) isn't the right thing to return when I just want to
pass the request params to my generator. So I don't want to use
StringTemplate in this case (but it's nontheless a great thing). So the
query points to a controller, which decides that it's a GET request
(view) and passes the parameters on to my generator (which I still have
to write). 

Would be great if you or someone else could help me out (it's a project
in a course of our university ;-) and I thought cocoon is great for this
concern (get RESTful parameters, hand it on to a generator which selects
the needed data out of a shreddered xml file according to the
parameters, then transform the xml fragments with a XSLT stylesheet and
serialize the result, so that Google Earth can use the KML fragments
generated).

Thank you,
Johannes



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: REST / Can't find URLResponseBuilder</title>
<author><name>Jos Snellings &lt;Jos.Snellings@pandora.be&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200911.mbox/%3c1259476360.2654.5.camel@joske-laptop%3e"/>
<id>urn:uuid:%3c1259476360-2654-5-camel@joske-laptop%3e</id>
<updated>2009-11-29T06:32:40Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
In the samples, a typical use of StringTemplate is shown: a page is to
be interpreted by the StringTemplate engine, and a number of properties
are passed via the hashtable.
The idea is that you would open a view on the object.
So, 
- the query points to a resource
- the controller decodes what the resource is and what you want (view
it, update it?)
- the way to view it could be: pass my resource to a StringTemplate
invocation:  new Page('stringtemplateinvocation',resource);
 
However, I have not tried to elaborate this so far. Shall I post it when
i have a useable example?

Cheers,
Jos



On Sat, 2009-11-28 at 14:14 +0100, Johannes Lichtenberger wrote:
&gt; 
&gt; &gt; It is now a bit hard to keep everything consistent, as there are
&gt; still
&gt; &gt; changes made in the interfaces.
&gt; 
&gt; Hm, it can't find alpha-2 (it really seems to be alpha-2 specific --
&gt; http://cocoon.apache.org/3.0/changes-report.html and it isn't
&gt; released)
&gt; and I'm not sure how to integrate the trunk version with maven. I've
&gt; used the mvn commands described uhm somewhere (for mysite, myparent,
&gt; mysample und mywebapp)... 
&gt; 
&gt; Downloading:
&gt; http://repo1.maven.org/maven2/org/apache/cocoon/rest/cocoon-rest/3.0.0-alpha-2/cocoon-rest-3.0.0-alpha-2.jar
&gt; [INFO] Unable to find resource 



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: REST / Can't find URLResponseBuilder</title>
<author><name>Johannes Lichtenberger &lt;Johannes.Lichtenberger@uni-konstanz.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200911.mbox/%3c1259414045.2884.90.camel@luna%3e"/>
<id>urn:uuid:%3c1259414045-2884-90-camel@luna%3e</id>
<updated>2009-11-28T13:14:05Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Sat, 2009-11-28 at 07:43 +0100, Jos Snellings wrote:
&gt; org.apache.cocoon.rest.jaxrs.response.URLResponseBuilder.java
&gt; What version do you have in your project pom? It should be alpha 2 I
&gt; guess.
&gt; Or build it from the svn trunk, 
&gt; svn co http://svn.apache.org/repos/asf/cocoon/cocoon3
&gt; 
&gt; It is now a bit hard to keep everything consistent, as there are still
&gt; changes made in the interfaces.

Hm, it can't find alpha-2 (it really seems to be alpha-2 specific --
http://cocoon.apache.org/3.0/changes-report.html and it isn't released)
and I'm not sure how to integrate the trunk version with maven. I've
used the mvn commands described uhm somewhere (for mysite, myparent,
mysample und mywebapp)... 

Downloading:
http://repo1.maven.org/maven2/org/apache/cocoon/rest/cocoon-rest/3.0.0-alpha-2/cocoon-rest-3.0.0-alpha-2.jar
[INFO] Unable to find resource
'org.apache.cocoon.rest:cocoon-rest:jar:3.0.0-alpha-2' in repository
central (http://repo1.maven.org/maven2)

Now I've changed it back to:

	return new Page("servlet:/controller/screen", data);

and I have a generator, let's say:

public class GoogleEarthGenerator extends AbstractGenerator {

  public void execute() {
    System.out.println();
  }
  
}

How do I print out the reqparam from the data HashMap?

I'm really new to Cocoon, but I need REST ;-)

regards,
Johannes




</pre>
</div>
</content>
</entry>
<entry>
<title>Re: REST / Can't find URLResponseBuilder</title>
<author><name>Jos Snellings &lt;Jos.Snellings@pandora.be&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200911.mbox/%3c1259390633.2656.5.camel@joske-laptop%3e"/>
<id>urn:uuid:%3c1259390633-2656-5-camel@joske-laptop%3e</id>
<updated>2009-11-28T06:43:53Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
org.apache.cocoon.rest.jaxrs.response.URLResponseBuilder.java
What version do you have in your project pom? It should be alpha 2 I
guess.
Or build it from the svn trunk, 
svn co http://svn.apache.org/repos/asf/cocoon/cocoon3

It is now a bit hard to keep everything consistent, as there are still
changes made in the interfaces.

Jos


On Sat, 2009-11-28 at 05:02 +0100, Johannes Lichtenberger wrote:
&gt; URLResponseBuilder 



</pre>
</div>
</content>
</entry>
<entry>
<title>REST / Can't find URLResponseBuilder</title>
<author><name>Johannes Lichtenberger &lt;Johannes.Lichtenberger@uni-konstanz.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200911.mbox/%3c1259380920.2884.9.camel@luna%3e"/>
<id>urn:uuid:%3c1259380920-2884-9-camel@luna%3e</id>
<updated>2009-11-28T04:02:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello,

the class URLResponseBuilder can't be resolved :(

Now I have the following controller:

public class GoogleEarthController implements Get {
  @SitemapParameter
  private String mGearth;
  
  @RequestParameter
  private String reqparam;
  
  @Override
  public RestResponse doGet() throws Exception {
    final Map&lt;String, Object&gt; data = new HashMap&lt;String, Object&gt;();

    data.put("mGearth", mGearth);
    data.put("reqparam", reqparam);
    
    return new
URLResponseBuilder.newInstance("servlet:/controller/screen",
data).build();
  }

}

And I'm still not sure how to get acess to my HashMap _within_ a
pipeline:

    &lt;map:pipeline&gt;
      &lt;map:match pattern="gearth/{mGarth}"&gt;
        &lt;controller:call controller="rest-controller"
select="com.treetank.cocoon.controller.GoogleEarthController"&gt;
          &lt;map:parameter name="mGearth" value="{map:mGearth}"/&gt;
        &lt;/controller:call&gt;
      &lt;/map:match&gt;
      &lt;map:match pattern="controller/screen"&gt;
        &lt;map:generate type="gearth" /&gt;
        &lt;map:serialize type="xml" /&gt;
      &lt;/map:match&gt;
    &lt;/map:pipeline&gt;

Precisely within the gearth generator (which should serve dynamically
KML content (well out of a native xml database which has to be
transformed) to GoogleEarth depending on the parameters Google sent
(should be fairly trivial once I figured out how to get acess to my
HashMap and if returnin a URLResponseBuilder object is the right thing.

regards,
Johannes



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Cocoon3 &lt;-&gt; Wicket integration</title>
<author><name>=?ISO-8859-1?Q?Reinhard_P=F6tz?= &lt;reinhard@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200911.mbox/%3c4B10120B.4080108@apache.org%3e"/>
<id>urn:uuid:%3c4B10120B-4080108@apache-org%3e</id>
<updated>2009-11-27T17:53:15Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Gabriel Gruber wrote:
&gt; 
&gt; Hi Reinhard,
&gt; 
&gt; many thanks for your effort... this is definitly the way to go and a
&gt; step towards giving more value to cocoon again...
&gt; as you know we are searching for alternatives in our product-development
&gt; which is currently cocoon / cforms based. your wicket reader seems very
&gt; interesting for us...   as soon as I have some time I will try it out!
&gt; 
&gt; BTW: does the reader also work for cocoon 2.2?

No but it shouldn't be difficult to migrate it to work with 2.2 interfaces.

-- 
Reinhard Pötz                           Managing Director, {Indoqa} GmbH
                         http://www.indoqa.com/en/people/reinhard.poetz/

Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member                  reinhard@apache.org
________________________________________________________________________


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Cocoon3 &lt;-&gt; Wicket integration</title>
<author><name>Gabriel Gruber &lt;Gabriel.Gruber@workflow.at&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/cocoon-dev/200911.mbox/%3cOF6DA0327E.5AD431F9-ONC125767B.005E4B69-C125767B.005E9104@workflow.at%3e"/>
<id>urn:uuid:%3cOF6DA0327E-5AD431F9-ONC125767B-005E4B69-C125767B-005E9104@workflow-at%3e</id>
<updated>2009-11-27T17:12:54Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Reinhard,

many thanks for your effort... this is definitly the way to go and a step 
towards giving more value to cocoon again...
as you know we are searching for alternatives in our product-development 
which is currently cocoon / cforms based. your wicket reader seems very 
interesting for us...   as soon as I have some time I will try it out!

BTW: does the reader also work for cocoon 2.2?

cheers,
Gabriel




Reinhard Pötz &lt;reinhard@apache.org&gt; 
26.11.2009 09:13
Please respond to
dev@cocoon.apache.org


To
dev@cocoon.apache.org
cc

Subject
Cocoon3 &lt;-&gt; Wicket integration







Since I was asked several times off-list and there have also been some
mails on the users list asking about the best way to integrate Cocoon
with Wicket, I invested some time into a first implementation. Actually
there are five ideas that I have:

 a) An IRequestTargetUrlCodingStrategy wrapping a Cocoon sitemap
 b) An IRequestTargetUrlCodingStrategy wrapping a Cocoon pipeline
 c) A page component wrapping a Cocoon pipeline
 d) A Wicket reader to be used in Cocoon sitemaps
 e) Wicket generator/transformer, again to be used in sitemaps

a) and b) are useful to add a couple of pipelines to your Wicket
application. c) helps if you want to use a Cocoon pipeline to provide
the content of some parts of a page.

d) and e) help to run a Wicket application in parallel with Cocoon while
Cocoon remains the "leading" framework.

                                   - o -

I added implementations and samples for a, c and d to the SVN. The
generic parts are in the cocoon-wicket module, the Cocoon/Wicket samples
in cocoon-samples and the Wicket/Cocoon samples in
cocoon-samples-wicket-webapp.

I also wrote some initial documentation that you can find at
http://people.apache.org/~reinhard/c3-ref/html/wicket-integration.html

                                   - o -

Currently it's rather a proof-of-concept (especially the reader) than
something that you should use in production, but hopefully a first step
and a basis for further discussions if this is of help to others.

Let me know if this is of interest to you and what you think about the
different approaches.

And finally many thanks to Steven who helped me to hunt down some
bugs in the reader component.

-- 
Reinhard Pötz                           Managing Director, {Indoqa} GmbH
                         http://www.indoqa.com/en/people/reinhard.poetz/

Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member                  reinhard@apache.org
________________________________________________________________________




</pre>
</div>
</content>
</entry>
</feed>
