You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sv...@apache.org on 2005/02/11 04:55:49 UTC
cvs commit: incubator-myfaces/src/myfaces/org/apache/myfaces/portlet PortletUtil.java
svieujot 2005/02/10 19:55:49
Modified: src/myfaces/org/apache/myfaces/portlet PortletUtil.java
Log:
Remove some NoClassDefFoundError Portlet dependencies.
Revision Changes Path
1.2 +12 -2 incubator-myfaces/src/myfaces/org/apache/myfaces/portlet/PortletUtil.java
Index: PortletUtil.java
===================================================================
RCS file: /home/cvs/incubator-myfaces/src/myfaces/org/apache/myfaces/portlet/PortletUtil.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- PortletUtil.java 10 Feb 2005 20:24:17 -0000 1.1
+++ PortletUtil.java 11 Feb 2005 03:55:49 -0000 1.2
@@ -36,13 +36,23 @@
{
if (!isPortletRequest(facesContext)) return false;
- return facesContext.getExternalContext().getResponse() instanceof RenderResponse;
+ try{
+ return facesContext.getExternalContext().getResponse() instanceof RenderResponse;
+ }catch(NoClassDefFoundError e){
+ // noop
+ }
+ return false;
}
public static boolean isPortletRequest(FacesContext facesContext)
{
- return facesContext.getExternalContext()
+ try{
+ return facesContext.getExternalContext()
.getSessionMap()
.get(MyFacesGenericPortlet.PORTLET_REQUEST_FLAG) != null;
+ }catch(NoClassDefFoundError e){
+ // noop
+ }
+ return false;
}
}
\ No newline at end of file