postconstruct Questions
2
Solved
I have a number of beans implementing an interface and I'd like them all to have the same @PostConstruct. I've added the @PostConstruct annotation to my interface method, then added to my bean defi...
Orfinger asked 16/5, 2013 at 14:2
2
Solved
I'm running with the following problem.
I have a few Managed Beans that are shared between, at this moment, two JSF applications. As I don't want to copy and paste the code in the two (more in the...
Restrictive asked 29/8, 2011 at 18:21
1
Solved
I'm using a hierarchy of classes and what I would optimally try to do is have @ManagedBean's that inherit a class that have @ManagedProperty members and @PostConstruct methods.
Specifically, will ...
Ornithology asked 29/10, 2012 at 8:0
1
Solved
I have a BaseBean with a @PostConstruct, and a bean extending it on which i would like to call another @PostConstruct. I have read several places where it said it was possible, however, it seems th...
Slake asked 26/6, 2012 at 18:55
2
Solved
getting some problem into my spring application.
I have very fairly simple spring beans, they are injected into various other spring beans. While debugging I found, they are being called twice, Co...
Vereen asked 28/5, 2012 at 20:29
4
Solved
If I have a class with a @PostConstruct method, how can I test its constructor and thus its @PostConstruct method using JUnit and Spring? I can't simply use new ClassName(param, param) because then...
Cryptomeria asked 9/5, 2012 at 9:19
1
Solved
I have a product.xhtml and a ProductBean. I use /product/{id} to access the products so I have a viewParam in product.xhtml with value=ProductBean.id. The problem is that inside the bean I use an i...
Continuity asked 21/4, 2012 at 17:44
1
Solved
I have a very strange problem with a SessionScoped bean in a JSF 2.0 project. Using Netbeans 6.9.1, Glassfish 3 server and PrimeFaces 3 as the JSF component library.
Here is some code:
package co...
Quincyquindecagon asked 27/2, 2012 at 18:45
2
Solved
I'm using JSF 2.0 with GlassFish 3.0.
I have the following Managed Bean:
@ManagedBean
@RequestScoped
public class OverviewController{
private List<Event> eventList;
@PostConstruct
publ...
Chorizo asked 31/1, 2012 at 10:28
1
Solved
I have a @ViewScope ManagedBean and a @PostConstruct initialisation method. This method is called when a new instance is created, but also on every ajax call. Why is this so?
On an AJAX-call...
Kenzie asked 10/1, 2012 at 13:51
2
Solved
I have an JSF page backed by NewsBean.java which has <f:event type="preRenderComponent" listener="#{newsBean.init}" /> as bean initializer.
There is a button at the bottom of the page for se...
Dinothere asked 19/12, 2011 at 8:17
1
I'd like to handle a JSF @PostConstruct exception by redirecting to another page. I'm using FacesContext.getCurrentInstance().getExternalContext().dispatch("page.jsf"); which works great but since ...
Geoff asked 1/6, 2011 at 21:38
1
Solved
ARGH... This seems to have a hundred answers and I haven't found one that works for me, so I guess I will actually ask it again. Here is my scenario:
My site technically has a single page wh...
Basal asked 16/9, 2011 at 20:9
1
Solved
This doesn't seem right. I was doing some cleanup of my code and I just noticed this. Every ajax request is firing the constructor and @PostConstruct of my @ViewScoped bean. Even a simple database ...
Damnedest asked 4/4, 2011 at 17:0
1
Solved
JSR-250 says all @Resource annotated methods will be called before the @PostConstruct method..
My question is:
Does that mean that all @Resource annotated methods on all beans in a context will b...
Cuprous asked 14/7, 2010 at 9:16
© 2022 - 2024 — McMap. All rights reserved.