Hi Igore
I have some code to share now. This is what I did:
in the constructor for the Application, I mount pages with hybridUrlCoding
strategy as suggested by you.
mount(new HybridUrlCodingStrategy("home", MenuPage.class));
mount(new HybridUrlCodingStrategy("product",
ProductDetailPage.class));
Now I can see different versions of pages being created unlike before..
However, the Ajax links I'm adding at various places are still showing the
old format..
On my menu page (that gets updated through AJAX) over and over, I create
menu items like this :
public class MenuFragment extends Fragment {
Listable item ;
public MenuFragment(String id, final Listable item, final
MenuPage page) {
super(id, "fragment");
this.item = item;
setOutputMarkupId(true);
add(new Label("name", item.getName()));
add(new ExternalImage("img", item));
add(new AjaxEventBehavior("onclick") {
@Override
protected void onEvent(AjaxRequestTarget target) {
page.reload(item, target);
}
});
}
}
Is this the right approach? Or should I use some AjaxFallbackLink type of
object instead of adding a clikable behavior to a div? My Listable interface
basically has the primary key of the category, and Class name of the objects
to be loaded (this is what what I do in page.reload) for that category.
--
View this message in context:
http://www.nabble.com/Back-button-problem-tp16313414p16324501.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]