Hi, I try to update a component ("vorname" within my example) once the user click on a link within a table. (In fact it doesn't matter if it is an ajax link or a "normal" one. My example is using an ajax link.)
This im my JAVA code: ---------------------------- public class Test extends WebPage { private Eintrag selectedEintrag = new Eintrag(); public Test( PageParameters parameters ) { ArrayList listEintraege = ladeEintraege( parameters ); final Label vorname = new Label( "Vorname", selectedEintrag.getVorname() ); //just empty in first instance auswahlVorname.setOutputMarkupId( true ); add( auswahlVorname ); add( new ListView( "List", listEintraege ) { protected void populateItem( final ListItem item ) { Eintrag eintrag = item.getModelObject(); item.add( new Label( "Info", eintrag.getInfo() ) ); item.add(new AjaxFallbackLink("Details_Link"){ @Override public void onClick( AjaxRequestTarget target ) { selectedEintrag = item.getModelObject(); target.addComponent( vorname ); } }); } }); } } ---------------------------- Can anybody provide me some information's why this is not working (no update at all)? Isn't it possible to bind my Label component to a private property and update this property during the onclick method? Thanks in advance. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/update-label-using-Ajax-Link-tp3356575p3356575.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