We are upgrading from jsf 1.2 to jsf 2. We are using apache myfaces 2.1 and rich faces 4.3.
We have onload-phase listener configured like below (for JSF 1.2)
web.xml :
<context-param>
<param-name>onload-config</param-name>
<param-value>/WEB-INF/onload-config.xml</param-value>
</context-param>
and corresponding phase listener configured in faces-config.xml as :
<lifecycle>
<phase-listener>net.sf.jsfcomp.ext.onload.OnLoadPhaseListener</phase-listener>
<lifecycle>
We are using same configuration as is for migrating to JSF 2 and as I know we don't need to include any extra jar for above set up to work. (jsf implementation and commons-logging jars are the only pre-requisites)
However when a url is clicked which is to invoke an action method for configuration in onload-config.xml as below :
<navigation-rule>
<view-id>/from-page.xhtml</view-id>
<action>#{bean.action}</action>
</navigation-rule>
bean.action is not getting invoked and resource not found error is returned.
Am i missing any configuration ? or do i need to add any extra libs ? Please help.
EDIT 1 : Adding more details for the issue :
The page being rendered after bean.action method is returned is as below :
<ui:composition>
<a4j:form id="sample-Form">
<ui:include src="#{bean.panel}">
</ui:include>
<h:commandButton id="button1" value="Go" action="#{bean.next}"/>
</a4j:form>
</ui:composition>
where on clicking the next button , same page is rendered with dynamic panel name (bean.panel) returned from back end