javaee / mojarra

PLEASE NOTE: This project has moved to Eclipse Foundation and will be archived under the JavaEE GitHub Organization. After Feb. 1, 2021, the new location will be github.com/javaee/mojarra. Mojarra - Oracle's implementation of the JavaServer Faces specification
https://github.com/eclipse-ee4j/mojarra
Other
164 stars 58 forks source link

preRenderView of the multi hop forwarded page not getting executed in JSF - Mojarra 2.2.12 #4107

Open javaserverfaces opened 8 years ago

javaserverfaces commented 8 years ago

Here is the scenario which is

Page A.xhtml i. Click an ajax submit button ii. above click navigates to Page B (not a redirect)

Page B.xhtml i. There is a "preRenderView" event defined in under f:metadata. ii. "preRenderView" listener under certain scenario's does a forward to next page i.e. Page C.xhtml iii. This is used to do navigation - facesContext.getApplication().getNavigationHandler().handleNavigation(facesContext, null, outcome); (not a redirect)

So far so good

Page C.xhtml i. There is a "preRenderView" event defined in this page under f:metadata - which never gets executed

Problem: Page C is rendered but its "preRenderView" never gets executed.

Note: I tested this scenario with WAS Liberty Server 8.5.5.8 - JEE7 compliant server with Apache MyFaces and it works perfectly fine there.

Thanks for looking into it.

Environment

Wildfly 9.0.2.Final, JDK 1.8.0_65, Windows 8

Affected Versions

[2.2.12]

javaserverfaces commented 8 years ago

Reported by vijpan

javaserverfaces commented 7 years ago

This issue was imported from java.net JIRA JAVASERVERFACES-4103

edburns commented 6 years ago

Please see this important message regarding community contributions to Mojarra.

https://javaee.groups.io/g/jsf-spec/message/30

Also, please consider joining that group, as that group has taken the place of the old dev@javaserverfaces.java.net mailing list.

Thanks,

Ed Burns