dev@javaserverfaces.java.net

Re: Seeking Review: Fix for cactus tests in latest Glassfish

From: Jayashri Visvanathan <Jayashri.Visvanathan_at_Sun.COM>
Date: Wed, 13 Jul 2005 17:06:04 -0700

r=jayashri
Ed Burns wrote:

>This is something of a hack, but it's not the first of
>its class.
>
>Index: ConfigureListener.java
>===================================================================
>RCS file:
>/cvs/javaserverfaces-sources/jsf-ri/src/com/sun/faces/config/ConfigureListener.java,v
>retrieving revision 1.40
>diff -u -r1.40 ConfigureListener.java
>--- ConfigureListener.java 3 Jul 2005 19:17:14 -0000
>1.40
>+++ ConfigureListener.java 14 Jul 2005 00:00:05 -0000
>@@ -1364,7 +1364,14 @@
>
>appAssociate.setExpressionFactory(jspAppContext.getExpressionFactory());
>
> // register compositeELResolver with JSP
>-
>jspAppContext.addELResolver(compositeELResolverForJsp);
>+ try {
>+
>jspAppContext.addELResolver(compositeELResolverForJsp);
>+ }
>+ catch (IllegalStateException e) {
>+ if (!Util.isUnitTestModeEnabled()) {
>+ throw e;
>+ }
>+ }
>
> // register JSF ELContextListenerImpl with
>Jsp
> ELContextListenerImpl elContextListener = new
>ELContextListenerImpl();
>
>
>__________________________________________________
>Do You Yahoo!?
>Tired of spam? Yahoo! Mail has the best spam protection around
>http://mail.yahoo.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe_at_javaserverfaces.dev.java.net
>For additional commands, e-mail: dev-help_at_javaserverfaces.dev.java.net
>
>
>