You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2007/03/12 09:13:59 UTC
svn commit: r517126 -
/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIData.java
Author: weber
Date: Mon Mar 12 01:13:59 2007
New Revision: 517126
URL: http://svn.apache.org/viewvc?view=rev&rev=517126
Log:
TOBAGO-318 (Sheet component should handle rowIndexes in findComponent())
Modified:
myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIData.java
Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIData.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIData.java?view=diff&rev=517126&r1=517125&r2=517126
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIData.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIData.java Mon Mar 12 01:13:59 2007
@@ -671,4 +671,13 @@
}
return scrollPosition;
}
+
+
+ public static final String rowIdxRegex = "^\\d+" + SEPARATOR_CHAR + ".*";
+ public UIComponent findComponent(String searchId) {
+ if (searchId.matches(rowIdxRegex)) {
+ searchId = searchId.substring(searchId.indexOf(SEPARATOR_CHAR) + 1);
+ }
+ return super.findComponent(searchId);
+ }
}