Hi Team,
I was trying to use rich:collapsibleSubTable and I wanted to invoke an action method on expand of the toggler. I have a mapped a action method to the toggleListener and its getting triggered but for some reason I get a Null pointer exception..
Caused By: java.lang.NullPointerException
at org.richfaces.taglib.MethodExpressionToggleListener.processCollapsibleSubTableToggle(MethodExpressionToggleListener.java:44)
at org.richfaces.event.CollapsibleSubTableToggleEvent.processListener(CollapsibleSubTableToggleEvent.java:64)
at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:778)
at org.richfaces.component.UIDataAdaptor.broadcast(UIDataAdaptor.java:454)
at org.richfaces.component.AbstractCollapsibleSubTable.broadcast(AbstractCollapsibleSubTable.java:95)
I tried to debug and found the "methodExpression" is bound as null with the Listener(faces event listener). I am not sure why this happens.. can you guys please help me out on this..
Below is the code snippet..the action method receive "org.richfaces.event.CollapsibleSubTableToggleEvent" as the parameter.. but this method is never called as I get a NPE in methodExpression
<rich:collapsibleSubTable value="#{arraylist}" var="model" id="sbtbl"
expandMode="" expanded="#{false}" toggleListener="#{action.method}">