do you have examples what kind of ajax request you make?
Because i still think that partial page updates with ajax is just a complete
mismatch with stateless pages.

But i guess 2 things need to happen

1> YourAjaxBehavior.getStatelessHint(Component component) should return true

2> Somehow we must then create a hybrid url in
RequestCycle.urlFor(final Component component, final IBehavior behaviour,
final RequestListenerInterface listener)

But as i said i don't see currently any pro's/examples for having that

johan


On 7/13/07, Andrew Klochkov <[EMAIL PROTECTED]> wrote:

I wonder why there's no questions about stateless ajax here, so here's
my one :-)

Recently we've done some performance tests and obviously we have to make
most of our pages stateless to support large number of active user
sessions. That would not be a big problem if we didn't use a lot of
ajax. So we created StatelessAjaxBehavior which can process ajax
requests when using stateless pages, but the code is ugly:

1. First we look for the page instance in the session. If it's found -
process ajax as usual.
2. Create page instance and render it using MockHttpServletResponse
3. The look for a component listener using
AbstractRequestCycleProcessor.resolveListenerInterfaceTarget
4. Call the listener

So could the support for stateless ajax be included in the wicket core?

--
Andrew Klochkov


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to