Hi Vincent,
On 06/14/2010 07:29 PM, Vincent Massol wrote:
On Jun 14, 2010, at 6:25 PM, Vincent Massol wrote:
>
> On Jun 14, 2010, at 6:14 PM, Marius Dumitru Florea wrote:
>
>> Hi devs,
>>
>> You can find here
>>
http://dev.xwiki.org/xwiki/bin/view/Drafts/PortletIntegration a draft
>> regarding the portlet integration.
>>
>> We need to decide what's the best approach. For short term I think the
>> loosely-coupled integration solution is the best as it requires less
>> changes to the core. The current implementation is in
>>
http://svn.xwiki.org/svnroot/xwiki/contrib/sandbox/xwiki-portlet/ and I
>> propose to move it to platform/xwiki-portlet before 2.4M2.
>>
>> For long term, when we'll have the new model in place, we might consider
>> the tightly-coupled integration solution as it seems to be more clean
>> and it follows the component way. It won't be easy to implement though.
>>
>> WDYT?
>
> I'd like to see how it integrates with
the portlet module in containers. I don't think it's a good idea to have 2 places
for portlets at the same time.
> I'd also like to see how it integrates in container/ module in general.
The loosely-coupled integration solution works with _any_ servlet
application that:
* is hosted on the same server as the portlet
* runs in the same application context as the portlet (e.g. /xwiki)
* and uses a single entry point servlet (e.g. /bin).
The code in sandbox/xwiki-portlet is generic and so it doesn't know of
any container module XWiki (i.e. the servlet application) may be using.
It's a bridge between the portlet world and the servlet world. It
exposes a servlet application as a portlet.