Author: awiner
Date: Tue May 1 13:46:12 2007
New Revision: 534237
URL: http://svn.apache.org/viewvc?view=rev&rev=534237
Log:
ADFFACES-472: allow custom component metadata in faces-config.xml
- The JSF 1.2 half of the issue
- Patch from Andy Schwartz
Modified:
incubator/adffaces/branches/faces-1_2-070427/plugins/maven-faces-plugin/src/main/resources/org/apache/myfaces/trinidadbuild/plugin/faces/resources/transform12.xsl
Modified:
incubator/adffaces/branches/faces-1_2-070427/plugins/maven-faces-plugin/src/main/resources/org/apache/myfaces/trinidadbuild/plugin/faces/resources/transform12.xsl
URL:
http://svn.apache.org/viewvc/incubator/adffaces/branches/faces-1_2-070427/plugins/maven-faces-plugin/src/main/resources/org/apache/myfaces/trinidadbuild/plugin/faces/resources/transform12.xsl?view=diff&rev=534237&r1=534236&r2=534237
==============================================================================
---
incubator/adffaces/branches/faces-1_2-070427/plugins/maven-faces-plugin/src/main/resources/org/apache/myfaces/trinidadbuild/plugin/faces/resources/transform12.xsl
(original)
+++
incubator/adffaces/branches/faces-1_2-070427/plugins/maven-faces-plugin/src/main/resources/org/apache/myfaces/trinidadbuild/plugin/faces/resources/transform12.xsl
Tue May 1 13:46:12 2007
@@ -807,8 +807,8 @@
</xsl:template>
<!-- Handle metadata we do not know about by letting it through. Currently,
- just for property-extension, but should be global. See JIRA issues
- ADFFACES-358 and ADFFACES-361 -->
+ just for property-extension and component-metadata, but should be global.
+ See JIRA issues ADFFACES-358, ADFFACES-361 and ADFFACES-472 -->
<xsl:template match="javaee:property-extension/*[namespace-uri() !=
'http://java.sun.com/xml/ns/javaee' and namespace-uri()
!='http://myfaces.apache.org/maven-faces-plugin']">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
@@ -816,6 +816,12 @@
</xsl:copy>
</xsl:template>
+ <xsl:template match="mfp:component-metadata/*[namespace-uri() !=
'http://java.sun.com/xml/ns/javaee' and namespace-uri()
!='http://myfaces.apache.org/maven-faces-plugin']">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ <xsl:value-of select="text()"/>
+ </xsl:copy>
+ </xsl:template>
<xsl:template match="//mfp:component-metadata/mfp:group" >
<!-- Disable component groups for now