ice:commandLink with f:param throws Exception
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
ice:commandLink with f:param throws Exception  XML
Forum Index -> Components
Author Message
hrBaer

Joined: 25/04/2009 00:00:00
Messages: 47
Offline


Hi everybody,

I'm quit confused. I use a normal commandLink within a dataTable but during the rendering of the side I get the following error:


java.lang.RuntimeException: wrapped Exception: java.lang.NullPointerException
at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:56)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
Truncated. see log file for complete stacktrace
java.lang.NullPointerException
at com.icesoft.faces.renderkit.dom_html_basic.FormRenderer.renderRequiredCommandLinkHiddenFields(FormRenderer.ja
va:316)
at com.icesoft.faces.renderkit.dom_html_basic.FormRenderer.renderCommandLinkHiddenFields(FormRenderer.java:279)
at com.icesoft.faces.renderkit.dom_html_basic.FormRenderer.encodeEnd(FormRenderer.java:241)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:847)
at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:370
)
 


As soon as I remove the f:param attribute I don't get any error!

This is the code which occurs the problem:

Code:
 <ice:dataTable 	value="#{bean.values}" var="item" styleClass="maxWidth" columnClasses="width70,width30">
 		
 			<ice:column>
 				<ice:commandLink actionListener="#{bean.showDetails}" value="Details">
 					<f:param id="itemId" value="#{item.internalId}" />
 				</ice:commandLink>
 			</ice:column>
 		
 		</ice:dataTable>
 


Any ideas?

Thanks in advance!
hrBaer

Joined: 25/04/2009 00:00:00
Messages: 47
Offline


Sometimes I'm blind!

Would be better to use "name" instead "id" ;)
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team