Thanks namesake :) I just put the formPanel in a webmarkupcontainer and updated the container. And it works fine. Setting the markup id didn't work for me due to unknown reasons. Anyway, you helped a lot! Thanks! :)
Regards, Martin -----Original Message----- From: Martin Makundi [mailto:[email protected]] Sent: Monday, January 18, 2010 9:55 AM To: [email protected] Subject: Re: Ajax unable to perform markup update Or even better.. ajax-update the parent panel not the child panel. ** Martin 2010/1/18 Martin Makundi <[email protected]>: > Hi! > > If the markupid number changes then ofcourse.. you should maybe call : > > newPanel.setMarkupid(oldPanel.getMarkupId()); when ajax updating > > ** > Martin > > 2010/1/18 Martin Asenov <[email protected]>: >> Hello, everyone! Although I've managed to handle such errors so far, I am >> unable to deal with this one... >> >> I've got an abstract class MyFormPanel that extends Panel and calls >> super("form_panel"); >> >> Because I've got different form panels, i.e. ContactFormPanel, >> GroupFormPanel, etc. I'm trying to replace the panels according to the >> user's actions. So... here's a small snippet of the replacement: >> >> >> MyFormPanel<Contact> temp = new ContactFormPanel(new Contact()); >> temp.setOutputMarkupId(true); >> formPanel.replaceWith(temp); >> formPanel = temp; >> >> formPanel.setVisible(true); >> target.addComponent(formPanel); >> >> Note: formPanel is my initially created MyFormPanel, that has got >> setOutputPlaceHolderTag(true); and starts invisible. >> >> The first replacement is performed properly, but when a 'new group' button >> is hit for instance and I do the replacement in the very same manner, Ajax >> says unable to update markup - couldn't find component with id >> "form_panel_some_number". >> >> I just can't figure out why this occurs. If someone gives a hint I would be >> grateful. >> >> Thank you in advance, >> >> Martin >> >> -----Original Message----- >> From: Eyal Golan [mailto:[email protected]] >> Sent: Monday, January 18, 2010 8:48 AM >> To: [email protected] >> Subject: Re: WicketExtensions DataTable : Creating a Links using Model value? >> >> You can either override PropertyColumn's populateItem method, and add to the >> cell the link you want. >> Or you can use AbstractColumn. >> >> Eyal Golan >> [email protected] >> >> Visit: http://jvdrums.sourceforge.net/ >> LinkedIn: http://www.linkedin.com/in/egolan74 >> >> P Save a tree. Please don't print this e-mail unless it's really necessary >> >> >> On Mon, Jan 18, 2010 at 8:24 AM, Ashika Umanga Umagiliya < >> [email protected]> wrote: >> >>> Greetings, >>> >>> I was going through WicketExtensions DataTable source and I was wondering >>> how to create a hyperlink using PropertyColumn. >>> >>> In docs it says: >>> >>> columns[0] = new PropertyColumn(new Model("Family Id"), "familyId"); >>> >>> What I want to do is, >>> 1) create a Link using the field value "familyId",and directing to another >>> page which display SubFamilies related to >>> selected 'familyId' >>> 2) create a Link which direct to another website . eg: >>> http://www.ncbi.org/family?id=$familyid >>> >>> >>> My domain model is as: >>> >>> One 'Family' has many 'SubFamily' objects. >>> >>> >>> >>> >>> || >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
