I have the following code to initialize bean values depending on the url parameter.
<f:metadata>
<f:viewParam name="id" value="#{inningBean.inningId}" />
<f:event type="preRenderView"
listener="#{inningBean.initInningBeanForBallByBallScoring}" />
</f:metadata>
It works great. But I want that in certain conditions (for example, to check the correctness), the user is redirected to another page from the listener method.
How can i do this?
user517491
source
share