I've run into this using tab-panels, you have to get the target right by calling getParent() or something similar. If you look at the rendered html the wicket id's can help yo track down the component you need to target.
From: "Coleman, Chris" <chris.cole...@thalesgroup.com.au> To: "users@wicket.apache.org" <users@wicket.apache.org> Date: 03/11/2011 01:00 AM Subject: RE: Wicket thinks setOutputMarkupId property is not set to true Hmmm, it is in a tab panel so it could be the scenario you mention. I'll check out that theory. Chris -----Original Message----- From: Bertrand Guay-Paquet [mailto:ber...@step.polymtl.ca] Sent: Friday, 11 March 2011 4:56 PM To: users@wicket.apache.org Subject: Re: Wicket thinks setOutputMarkupId property is not set to true You did say that you set output markup ID to true on both components, but maybe you should double check that. I had a very similar problem once with an AjaxTabbedPanel that went like this: 1-The first displayed panel (tab) did not have setOutputMarkupId(true); 2-When the second tab is selected Wicket does a replace() to replace the first tab panel and overwrites the OutputMarkupId flag of the second panel which does setOutputMarkupId(true) in its constructor. Maybe you have a chain of replaces where the first panel doesn't have setOutputMarkupId(true)? Regards, Bertrand On 11/03/2011 12:04 AM, Coleman, Chris wrote: > I should add that this is on 1.5-rc2. Previously on 1.4.16 the exact same code (except for package renames) worked fine. > > Chris > > -----Original Message----- > From: Coleman, Chris [mailto:chris.cole...@thalesgroup.com.au] > Sent: Friday, 11 March 2011 4:02 PM > To: users@wicket.apache.org > Subject: Wicket thinks setOutputMarkupId property is not set to true > > I get this error even though I set output markup ID to true on the component that is being replaced (and the one that is replacing it): > > > Root cause: > > java.lang.IllegalArgumentException: cannot update component that does not have setOutputMarkupId property set to true. Component: [PackageDetailsPanel [Component id = panel]] > at org.apache.wicket.ajax.AjaxRequestTarget.add(AjaxRequestTarget.java:375) > at org.apache.wicket.ajax.AjaxRequestTarget.addComponent(AjaxRequestTarget.java:356) > Any idea how this can happen? > > > > DISCLAIMER:--------------------------------------------------------------------------- > This e-mail transmission and any documents, files and previous e-mail messages > attached to it are private and confidential. They may contain proprietary or copyright > material or information that is subject to legal professional privilege. They are for > the use of the intended recipient only. Any unauthorised viewing, use, disclosure, > copying, alteration, storage or distribution of, or reliance on, this message is > strictly prohibited. No part may be reproduced, adapted or transmitted without the > written permission of the owner. If you have received this transmission in error, or > are not an authorised recipient, please immediately notify the sender by return email, > delete this message and all copies from your e-mail system, and destroy any printed > copies. Receipt by anyone other than the intended recipient should not be deemed a > waiver of any privilege or protection. Thales Australia does not warrant or represent > that this e-mail or any documents, files and previous e-mail messages attached are > error or virus free. > -------------------------------------------------------------------------------------- > > > > > DISCLAIMER:--------------------------------------------------------------------------- > This e-mail transmission and any documents, files and previous e-mail messages > attached to it are private and confidential. They may contain proprietary or copyright > material or information that is subject to legal professional privilege. They are for > the use of the intended recipient only. Any unauthorised viewing, use, disclosure, > copying, alteration, storage or distribution of, or reliance on, this message is > strictly prohibited. No part may be reproduced, adapted or transmitted without the > written permission of the owner. If you have received this transmission in error, or > are not an authorised recipient, please immediately notify the sender by return email, > delete this message and all copies from your e-mail system, and destroy any printed > copies. Receipt by anyone other than the intended recipient should not be deemed a > waiver of any privilege or protection. Thales Australia does not warrant or represent > that this e-mail or any documents, files and previous e-mail messages attached are > error or virus free. > -------------------------------------------------------------------------------------- > > > --------------------------------------------------------------------- > 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 DISCLAIMER:--------------------------------------------------------------------------- This e-mail transmission and any documents, files and previous e-mail messages attached to it are private and confidential. They may contain proprietary or copyright material or information that is subject to legal professional privilege. They are for the use of the intended recipient only. Any unauthorised viewing, use, disclosure, copying, alteration, storage or distribution of, or reliance on, this message is strictly prohibited. No part may be reproduced, adapted or transmitted without the written permission of the owner. If you have received this transmission in error, or are not an authorised recipient, please immediately notify the sender by return email, delete this message and all copies from your e-mail system, and destroy any printed copies. Receipt by anyone other than the intended recipient should not be deemed a waiver of any privilege or protection. Thales Australia does not warrant or represent that this e-mail or any documents, files and previous e-mail messages attached are error or virus free. -------------------------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org Notice: This communication, including any attachments, is intended solely for the use of the individual or entity to which it is addressed. This communication may contain information that is protected from disclosure under State and/or Federal law. Please notify the sender immediately if you have received this communication in error and delete this email from your system. If you are not the intended recipient, you are requested not to disclose, copy, distribute or take any action in reliance on the contents of this information.