Author: alexsmirnov
Date: 2007-08-13 20:17:53 -0400 (Mon, 13 Aug 2007)
New Revision: 314
Modified:
trunk/framework/src/main/java/org/ajax4jsf/ajax/repeat/UIDataAdaptor.java
Log:
Fix incorrect clientId for a rich:dataTable and rich:repeat on a JSP page with JSF 1.2
Modified: trunk/framework/src/main/java/org/ajax4jsf/ajax/repeat/UIDataAdaptor.java
===================================================================
--- trunk/framework/src/main/java/org/ajax4jsf/ajax/repeat/UIDataAdaptor.java 2007-07-27
22:41:06 UTC (rev 313)
+++ trunk/framework/src/main/java/org/ajax4jsf/ajax/repeat/UIDataAdaptor.java 2007-08-14
00:17:53 UTC (rev 314)
@@ -675,6 +675,16 @@
this._ajaxRowKey = _ajaxRowKeysMap.get(baseClientId);
}
}
+
+ /* (non-Javadoc)
+ * @see
javax.faces.component.UIComponentBase#setParent(javax.faces.component.UIComponent)
+ */
+ public void setParent(UIComponent parent) {
+ super.setParent(parent);
+ // On JSP page, with a JSF 1.2 getBaseClientId can be requested BEFORE insertion
into tree.
+ this._clientId = null;
+ this._baseClientId = null;
+ }
private Object origValue;