Re: Issue with injection in ActionListener JSF Artifact

2017-08-15 Thread Eduardo B
When we register an ActionListener or PhaseListener globally via faces-config.xml, the instance that is created per listener is injectable, that is, we can do @Inject in the instance. These listeners are added to the injected bean storage list in the application map and as a result, we can call

Re: Issue with injection in ActionListener JSF Artifact

2017-08-11 Thread Eduardo B
In the specs, section 5.4.1 talks about the JSF Artifacts that are eligible for Injection. I tried testing it on Mojarra but couldn't get it to work. I couldn't even get to work other JSF Artifacts on Mojarra, so I'm not sure if they support all the objects specified in section 5.4.1 or if I'm

Re: Issue with injection in ActionListener JSF Artifact

2017-08-11 Thread Thomas Andraschko
Not sure. Does it work in Mojarra or did you check the specs? 2017-08-11 22:44 GMT+02:00 Eduardo B : > I have encountered an issue with injection on a JSF Artifact. The scenario > is as follows: > > When a class implements ActionListener, and that action listener is > invoked

Issue with injection in ActionListener JSF Artifact

2017-08-11 Thread Eduardo B
I have encountered an issue with injection on a JSF Artifact. The scenario is as follows: When a class implements ActionListener, and that action listener is invoked from a facelet as the snippet below: The behavior I’m seeing is that we cannot do @Inject on the class