Messages posted by xflin
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icesoft.org  [Login] Login 
Messages posted by: xflin  XML
Profile for xflin -> Messages posted by xflin [2]
Author Message
Tried the original accordion (not the one in 1.6.0-DR#1) with facelets. It works in general. However immediately after the INITIAL LOAD of page, clicking a <ice:commandLink .../> inside the accordion gave me a NPE as follows,

...
Caused by: java.lang.NullPointerException
at com.icesoft.x.accordion.AccordionRenderer.decode(AccordionRenderer.java:
38)
...

The following change seemed to fix the problem,

$ diff AccordionRenderer.java AccordionRenderer.java.orig
38,41c38
< String style = null;
< if (map!=null) {
< style = (String)map.get(contentId);
< }
---
> String style = (String)map.get(contentId);


Note that the problem cannot be reproduce if one clicks any accordion bar before clicking on the commandLink.

Don't have time for figuring out the root cause.
--
xflin
I couldn't find it either. However there's an ICEfaces sample project in the jboss-seam download (from jboss.org of course).
 
Profile for xflin -> Messages posted by xflin [2]
Go to:   
Powered by JForum 2.1.7ice © JForum Team