Re: REST / Can't find URLResponseBuilder
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: > URLResponseBuilder
REST / Can't find URLResponseBuilder
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 data = new HashMap(); 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: 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
Re: Cocoon3 <-> Wicket integration
Gabriel Gruber wrote: > > 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? 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 reinh...@apache.org
Re: Cocoon3 <-> Wicket integration
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 26.11.2009 09:13 Please respond to dev@cocoon.apache.org To dev@cocoon.apache.org cc Subject Cocoon3 <-> 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 reinh...@apache.org
StringTemplateGenerator
Dear, Just a small question, testing: When I get: java.lang.NullPointerException at org.apache.cocoon.stringtemplate.StringTemplateGenerator.constructCacheKey(StringTemplateGenerator.java:75) I notice that StringTemplateGenerator has two constructors: one with a 'source' argument, and one without. The one without source argument is called. Does this make sense? Am I making a mistake in the sitemap? Here's the code: Thanks, Jos