> I still have several questions that haven't been answered:
> - What is the meaning of redirect (in the context of RequestCycle)?


See eriks reply, you redirect through the browser to that page so that the
url in the bar is really pointing to that page.


>
> - Why does wicket always do redirect for ajax requests?


Because how else would you render the resulting page?
Do you really want to replace the complete dom with a new page without the
browser doing a normal get?
Then the url thats in the browser wouldnt point at all anymore to the right
page (if a user would do refresh in a browser)


> - Why does BookmarkablePageRequestTarget.getPage(RequestCycle) only call
> newPage if isRedirect is false? And why is it final?


see eriks reply, again the redirect is done through the browser as a second
request
else the url in the browser doesnt point to the right page.


>
> - When I respond to the ajax request, adding a stateful component
> (therefore
> making the page stateful), why is the page not stored in the session
> automatically?


it should all statefull pages are stored in the session.
if you have a case where that doesnt happen please make a jira issue.


>
> - Are there any problems with the hacks I used? Do they break anything?


dont know exactly.

if you click an ajax link and you want to show a different page then yes a
redirect to that page has to happen
else we have to replace the complete document with the new page, dont know
if we really support that and if that will go fine in all the browsers.


>
> - Is there any better way to do what I am trying to do?


yes why have ajax links that could be just normal links if you want to have
a stateless page.


johan

Reply via email to