You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2010/11/04 23:23:12 UTC
svn commit: r1031293 - in
/myfaces/commons/branches/jsf_11/myfaces-commons-components/src/main:
conf/META-INF/ java/org/apache/myfaces/commons/facelets/
java/org/apache/myfaces/commons/facelets/util/
java/org/apache/myfaces/commons/util/
Author: lu4242
Date: Thu Nov 4 22:23:11 2010
New Revision: 1031293
URL: http://svn.apache.org/viewvc?rev=1031293&view=rev
Log:
relocate code to myfaces-commons-utils
Added:
myfaces/commons/branches/jsf_11/myfaces-commons-components/src/main/java/org/apache/myfaces/commons/facelets/
myfaces/commons/branches/jsf_11/myfaces-commons-components/src/main/java/org/apache/myfaces/commons/facelets/util/
myfaces/commons/branches/jsf_11/myfaces-commons-components/src/main/java/org/apache/myfaces/commons/facelets/util/FaceletsFunctionLibrary.java
Removed:
myfaces/commons/branches/jsf_11/myfaces-commons-components/src/main/java/org/apache/myfaces/commons/util/
Modified:
myfaces/commons/branches/jsf_11/myfaces-commons-components/src/main/conf/META-INF/facelets-taglib-base.xml
Modified: myfaces/commons/branches/jsf_11/myfaces-commons-components/src/main/conf/META-INF/facelets-taglib-base.xml
URL: http://svn.apache.org/viewvc/myfaces/commons/branches/jsf_11/myfaces-commons-components/src/main/conf/META-INF/facelets-taglib-base.xml?rev=1031293&r1=1031292&r2=1031293&view=diff
==============================================================================
--- myfaces/commons/branches/jsf_11/myfaces-commons-components/src/main/conf/META-INF/facelets-taglib-base.xml (original)
+++ myfaces/commons/branches/jsf_11/myfaces-commons-components/src/main/conf/META-INF/facelets-taglib-base.xml Thu Nov 4 22:23:11 2010
@@ -23,7 +23,7 @@
<function>
<function-name>findComponent</function-name>
- <function-class>org.apache.myfaces.commons.util.FaceletsFunctionLibrary</function-class>
+ <function-class>org.apache.myfaces.commons.facelets.util.FaceletsFunctionLibrary</function-class>
<function-signature>javax.faces.component.UIComponent findComponent(java.lang.String)</function-signature>
</function>
Added: myfaces/commons/branches/jsf_11/myfaces-commons-components/src/main/java/org/apache/myfaces/commons/facelets/util/FaceletsFunctionLibrary.java
URL: http://svn.apache.org/viewvc/myfaces/commons/branches/jsf_11/myfaces-commons-components/src/main/java/org/apache/myfaces/commons/facelets/util/FaceletsFunctionLibrary.java?rev=1031293&view=auto
==============================================================================
--- myfaces/commons/branches/jsf_11/myfaces-commons-components/src/main/java/org/apache/myfaces/commons/facelets/util/FaceletsFunctionLibrary.java (added)
+++ myfaces/commons/branches/jsf_11/myfaces-commons-components/src/main/java/org/apache/myfaces/commons/facelets/util/FaceletsFunctionLibrary.java Thu Nov 4 22:23:11 2010
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.commons.facelets.util;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+
+public final class FaceletsFunctionLibrary
+{
+
+ public FaceletsFunctionLibrary()
+ {
+ super();
+ }
+
+ public static UIComponent findComponent(String expr)
+ {
+ return FacesContext.getCurrentInstance().
+ getViewRoot().findComponent(expr);
+ }
+}