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
|