You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jspwiki.apache.org by Daniel Manzke <da...@googlemail.com> on 2009/05/07 15:26:53 UTC
Re: WELCOME to jspwiki-user@incubator.apache.org
Hi there,
I searched the mailing lists, but didn't find any solution for my problem.
I'm thinking about integrating the jspwiki-engine into an existing web
application. Therefore I started developing my own PageProvider.
I did this before for an ECM and it was pretty easy.
My Problem:
Is there a way to access the HttpSession or HttpRequest of the current
request in the PageProvider?!
Thanks for helping,
Daniel
Re: WELCOME to jspwiki-user@incubator.apache.org
Posted by Daniel Manzke <da...@googlemail.com>.
Yeah, that did it.
I have to say, that developing a Page- and an AttachmentProvider is really
easy. It's my second one. This one stores the informations in a
jcr-compliant ECM.
There is just one thing I would like to mention. (maybe a feature request?!
:)) It would be nice, if we could declare the maximum count of versions
which should be received by getVersionHistory. If you have a community which
is very active, a lot of versions will be created and often only the last
5-10 version are compared between each other.
Best Regards,
Daniel
2009/5/8 Janne Jalkanen <ja...@ecyrd.com>
>
> Oh yeah, sorry, got mixed up with filters.
>
> I don't think there's a way to get this information easily. You provide
> your own ThreadLocal store in a singleton object which you set in a custom
> ServletFilter and you can access then from the Provider.
>
> The providers are designed to get and store information, and that is all.
>
> /Janne
>
>
> On 8 May 2009, at 10:46, Daniel Manzke wrote:
>
> Hi,
>> the problem is that the provider doesn't have a reference to the
>> WikiContext. The only things the provider get is the WikiEngine and
>> Properties for initializing.
>>
>> Any other ideas?
>>
>> Thanks ;)
>>
>> 2009/5/8 Janne Jalkanen <ja...@ecyrd.com>
>>
>>
>>> WikiContext.getHttpRequest()? Note that this may be null if the call to
>>> the renderer came from an embedded source which didn't have a HTTP
>>> request
>>> to start with.
>>>
>>> /Janne
>>>
>>>
>>> On 7 May 2009, at 16:26, Daniel Manzke wrote:
>>>
>>> Hi there,
>>>
>>>>
>>>> I searched the mailing lists, but didn't find any solution for my
>>>> problem.
>>>> I'm thinking about integrating the jspwiki-engine into an existing web
>>>> application. Therefore I started developing my own PageProvider.
>>>> I did this before for an ECM and it was pretty easy.
>>>>
>>>> My Problem:
>>>> Is there a way to access the HttpSession or HttpRequest of the current
>>>> request in the PageProvider?!
>>>>
>>>>
>>>>
>>>>
>>>> Thanks for helping,
>>>> Daniel
>>>>
>>>>
>>>
>>>
>>
>> --
>> Mit freundlichen Grüßen
>>
>> Daniel Manzke
>>
>
>
--
Mit freundlichen Grüßen
Daniel Manzke
Re: WELCOME to jspwiki-user@incubator.apache.org
Posted by Janne Jalkanen <ja...@ecyrd.com>.
Oh yeah, sorry, got mixed up with filters.
I don't think there's a way to get this information easily. You
provide your own ThreadLocal store in a singleton object which you set
in a custom ServletFilter and you can access then from the Provider.
The providers are designed to get and store information, and that is
all.
/Janne
On 8 May 2009, at 10:46, Daniel Manzke wrote:
> Hi,
> the problem is that the provider doesn't have a reference to the
> WikiContext. The only things the provider get is the WikiEngine and
> Properties for initializing.
>
> Any other ideas?
>
> Thanks ;)
>
> 2009/5/8 Janne Jalkanen <ja...@ecyrd.com>
>
>>
>> WikiContext.getHttpRequest()? Note that this may be null if the
>> call to
>> the renderer came from an embedded source which didn't have a HTTP
>> request
>> to start with.
>>
>> /Janne
>>
>>
>> On 7 May 2009, at 16:26, Daniel Manzke wrote:
>>
>> Hi there,
>>>
>>> I searched the mailing lists, but didn't find any solution for my
>>> problem.
>>> I'm thinking about integrating the jspwiki-engine into an existing
>>> web
>>> application. Therefore I started developing my own PageProvider.
>>> I did this before for an ECM and it was pretty easy.
>>>
>>> My Problem:
>>> Is there a way to access the HttpSession or HttpRequest of the
>>> current
>>> request in the PageProvider?!
>>>
>>>
>>>
>>>
>>> Thanks for helping,
>>> Daniel
>>>
>>
>>
>
>
> --
> Mit freundlichen Grüßen
>
> Daniel Manzke
Re: WELCOME to jspwiki-user@incubator.apache.org
Posted by Daniel Manzke <da...@googlemail.com>.
Hi,
the problem is that the provider doesn't have a reference to the
WikiContext. The only things the provider get is the WikiEngine and
Properties for initializing.
Any other ideas?
Thanks ;)
2009/5/8 Janne Jalkanen <ja...@ecyrd.com>
>
> WikiContext.getHttpRequest()? Note that this may be null if the call to
> the renderer came from an embedded source which didn't have a HTTP request
> to start with.
>
> /Janne
>
>
> On 7 May 2009, at 16:26, Daniel Manzke wrote:
>
> Hi there,
>>
>> I searched the mailing lists, but didn't find any solution for my problem.
>> I'm thinking about integrating the jspwiki-engine into an existing web
>> application. Therefore I started developing my own PageProvider.
>> I did this before for an ECM and it was pretty easy.
>>
>> My Problem:
>> Is there a way to access the HttpSession or HttpRequest of the current
>> request in the PageProvider?!
>>
>>
>>
>>
>> Thanks for helping,
>> Daniel
>>
>
>
--
Mit freundlichen Grüßen
Daniel Manzke
Re: WELCOME to jspwiki-user@incubator.apache.org
Posted by Janne Jalkanen <ja...@ecyrd.com>.
WikiContext.getHttpRequest()? Note that this may be null if the call
to the renderer came from an embedded source which didn't have a HTTP
request to start with.
/Janne
On 7 May 2009, at 16:26, Daniel Manzke wrote:
> Hi there,
>
> I searched the mailing lists, but didn't find any solution for my
> problem.
> I'm thinking about integrating the jspwiki-engine into an existing web
> application. Therefore I started developing my own PageProvider.
> I did this before for an ECM and it was pretty easy.
>
> My Problem:
> Is there a way to access the HttpSession or HttpRequest of the current
> request in the PageProvider?!
>
>
>
>
> Thanks for helping,
> Daniel