Thanks Andrea, I’ll check it out.

-Lon

On Sun, Aug 13, 2017 at 5:03 AM, Andrea Del Bene <an.delb...@gmail.com>
wrote:

> Hi,
>
> consider also to use resources (interface IResource) instead of pages when
> you have to build a REST API. WicketStuff project offers Wicket Rest
> Annotations module to write such kind of resources and since you are using
> Wicket 8 you can also consider to choose Lambda Rest Module:
> https://dzone.com/articles/rest-with-lamdas-and-wicket-8
>
>
> On 13/08/2017 07:16, Lon Varscsak wrote:
>
>> Never mind…I didn’t realize that Session objects could be temporary
>> (generated for 1 request only). :D
>>
>> On Sat, Aug 12, 2017 at 9:02 PM, Lon Varscsak <lon.varsc...@gmail.com>
>> wrote:
>>
>> Sorry, missed the version:  *8.0.0-M7*
>>>
>>> On Sat, Aug 12, 2017 at 9:01 PM, Lon Varscsak <lon.varsc...@gmail.com>
>>> wrote:
>>>
>>> So I was building a simple WebPage to return JSON data, but I’m surprised
>>>> that it’s creating a session.  The code is pretty simple, I’m just using
>>>> scheduleRequestHandlerAfterCurrent to return JSON content.  No real
>>>> components on the page and I set stateless hint to true in the
>>>> constructor.
>>>>
>>>> But when init() on the page is called, it ends up calling dirty(true)
>>>> which ends up creating a session to get the page manager.
>>>>
>>>> I’m sure I’m missing something obvious…any thoughts?
>>>>
>>>> -Lon
>>>>
>>>>
>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to