I'm trying to pass action parameters to the partial view in my page but for some reason it says that my parameter is null, even though it's the bean that is being used in the outer page.
Page:
<ui:include src="/templates/common/ajaxConfirmPopup.xhtml">
<ui:param name="bean" value="#{paginaBean}" />
<ui:param name="action" value="deleteAll" />
</ui:include>
Calling the action in the partial:
actionListener="#{bean[action]}"
But I get the following exception:
Caused by: javax.el.PropertyNotFoundException: Target Unreachable, identifier 'bean' resolved to null
at org.apache.el.parser.AstValue.getTarget(AstValue.java:98) [jbossweb-7.0.13.Final.jar:]
at org.apache.el.parser.AstValue.invoke(AstValue.java:244) [jbossweb-7.0.13.Final.jar:]
at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278) [jbossweb-7.0.13.Final.jar:]
Am I doing something wrong?
NOTE: Everything works fine when method has ActionEvent parameter, it is not working when method is without parameters.