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

Reply via email to