openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1530622 - in /openwebbeans/trunk: webbeans-jsf/src/main/java/org/apache/webbeans/jsf/plugin/OpenWebBeansJsfPlugin.java webbeans-jsf12/src/main/java/org/apache/webbeans/jsf12/plugin/OpenWebBeansJsfPlugin.java
Date Wed, 09 Oct 2013 14:19:58 GMT
Author: struberg
Date: Wed Oct  9 14:19:57 2013
New Revision: 1530622

URL: http://svn.apache.org/r1530622
Log:
OWB-894 remove UIComponent restrcition 

According to the original WebBeans spec draft (version 20081029.pdf)
a UIComponent must not be a bean. 
This restriction got removed since before the spec went final. 
So we now gonna remove this code as well.

Modified:
    openwebbeans/trunk/webbeans-jsf/src/main/java/org/apache/webbeans/jsf/plugin/OpenWebBeansJsfPlugin.java
    openwebbeans/trunk/webbeans-jsf12/src/main/java/org/apache/webbeans/jsf12/plugin/OpenWebBeansJsfPlugin.java

Modified: openwebbeans/trunk/webbeans-jsf/src/main/java/org/apache/webbeans/jsf/plugin/OpenWebBeansJsfPlugin.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-jsf/src/main/java/org/apache/webbeans/jsf/plugin/OpenWebBeansJsfPlugin.java?rev=1530622&r1=1530621&r2=1530622&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-jsf/src/main/java/org/apache/webbeans/jsf/plugin/OpenWebBeansJsfPlugin.java
(original)
+++ openwebbeans/trunk/webbeans-jsf/src/main/java/org/apache/webbeans/jsf/plugin/OpenWebBeansJsfPlugin.java
Wed Oct  9 14:19:57 2013
@@ -18,8 +18,6 @@
  */
 package org.apache.webbeans.jsf.plugin;
 
-import javax.faces.component.UIComponent;
-
 import org.apache.webbeans.exception.WebBeansConfigurationException;
 import org.apache.webbeans.spi.plugins.AbstractOwbPlugin;
 
@@ -29,11 +27,6 @@ public class OpenWebBeansJsfPlugin exten
     @Override
     public void isManagedBean( Class<?> clazz ) throws WebBeansConfigurationException
     {
-        if (UIComponent.class.isAssignableFrom(clazz))
-        {
-            throw new WebBeansConfigurationException("Bean implementation class : " + clazz.getName()

-                                                     + " can not implement JSF UIComponent");
-        }
     }
     
 }

Modified: openwebbeans/trunk/webbeans-jsf12/src/main/java/org/apache/webbeans/jsf12/plugin/OpenWebBeansJsfPlugin.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-jsf12/src/main/java/org/apache/webbeans/jsf12/plugin/OpenWebBeansJsfPlugin.java?rev=1530622&r1=1530621&r2=1530622&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-jsf12/src/main/java/org/apache/webbeans/jsf12/plugin/OpenWebBeansJsfPlugin.java
(original)
+++ openwebbeans/trunk/webbeans-jsf12/src/main/java/org/apache/webbeans/jsf12/plugin/OpenWebBeansJsfPlugin.java
Wed Oct  9 14:19:57 2013
@@ -19,7 +19,6 @@
 package org.apache.webbeans.jsf12.plugin;
 
 
-import javax.faces.component.UIComponent;
 import org.apache.webbeans.exception.WebBeansConfigurationException;
 import org.apache.webbeans.spi.plugins.AbstractOwbPlugin;
 
@@ -29,10 +28,5 @@ public class OpenWebBeansJsfPlugin exten
     @Override
     public void isManagedBean( Class<?> clazz ) throws WebBeansConfigurationException
     {
-        if (UIComponent.class.isAssignableFrom(clazz))
-        {
-            throw new WebBeansConfigurationException("Bean implementation class : " + clazz.getName()

-                                                     + " can not implement JSF UIComponent");
-        }
     }
 }



Mime
View raw message