You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Denis Nikiforov <de...@ural.org> on 2006/08/22 12:32:14 UTC

t:tree2 + portlet

(message (Hello *Human*)
(body '(

I'm trying to use t:tree2 in my portlet and getting following exception:

Nested Exception is java.lang.NullPointerException
	at org.apache.myfaces.custom.tree2.HtmlTreeRenderer.restoreStateFromCookies(HtmlTreeRenderer.java:84)
	at org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeBegin(HtmlTreeRenderer.java:157)
	at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:307)
...

What's a problem here? Which jsf-components I can use in portlet and
which one can't?

-- 
))) => t
(WBR '(Denis Nikiforov))

RE: tree2 + portlet

Posted by "Strittmatter, Stephan" <St...@siemens.com>.
I think you have to use serverside Tree. This works for me in portlet.

Regards,

Stephan

> -----Original Message-----
> From: Denis Nikiforov [mailto:denis@ural.org] 
> Sent: Tuesday, August 22, 2006 12:32 PM
> To: users@myfaces.apache.org
> Subject: t:tree2 + portlet
> 
> (message (Hello *Human*)
> (body '(
> 
> I'm trying to use t:tree2 in my portlet and getting following 
> exception:
> 
> Nested Exception is java.lang.NullPointerException
> 	at 
> org.apache.myfaces.custom.tree2.HtmlTreeRenderer.restoreStateF
> romCookies(HtmlTreeRenderer.java:84)
> 	at 
> org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeBegin(H
> tmlTreeRenderer.java:157)
> 	at 
> javax.faces.component.UIComponentBase.encodeBegin(UIComponentB
> ase.java:307)
> ...
> 
> What's a problem here? Which jsf-components I can use in portlet and
> which one can't?
> 
> -- 
> ))) => t
> (WBR '(Denis Nikiforov))
>