myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ima...@apache.org
Subject svn commit: r513506 - /myfaces/fusion/trunk/core/src/main/java/org/apache/myfaces/fusion/viewController/ReflectiveViewControllerExecutor.java
Date Thu, 01 Mar 2007 23:25:48 GMT
Author: imario
Date: Thu Mar  1 13:20:46 2007
New Revision: 513506

URL: http://svn.apache.org/viewvc?view=rev&rev=513506
Log:
used shorther path

Modified:
    myfaces/fusion/trunk/core/src/main/java/org/apache/myfaces/fusion/viewController/ReflectiveViewControllerExecutor.java

Modified: myfaces/fusion/trunk/core/src/main/java/org/apache/myfaces/fusion/viewController/ReflectiveViewControllerExecutor.java
URL: http://svn.apache.org/viewvc/myfaces/fusion/trunk/core/src/main/java/org/apache/myfaces/fusion/viewController/ReflectiveViewControllerExecutor.java?view=diff&rev=513506&r1=513505&r2=513506
==============================================================================
--- myfaces/fusion/trunk/core/src/main/java/org/apache/myfaces/fusion/viewController/ReflectiveViewControllerExecutor.java
(original)
+++ myfaces/fusion/trunk/core/src/main/java/org/apache/myfaces/fusion/viewController/ReflectiveViewControllerExecutor.java
Thu Mar  1 13:20:46 2007
@@ -46,6 +46,11 @@
 		invokeOnViewController(bean, "preRenderView");
 	}
 
+	public void invokePostApplyRequestValues(Object bean)
+	{
+		invokeOnViewController(bean, "postApplyRequest");
+	}
+	
 	protected void invokeOnViewController(Object bean, String methodName)
 	{
 		try
@@ -67,28 +72,4 @@
 			throw new FacesException(e);
 		}
 	}
-
-    
-    public void invokePostApplyRequestValues(Object bean) {
-        try
-        {
-            Method method = bean.getClass().getMethod("postApplyRequest", null); // NON-NLS
-            method.invoke(bean, null);
-        }
-        catch (NoSuchMethodException e)
-        {
-            // no problem
-            // just ignore it
-        }
-        catch (IllegalAccessException e)
-        {
-            throw new FacesException(e);
-        }
-        catch (InvocationTargetException e)
-        {
-            throw new FacesException(e);
-        }
-    }
-    
-    
 }



Mime
View raw message