You need to mount PageB with mountPage("/pageb", PageB.class) and use
setResponsePage(PageB.class, parameters)

'parameters' should bring a key/value that will be used to create a
proper objectX, e.g. a key which will be used to load an entity from
DB.
And there is no need to use AjaxLink if you always redirect to another
page, use a normal Link/BookmarkablePageLink instead.

On Sat, Mar 31, 2012 at 7:53 PM, sudeivas <[email protected]> wrote:
> The problem in our application is there is no fixed path except for the home
> page. From the home page the user will navigate to a different page after
> clicking on a ajax link (we use setResponsePage(new PageB(Object x)).
>
> In Page B we have lot of widgets getting populated dynamically based on
> values in Object x. In most of our cases session expires when the user is in
> Page B. Currently when we are in Page B, wicket shows something like this in
> the url,
>
> http://xxxxx/xxx/wicket/page?7
>
> How can I mount these kinds of pages where there is no fixed path to mount.
>
> Thanks,
> Suresh
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Version-Pages-by-default-tp4520432p4522016.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to