tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Broadhead (JIRA)" <>
Subject [jira] [Commented] (TOMEE-1793) PostConstruct and PreRenderView called twice on load
Date Mon, 02 May 2016 09:13:12 GMT


Matthew Broadhead commented on TOMEE-1793:

thanks for the replies.

i did a thread.dumpstack().  how would i dump the second stack? 

really?  i have not added mojarra on purpose.  i include tomee in pom by using, for instance
then in eclipse i add JSF project facet.  i thought that would be the standard configuration.
 i will check into switching to MyFaces as I am not familiar with that

> PostConstruct and PreRenderView called twice on load
> ----------------------------------------------------
>                 Key: TOMEE-1793
>                 URL:
>             Project: TomEE
>          Issue Type: Bug
>          Components: TomEE Core Server
>    Affects Versions: 1.7.3, 1.7.4
>            Reporter: Matthew Broadhead
>         Attachments: threadstack20160501.txt
> May have started after recent Oracle java update (1.8.0-92-b14) but suddenly all ManagedBeans
seem to be calling PostConstruct and PreRenderView twice on View load.  Second time it is
called the request parameters are empty.  Result is that any redirect in PreRenderView gets
executed.  Determined second request was a Partial Request so surrounded PreRenderView listener
> {code}
> if (!FacesContext.getCurrentInstance().getPartialViewContext().isPartialRequest()) {
> ...
> }
> {code}

This message was sent by Atlassian JIRA

View raw message