Thank You. This is perfect solution:
add(
new Link("linkWithConfirm") {
@Override
public void onClick() {
setResponsePage(Abc.class);
}
@Override
protected void onComponentTag(ComponentTag tag) {
// parent makes attributes
Such an obvious thing :) yes, it is working now with having panel added to
form and to ART. Thanks for your help.
-Mihir.
On Fri, Sep 4, 2015, 2:53 AM Tobias Soloschenko <
tobiassolosche...@googlemail.com> wrote:
> First ;-)
>
> kind regards
>
> Tobias
>
> > Am 04.09.2015 um 08:50 schrieb
Hi,
because the feedback panel is not a children of the form and you only add the
form to the AjaxRequestTarget it is not updated.
Try to add the feedback panel to the ART in the submit, too.
kind regards
Tobias
> Am 04.09.2015 um 07:45 schrieb Mihir Chhaya :
>
>
Your feedback component is not contained in any AJAX target. You add the
feedback component to the page which does not get refreshed after the form
submit.
AJAX is preferably used to avoid what you are expecting (page refresh).
On Fri, Sep 4, 2015 at 5:45 PM, Mihir Chhaya
First ;-)
kind regards
Tobias
> Am 04.09.2015 um 08:50 schrieb Bernard :
>
> Your feedback component is not contained in any AJAX target. You add the
> feedback component to the page which does not get refreshed after the form
> submit.
>
> AJAX is preferably used to avoid
Hi !
When a Link doesn't open popup window, I can write onclick in html code:
...
But 'popup' Link rewrites onclick attribute.
I tried to modify this javascript, but this example isn't working:
add(
new Link("linkWithConfirm") {
@Override
public void onClick() {
Hi,
See org.apache.wicket.markup.html.link.Link#onComponentTag().
You override the popup settings with your alert.
You may need to
override org.apache.wicket.markup.html.link.Link#onComponentTag() to be
able to preserve the popup settings.
Martin Grigorov
Wicket Training and Consulting