there is a huge mismatch.
ok the very simple once could be, But every ajax request that does this:
AjaxRequestTarget.addComponent(othercomponentthentherequestone)
can't really be used stateless.
Because that means that the page that is now in memory on the server has a
specific state
and that specific state (partial change) is now pushed to the client.
The next time a request comes in for that component or it childs that you
just rerendered
and the page is not in memory how would you find that component? Because it
can be that
the default construction of that page displays another component completely
that you just
replaced on the server side and then rendered on the client.
For example think about the ajax tabpanel. That will never work correctly
without pushing somestate
somewhere on the server.
default when you make the Page with the ajax tabpanel you will have tab 1
selected
then you press another tab and tab3 is selected and then rendered
if you then press something on tab3 and the complete page must be
constructed then tab1 is again selected
so it can't find anything you request for.
Also if you use real ajax and you really have 1 page constantly then the
overhead on the server is very light.
johan
On 7/13/07, Andrew Klochkov <[EMAIL PROTECTED]> wrote:
Johan Compagner wrote:
> 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.
Hmm I don't see the mismatch. Take any example from the wicket ajax
examples - all of them could be useful on stateless pages. In our case
we need auto-complete fields and ajax validators in stateless forms,
reloading some small part of a big portal page etc etc.
--
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
Wicket-user@lists.sourceforge.net
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user