0
votes

I am using wicket in my web application. Assuming I have pages a b c where I move from A to B using page parameters change somthing in page B model using ajax and B to C (without using page params).

problem : The scenario is moving A->B->C while changing page b model and pressing the back button B<-C beacuse when page B instance (B1)was generated I used get parameters , therefore a new page B instance was generated(B2) I would like to return every time to page B

is there a wicket style solution to this problem ?

thank u for getting this far in my post :).

1

1 Answers

0
votes

As far as I get your post, you would like to return to page B with the model that you got at B1?

The issue you should solve is how the model is persisted in Page B. If you create a new model from the PageParameters (I guess that is what you have as your Page gets 'recreated') you will loose the ajax changes. I think you should persist your model changes somewhere and reload them (for example a LoadableDetachableModel)