Author: sergeyhalipov
Date: 2007-11-13 15:49:27 -0500 (Tue, 13 Nov 2007)
New Revision: 3975
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentDescriptor.java
trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataLists.xhtml
trunk/samples/richfaces-demo/src/main/webapp/templates/include/tagInfo.xhtml
Log:
http://jira.jboss.com/jira/browse/RF-1262
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentDescriptor.java
===================================================================
---
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentDescriptor.java 2007-11-13
19:54:02 UTC (rev 3974)
+++
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentDescriptor.java 2007-11-13
20:49:27 UTC (rev 3975)
@@ -97,5 +97,12 @@
public void setGroup(String group) {
this.group = group;
}
+
+ public String getTagInfoLocation() {
+ int pos = tldDocLocation.indexOf("tlddoc");
+ if (pos > 0)
+ return tldDocLocation.substring(pos);
+ return tldDocLocation;
+ }
}
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataLists.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataLists.xhtml 2007-11-13
19:54:02 UTC (rev 3974)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataLists.xhtml 2007-11-13
20:49:27 UTC (rev 3975)
@@ -12,7 +12,7 @@
<ui:include src="/richfaces/dataLists/usage.xhtml"/>
</rich:tab>
<ui:include src="/templates/include/tagInfo.xhtml">
- <ui:param name="path" value="rich/dataLists"/>
+ <ui:param name="path" value="rich/dataList"/>
</ui:include>
</rich:tabPanel>
</ui:define>
Modified: trunk/samples/richfaces-demo/src/main/webapp/templates/include/tagInfo.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/templates/include/tagInfo.xhtml 2007-11-13
19:54:02 UTC (rev 3974)
+++
trunk/samples/richfaces-demo/src/main/webapp/templates/include/tagInfo.xhtml 2007-11-13
20:49:27 UTC (rev 3975)
@@ -1,13 +1,12 @@
-<html
xmlns="http://www.w3.org/1999/xhtml"
-
xmlns:ui="http://java.sun.com/jsf/facelets"
-
xmlns:h="http://java.sun.com/jsf/html"
-
xmlns:f="http://java.sun.com/jsf/core"
-
xmlns:rich="http://richfaces.org/rich">
-<ui:composition>
- <rich:tab label="Tag Information">
- <rich:insert src="/WEB-INF/tlddoc/#{path}.html"
- errorContent="/templates/include/tagInfoNotes.xhtml"/>
- </rich:tab>
-</ui:composition>
-</html>
-
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:rich="http://richfaces.org/rich">
+<ui:composition>
+ <rich:tab label="Tag Information">
+ <rich:insert
src="/WEB-INF/#{componentNavigator.currentComponent.tagInfoLocation}"
+ errorContent="/templates/include/tagInfoNotes.xhtml"/>
+ </rich:tab>
+</ui:composition>
+</html>