Здравей :)

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