You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Reinhard Poetz <re...@apache.org> on 2007/08/23 15:50:01 UTC

Wicket integration

Jean-Baptiste Quenot wrote:
> * Reinhard Poetz:
> 
>> Gianugo Rabellino wrote:
>>
>>> During the  traditional Hackathon,  developers and  users will
>>> team up to discuss the Cocoon  internals and work side by side
>>> on current Cocoon issues.
>> I've created a wiki page to collect relevant information (ideas,
>> who will come, etc.) about the Hackaton.
> 
> I read this:
> 
> [ReinhardPoetz] I want  to work on the  servlet-service-fw so that
> the Wicket servlet is servered with the environment it needs.
> 
> Can you expand a bit (unless  it has already been discussed), that
> rings a bell to me and it looks interesting.

hehe, I was already hoping for some reaction from you ;-)

The Cocoon servlet-service-framework allows to mount *any* servlet 
(http://svn.apache.org/repos/asf/cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-sample/src/main/resources/META-INF/cocoon/spring/cocoon-servlet-service-demo1-servletService.xml). 
One of them is the Sitemap servlet which, as you might expect, exposes sitemaps. 
Basically it shouldn't be a problem to load the Wicket servlet this way either 
but the servlet-service-fw doesn't forward all the necessary environment 
information.

I'm not sure what the real benefit of this integration is, but I want to give it 
a try and find out myself. One thing that I can think of is the usage of the 
servlet protocol to access Cocoon pipelines from within Wicket and vice versa. 
This should make it possible to use Wicket instead of cForms in Cocoon applications.

-- 
Reinhard Pötz           Independent Consultant, Trainer & (IT)-Coach 

{Software Engineering, Open Source, Web Applications, Apache Cocoon}

                                        web(log): http://www.poetz.cc
--------------------------------------------------------------------

Re: Wicket integration

Posted by Grzegorz Kossakowski <gr...@tuffmail.com>.
Leszek Gawron pisze:
>
> count me in. I deep into Wicket currently (I always was more of web 
> *application* developer than web *site* developer.
Leszek, have you considered attending GT this year?

It would be great to see another Polish fellow in Rome.

-- 
Grzegorz Kossakowski

Re: Wicket integration

Posted by Leszek Gawron <lg...@mobilebox.pl>.
Reinhard Poetz wrote:
> Jeroen Reijn wrote:
>> This seems like a very interesting topic. I'm currently looking into 
>> Wicket
>> to get to know the framework a bit better. Reinhard if you are going 
>> to work
>> on this at the GT I would like to team up with you and see how this 
>> can be
>> made possible. :-)
> 
> Sure, you're welcome! I hope that Grek will join us as well.

count me in. I deep into Wicket currently (I always was more of web 
*application* developer than web *site* developer.

Still in wicket I lack OOTB caching and pipeline handling (i.e. for 
reporting).

It probably would be nice to create a wicket component that is able to 
pass it's model to cocoon servlet and get the xml content in return.

-- 
Leszek Gawron                         http://www.mobilebox.pl/krs.html
CTO at MobileBox Ltd.


Re: GT2007

Posted by Ralph Goers <Ra...@dslextreme.com>.
Abroad? I thought you lived in Europe somewhere?  I flew in from 
California a couple of years ago (I can't believe it has been that long 
already). It was my first time to Europe and I had a really good time.  
Unfortunately I won't be able to go again this year, but I will see any 
of you who can make it at ApacheCon US in November.

Ralph

Grzegorz Kossakowski wrote:
> Grzegorz Kossakowski pisze:
>> Reinhard, thanks again for invitation!
>>
>> I'm just calculating costs of such journey, but I guess thanks to my 
>> participation to GSoC it's going to be affordable for me.
>>
>> I'll post definitive informations soon.
> Ok, I'm almost decided to see you at GT! :-)
>
> However, I need to sort out some issues first with booking flights. I 
> have never been abroad and never have been to such event so please be 
> tolerant to my, most probably, dumb questions.
>
> What are exact timings of each day? I guess that I'll have to arrive 
> to Rome on 02.10.2007 and leave on 06.10.2007 because I have no 
> flights for Wednesday morning and Friday evening. Does it make sense?
> What are your plans? Anyone arriving on 02.10.2007 to the Ciampino 
> Airport?
>
> What about hotels? Can you recommend something?
>
> Gosh... I'm little scared. ;)
>

Re: GT2007 (was: Re: Wicket integration)

Posted by Andrew Savory <an...@luminas.co.uk>.
Hi Grzegorz,

On 23 Aug 2007, at 16:46, Grzegorz Kossakowski wrote:

> Grzegorz Kossakowski pisze:
>> Reinhard, thanks again for invitation!
>>
>> I'm just calculating costs of such journey, but I guess thanks to  
>> my participation to GSoC it's going to be affordable for me.
>>
>> I'll post definitive informations soon.
> Ok, I'm almost decided to see you at GT! :-)
>
> However, I need to sort out some issues first with booking flights.  
> I have never been abroad and never have been to such event so  
> please be tolerant to my, most probably, dumb questions.

There's no such thing as dumb questions - if you're wondering, others  
probably are too!

> What are exact timings of each day? I guess that I'll have to  
> arrive to Rome on 02.10.2007 and leave on 06.10.2007 because I have  
> no flights for Wednesday morning and Friday evening. Does it make  
> sense?

With the hackathon on 3rd and 4th, people often arrive during the  
first day (and some the day before depending on travel budget). But  
if there are no suitable flights morning/evening it would certainly  
be good to arrive the day before. I'm sure many of us will be around  
and available for beers :-)

> What are your plans? Anyone arriving on 02.10.2007 to the Ciampino  
> Airport?

I'm not sure on my flight plans, but I'd bet there will be others  
arriving then.

> What about hotels? Can you recommend something?

I hope Gianugo or some of our Rome Cocoonistas will post some  
suggestions ... Simone? Gabriele? Maurizio? PING! :-)

> Gosh... I'm little scared. ;)

You're going to love it - and Rome is a fantastic (multo bene) city  
to visit!


Thanks,

Andrew.
--
Sourcesense: Making sense of Open Source
Tel: +44 (0)870 741 6658  Fax: +44 (0)700 598 1135
Web: http://www.sourcesense.com/



GT2007 (was: Re: Wicket integration)

Posted by Grzegorz Kossakowski <gr...@tuffmail.com>.
Grzegorz Kossakowski pisze:
> Reinhard, thanks again for invitation!
>
> I'm just calculating costs of such journey, but I guess thanks to my 
> participation to GSoC it's going to be affordable for me.
>
> I'll post definitive informations soon.
Ok, I'm almost decided to see you at GT! :-)

However, I need to sort out some issues first with booking flights. I 
have never been abroad and never have been to such event so please be 
tolerant to my, most probably, dumb questions.

What are exact timings of each day? I guess that I'll have to arrive to 
Rome on 02.10.2007 and leave on 06.10.2007 because I have no flights for 
Wednesday morning and Friday evening. Does it make sense?
What are your plans? Anyone arriving on 02.10.2007 to the Ciampino Airport?

What about hotels? Can you recommend something?

Gosh... I'm little scared. ;)

-- 
Grzegorz Kossakowski

Re: Wicket integration

Posted by Grzegorz Kossakowski <gr...@tuffmail.com>.
Reinhard Poetz pisze:
> Jeroen Reijn wrote:
>> This seems like a very interesting topic. I'm currently looking into 
>> Wicket
>> to get to know the framework a bit better. Reinhard if you are going 
>> to work
>> on this at the GT I would like to team up with you and see how this 
>> can be
>> made possible. :-)
>
> Sure, you're welcome! I hope that Grek will join us as well.
Reinhard, thanks again for invitation!

I'm just calculating costs of such journey, but I guess thanks to my 
participation to GSoC it's going to be affordable for me.

I'll post definitive informations soon.

-- 
Grzegorz Kossakowski

RE: Wicket integration

Posted by Jeroen Reijn <j....@hippo.nl>.
Yes I hope so too! Would be fun to create wicket forms inside a cocoon application :-)

Ciao,

Jeroen


-----Original Message-----
From:	Reinhard Poetz [mailto:reinhard@apache.org]
Sent:	Thu 8/23/2007 16:38
To:	dev@cocoon.apache.org
Cc:	
Subject:	Re: Wicket integration

Jeroen Reijn wrote:
> This seems like a very interesting topic. I'm currently looking into Wicket
> to get to know the framework a bit better. Reinhard if you are going to work
> on this at the GT I would like to team up with you and see how this can be
> made possible. :-)

Sure, you're welcome! I hope that Grek will join us as well.

-- 
Reinhard Pötz           Independent Consultant, Trainer & (IT)-Coach
{Software Engineering, Open Source, Web Applications, Apache Cocoon}

                                        web(log): http://www.poetz.cc
--------------------------------------------------------------------




Re: Wicket integration

Posted by Reinhard Poetz <re...@apache.org>.
Jeroen Reijn wrote:
> This seems like a very interesting topic. I'm currently looking into Wicket
> to get to know the framework a bit better. Reinhard if you are going to work
> on this at the GT I would like to team up with you and see how this can be
> made possible. :-)

Sure, you're welcome! I hope that Grek will join us as well.

-- 
Reinhard Pötz           Independent Consultant, Trainer & (IT)-Coach
{Software Engineering, Open Source, Web Applications, Apache Cocoon}

                                        web(log): http://www.poetz.cc
--------------------------------------------------------------------

RE: Wicket integration

Posted by Jeroen Reijn <j....@hippo.nl>.
This seems like a very interesting topic. I'm currently looking into Wicket to get to know the framework a bit better. Reinhard if you are going to work on this at the GT I would like to team up with you and see how this can be made possible. :-)

Jeroen


-----Original Message-----
From:	Grzegorz Kossakowski [mailto:grek@tuffmail.com]
Sent:	Thu 8/23/2007 16:26
To:	dev@cocoon.apache.org
Cc:	
Subject:	Re: Wicket integration

Reinhard Poetz pisze:
>  hehe, I was already hoping for some reaction from you ;-)
>
>  The Cocoon servlet-service-framework allows to mount *any* servlet
> 
(http://svn.apache.org/repos/asf/cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-sample/src/main/resources/META-INF/cocoon/spring/cocoon-servlet-service-demo1-servletService.xml).
>  One of them is the Sitemap servlet which, as you might expect,
>  exposes sitemaps. Basically it shouldn't be a problem to load the
>  Wicket servlet this way either but the servlet-service-fw doesn't
>  forward all the necessary environment information.
>
>  I'm not sure what the real benefit of this integration is, but I want
>  to give it a try and find out myself. One thing that I can think of
>  is the usage of the servlet protocol to access Cocoon pipelines from
>  within Wicket and vice versa. This should make it possible to use
>  Wicket instead of cForms in Cocoon applications.

What I would like to add is that our users already tried[1] to do so. I 
don't know Wicket architecture so I'm not sure how hard it would be to 
call pipelines from there. When it comes to Cocoon side, I believe that 
modiciations to the current code would be minor. AFAIR, 
BlockCallHttpServletRequest class already has access to the original 
request so it can forward whatever is needed. It's matter of 
implementind methods that would delegate to the original request.
You may find COCOON-2066[2] interesting.

[1] http://article.gmane.org/gmane.text.xml.cocoon.user/61153
[2] https://issues.apache.org/jira/browse/COCOON-2066


-- 
Grzegorz Kossakowski




Re: Wicket integration

Posted by Jean-Baptiste Quenot <jb...@apache.org>.
* Grzegorz Kossakowski:

> What I would like to add is that our users already tried[1] to do so.
> 
> [1] http://article.gmane.org/gmane.text.xml.cocoon.user/61153

Thanks for mentioning this.  I remember now about this
"UnsupportedOperationException" issue on
ServletRequest.getLocale().

Indeed, that would be great to allow integration of Cocoon and
Wicket.  Integration is already possible through the use of
servlets in web.xml, but of course having the power of sitemaps to
« mount » a Wicket application would be a plus.

However, this would require a dedicated URL space like /wicket/**
because Wicket has its own strategies for controlling the URLs.

Cheers,
-- 
     Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

Re: Wicket integration

Posted by Grzegorz Kossakowski <gr...@tuffmail.com>.
Reinhard Poetz pisze:
>  hehe, I was already hoping for some reaction from you ;-)
>
>  The Cocoon servlet-service-framework allows to mount *any* servlet
> 
(http://svn.apache.org/repos/asf/cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-sample/src/main/resources/META-INF/cocoon/spring/cocoon-servlet-service-demo1-servletService.xml).
>  One of them is the Sitemap servlet which, as you might expect,
>  exposes sitemaps. Basically it shouldn't be a problem to load the
>  Wicket servlet this way either but the servlet-service-fw doesn't
>  forward all the necessary environment information.
>
>  I'm not sure what the real benefit of this integration is, but I want
>  to give it a try and find out myself. One thing that I can think of
>  is the usage of the servlet protocol to access Cocoon pipelines from
>  within Wicket and vice versa. This should make it possible to use
>  Wicket instead of cForms in Cocoon applications.

What I would like to add is that our users already tried[1] to do so. I 
don't know Wicket architecture so I'm not sure how hard it would be to 
call pipelines from there. When it comes to Cocoon side, I believe that 
modiciations to the current code would be minor. AFAIR, 
BlockCallHttpServletRequest class already has access to the original 
request so it can forward whatever is needed. It's matter of 
implementind methods that would delegate to the original request.
You may find COCOON-2066[2] interesting.

[1] http://article.gmane.org/gmane.text.xml.cocoon.user/61153
[2] https://issues.apache.org/jira/browse/COCOON-2066


-- 
Grzegorz Kossakowski