myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (JIRA)" <>
Subject [jira] [Commented] (MYFACES-1761) Handling PostConstruct annotations - wrong order
Date Mon, 12 May 2014 15:05:15 GMT


Leonardo Uribe commented on MYFACES-1761:

That could be another issue, but I doubt that it is something related to this one, which was
solved long time ago. Please open other issue and provide additional information like the
stack trace, spring version, how the application is being deployed and so on. 

> Handling PostConstruct annotations - wrong order
> ------------------------------------------------
>                 Key: MYFACES-1761
>                 URL:
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions:  1.2.0, 1.2.1-SNAPSHOT
>            Reporter: Bernhard Huemer
>            Assignee: Leonardo Uribe
>             Fix For: 1.2.7
>         Attachments: MYFACES-1761-01.diff, MYFACES-1761-2.patch, MyFaces-1761.patch,
> The specification states that managed bean methods annotated with @PostConstruct have
to be called after the object is initialized and after dependency injection is performed.
However, MyFaces calls those methods after the bean instance is created but before dependency
injection is performed (for example, see
). In order to resolve this bug the LifecycleProvider interface has to be changed. Currently
there's only one method responsible for creating/initializing a new bean: newInstance(). This
design choice implicates that there's no possibility to seperate the steps "creating the bean"
and "postconstructing the bean".

This message was sent by Atlassian JIRA

View raw message