Hi,
feedback messages are tied to components they are reported for (the link
in your case).
Since this component isn't located on your response page, the message
will not be rendered.
Use Session#info() instead.
Regards
Sven
uud ashr wrote:
Hi all,
Why does wicket panel don't work if I do this:
class MyPage extends WebPage {
public MyPage() {
add(new Link<Void>("myLink") {
public void onClick() {
* info("You just click me");*
*setResponsePage(MyAnotherPage.class); // feedback panel
won't work*
}
});
}
}
class MyAnotherPage extends WebPage {
public MyAnotherPage() {
add(new FeedbackPanel("feedback"));
}
}
Won't work using:
setResponsePage(MyAnotherPage.class);
But fine when use constructor:
setResponsePage(new MyAnotherPage());
Is this a bug or not a bug?
Regards,
uudashr
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]