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 <mase...@velti.com>: > 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:egola...@gmail.com] > Sent: Monday, January 18, 2010 8:48 AM > To: users@wicket.apache.org > 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 > egola...@gmail.com > > 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 < > auma...@biggjapan.com> 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: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org