Hi guys/girls, I'm having a bit of a problem accessing a spring bean from a call back. Before I render the page I can access the spring bean 'userService' just fine but during a callback when I go to access it it's null for some reason. Here's a simplified version of my code. Anyone got any ideas? Thanks
@SpringBean private transient IUserService userService; private AbstractDefaultAjaxBehavior pilotAdded; @Override protected void onBeforeRender() { List<Person> pilots = userService.getFollowing(); add(new Label("pilotAdded", "$(document).ready(function() {" + "wicketAjaxGet('"+pilotAdded.getCallbackUrl()+"', function() {}, function() {});" + "});").setEscapeModelStrings(false)); super.onBeforeRender(); } public AssignPilotForm(String id) { super(id); pilotAdded = new AbstractDefaultAjaxBehavior() { protected void respond(final AjaxRequestTarget target) { List<Person> pilots = userService.getFollowing(); ); } add(pilotAdded); }; -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/spring-bean-null-during-ajax-call-back-tp3042434p3042434.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org