Author: nbelaevski
Date: 2009-04-23 20:12:43 -0400 (Thu, 23 Apr 2009)
New Revision: 13814
Added:
trunk/ui/tree/src/main/java/org/richfaces/taglib/TreeTagHandlerBase.java
Modified:
trunk/ui/tree/src/main/config/component/tree.xml
Log:
https://jira.jboss.org/jira/browse/RF-6912
Modified: trunk/ui/tree/src/main/config/component/tree.xml
===================================================================
--- trunk/ui/tree/src/main/config/component/tree.xml 2009-04-24 00:07:07 UTC (rev 13813)
+++ trunk/ui/tree/src/main/config/component/tree.xml 2009-04-24 00:12:43 UTC (rev 13814)
@@ -50,9 +50,7 @@
</tag>
<taghandler generate="true">
<classname>org.richfaces.taglib.TreeTagHandler</classname>
- <superclass>
- org.richfaces.taglib.TreeListenersTagHandler
- </superclass>
+ <superclass>org.richfaces.taglib.TreeTagHandlerBase</superclass>
</taghandler>
&attributes;
<property>
Added: trunk/ui/tree/src/main/java/org/richfaces/taglib/TreeTagHandlerBase.java
===================================================================
--- trunk/ui/tree/src/main/java/org/richfaces/taglib/TreeTagHandlerBase.java
(rev 0)
+++ trunk/ui/tree/src/main/java/org/richfaces/taglib/TreeTagHandlerBase.java 2009-04-24
00:12:43 UTC (rev 13814)
@@ -0,0 +1,44 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.richfaces.taglib;
+
+import org.ajax4jsf.webapp.taglib.RowKeyConverterRule;
+
+import com.sun.facelets.tag.MetaRuleset;
+import com.sun.facelets.tag.jsf.ComponentConfig;
+
+/**
+ * @author Nick Belaevski
+ * @since 3.3.1
+ */
+
+public abstract class TreeTagHandlerBase extends TreeListenersTagHandler {
+
+ public TreeTagHandlerBase(ComponentConfig config) {
+ super(config);
+ }
+
+ @Override
+ protected MetaRuleset createMetaRuleset(Class clazz) {
+ return super.createMetaRuleset(clazz).addRule(RowKeyConverterRule.INSTANCE);
+ }
+}