Author: knopp
Date: Sat Jul 28 03:43:26 2007
New Revision: 560527
URL: http://svn.apache.org/viewvc?view=rev&rev=560527
Log:
Don't try to get id from markup in onComponentTag!
Modified:
wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Component.java
Modified:
wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Component.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Component.java?view=diff&rev=560527&r1=560526&r2=560527
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Component.java
(original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Component.java
Sat Jul 28 03:43:26 2007
@@ -3321,7 +3321,11 @@
*/
protected void onComponentTag(final ComponentTag tag)
{
- if (getFlag(FLAG_OUTPUT_MARKUP_ID) &&
!tag.getAttributes().containsKey(MARKUP_ID_ATTR_NAME))
+ // We can't try to get the ID from markup. This could be
different than
+ // id returned from getMarkupId() prior first rendering the
component
+ // (due to transparent resolvers and borders which break the
1:1
+ // component <-> markup relation)
+ if (getFlag(FLAG_OUTPUT_MARKUP_ID))
{
tag.put(MARKUP_ID_ATTR_NAME, getMarkupId());
}