Got the answer.... Just for the reference for others: http://www.nabble.com/Help%3A-modalwindow-question-tf3920367.html
thanks & Regards, Ravi Gidwani. ravi.gidwani wrote: > > Hi all: > I have scenario: > > 1) I have a page (say Page1) with a link A and a Image (say img1) > 2) On clicking link A, I open a ModalDialog (as a separate page). Say C. > 3) There is a AjaxLink on this Page C (ModalDialog), on clicking this > link, I do some processing and close the dialog. > > Now the problem is : > > I would like to update/redraw the Image "img1" (present on the parent > page1). > Issue : > When I do: > > AjaxSubmitLink link = new AjaxSubmitLink("someSubmitLink", this) { > /** > * Serial UID > */ > private static final long serialVersionUID = 1L; > > @Override > protected void onSubmit(AjaxRequestTarget target, Form > form) { > .....(some process) > target.addComponent(<the image component img1 passed > to this class>); > ...(close the dialog) > } > ... > > The above code does not find the img1 component on this new page and hence > fails to update it. > The ajax debug window shows: > > Component with id [[tabs_panel_viewPhotoPanel_zoomLink2_image]] a was not > found while trying to perform markup update. Make sure you called > component.setOutputMarkupId(true) on the component whose markup you are > trying to update. > > The img1 has the setOutputMarkupId(true) . > > BTW, I am using wicket 1.2.6. > > Any ideas? > > ~Ravi Gidwani. > > -- View this message in context: http://www.nabble.com/how-to-update-component-on-parent-page.-tf3937005.html#a11166377 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user