I guess you need a veil to be shown on the page (or at least over
"saveContainer") while this operation runs, so no other Ajax calls are
scheduled.
You are adding new items to the "saveRepeater" and then repaint the whole
"saveContainer" and there i a chance that some link/button becomes stale
after this.

Check this article too:
http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/

On Wed, Feb 11, 2015 at 11:10 AM, sstefanov <[email protected]>
wrote:

> Здравей :)
>
> thanks for the quick response !
>
> In this case I guess a button which is added on button save click causes
> the
> problem. Here is the code :
>
> final WebMarkupContainer saveContainer = addComponent(form,
> withMarkupId(new
> WebMarkupContainer("saveContainer")));
> saveContainer.setOutputMarkupId(true);
> final RepeatingView saveRepeater = addComponent(saveContainer, new
> RepeatingView("saveRepeater"));
>
>
>                 table.add(new AjaxButton("save") {
>
>                         @Override
>                         protected void onSubmit(AjaxRequestTarget target,
> Form<?> form) {
>
>                                 Fragment content = new Fragment("content",
> "fragment", saveContainer);
>
>                                 content.add(new AjaxButton("confirm") {
>
>                                         @Override
>                                         protected void
> onSubmit(AjaxRequestTarget target, Form<?> form) {
>                                                 ...
>                                         }
>                                 });
>
>                                 content.add(new Button("cancel").add(new
> AjaxEventBehavior("onclick") {
>
>                                         @Override
>                                         protected void
> onEvent(AjaxRequestTarget target) {
>                                                 ...
>                                         }
>
>                                 }));
>
>                                 saveRepeater.add(new
> Lightbox(saveRepeater.newChildId(), content, new
> CloseHandler() {
>
>                                         @Override
>                                         public void
> onClose(AjaxRequestTarget target) {
>                                                 ...
>
>                                         }
>                                 }));
>
>                                 target.add(saveContainer);
>                         }
>
>                 });
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Random-Component-not-found-error-tp4669449p4669453.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]
>
>

Reply via email to