A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
Joined: May 10, 2011
Dec 20, 2011 06:24:30
May I use an @Autowired object from Spring inside my @PostConstruct method?
Joined: Jun 25, 2001
Dec 21, 2011 05:26:12
I think that Autowired is used by Spring to construct beans and (no surprise here!) automatically wire them together.
backing bean, however, is constructed by JSF, not by Spring. The JSF equivalent of @Autowired is @ManagedProperty.
The main functional difference between the 2 annotations is that @ManagedProperty accepts an EL expression instead of simply deducing the source property's bean name.
Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link:
ejbPostCreate() in EJB 2.1
@PostConstruct == ejbPostCreate( ) ?
suppourt for Annotation Programming . In servlets
Many @PostConstruct methods?
Need to call a method to populate my list, then have that list bound to rich tree
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014