voyent
Using Portlet tags causes NullPointerException  XML
Forum Index -> Portals & Portlets
Author Message
rgordon

Joined: 27/Mar/2007 00:00:00
Messages: 3
Offline


I've gotten IceFaces components to appear inside a portlet running in Liferay. Now I'm trying to use the Portlet tags (referenced by the URI: http://java.sun.com/portlet) so that I can create Portlet URLs inside my JSF page. Below is a simple example of what I'm trying to do:

Code:
<f:view     xmlns:portlet="http://java.sun.com/portlet"
 		xmlns:f="http://java.sun.com/jsf/core"
 		xmlns:ice="http://www.icesoft.com/icefaces/component">
 		
 <portlet:defineObjects/>
 <portlet:renderURL var="viewRender" windowState="maximized">
 </portlet:renderURL>
 			   
  <ice:form action="#{viewRender}">
 		<ice:panelGrid>
 				<ice:outputLabel value="Select a Action:"/>
 				<ice:selectOneMenu   value="#{GBStateBean.selectedCommand}">
 					<f:selectItems value="#{GBStateBean.commandList}"/>
 				</ice:selectOneMenu>  
 				<ice:messages/>
 				<ice:commandButton  value="Submit Form"/>
 		</ice:panelGrid>
 	</ice:form>  
 
 </f:view>


Basically, I'm trying to have the portlet make a call back to itself with the generated Portlet URL (renderURL, in this case) and have the portlet render itself in Maximized mode when the form submits. However, my Portlet is currently not appearing in liferay (it states 'Portlet is currently unavailible'), and I get the following exception:

Code:
Caused by: javax.faces.FacesException: Failed to execute JSP lifecycle.
 	at com.icesoft.faces.webapp.parser.Parser.parse(Parser.java:140)
 	at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:519)
 	... 204 more
 Caused by: javax.servlet.jsp.JspException: java.lang.reflect.InvocationTargetException
 	at com.liferay.taglib.portlet.DefineObjectsTag.doStartTag(DefineObjectsTag.java:54)
 	at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:162)
 	at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:186)
 	at com.icesoft.faces.webapp.parser.Parser.parse(Parser.java:134)
 	... 205 more
 Caused by: java.lang.reflect.InvocationTargetException
 	at sun.reflect.GeneratedMethodAccessor448.invoke(Unknown Source)
 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 	at java.lang.reflect.Method.invoke(Method.java:585)
 	at com.liferay.portal.kernel.util.MethodInvoker.invoke(MethodInvoker.java:150)
 	at com.liferay.portal.kernel.util.MethodInvoker.invoke(MethodInvoker.java:47)
 	at com.liferay.taglib.portlet.DefineObjectsTag.doStartTag(DefineObjectsTag.java:51)
 	... 208 more
 Caused by: java.lang.NullPointerException
 	at com.liferay.portal.servlet.taglib.portlet.DefineObjectsTagUtil.doStartTag(DefineObjectsTagUtil.java:45)
 	... 214 more


Checking out the source code for "DefineObjectsTagUtil" it looks like the
javax.servlet.ServletRequest could be null?

I'm not sure if this is a Liferay question or IceFace question, but I thought that I'd stop here first and see if i could get any ideas for this issue.

Thanks.

I'm using IceFaces 1.6.1 and Liferay4.3
 
Forum Index -> Portals & Portlets
Go to:   
Powered by JForum 2.1.7ice © JForum Team