Re: ListView magic
You can set row hidden if you want, no problem: ajaxRequestTarget.addComponent(listItem.setVisible(false)); ** Martin 2010/11/14 meduolis meduol...@gmail.com: Hello, I want to do with listview some things, like after removing one item, don't repaint other items. Or maby this component is not right for such a magic? What can I use instead of listview? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ListView-magic-tp3041784p3041784.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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
spring bean null during ajax call back
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() { ListPerson 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) { ListPerson 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