Author: andrei_exadel
Date: 2009-02-20 07:46:27 -0500 (Fri, 20 Feb 2009)
New Revision: 12701
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/TemplateBean.java
Log:
Remove try/catch block for template bean reset method
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/TemplateBean.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/TemplateBean.java 2009-02-20
12:45:44 UTC (rev 12700)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/TemplateBean.java 2009-02-20
12:46:27 UTC (rev 12701)
@@ -24,6 +24,7 @@
import java.util.ArrayList;
import java.util.List;
+import javax.el.ELException;
import javax.el.ExpressionFactory;
import javax.el.MethodExpression;
import javax.faces.context.FacesContext;
@@ -123,16 +124,12 @@
FacesContext context = FacesContext.getCurrentInstance();
if (context != null) {
if (methodName != null && methodName.trim().length() > 0
&& !"null".equals(methodName)) {
- try {
ExpressionFactory factory =
context.getApplication().getExpressionFactory();
if (factory != null) {
MethodExpression methodExpression =
factory.createMethodExpression(context.getELContext(),
methodName, Void.class, new Class[] {});
methodExpression.invoke(context.getELContext(), new Object[]
{});
}
- } catch (Exception e) {
- log.error("Reset method has not been found by this expression:
" + methodName, e);
- }
}
}
Show replies by date