wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vp143 <vishal.po...@cipriati.co.uk>
Subject Re: replaceWith method in Panel not working with AjaxLazyLoadPanel
Date Thu, 06 Feb 2014 13:17:37 GMT
This is what I am doing:

final Panel emptyPanel = new EmptyPanel("additionalInfo");
emptyPanel.setOutputMarkupId(true);
item.add(emptyPanel);
	                
IndicatingAjaxFallbackLink additionalInfoLink = new
IndicatingAjaxFallbackLink("additionalInfoLink") {
	@Override
	public void onClick(AjaxRequestTarget target) {
		MyNewPanel info = new MyNewPanel(emptyPanel.getId());
		emptyPanel.replaceWith(info);	         
		target.add(emptyPanel);
	}
};
item.add(additionalInfoLink);

I think this is correct?

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/replaceWith-method-in-Panel-not-working-with-AjaxLazyLoadPanel-tp4664232p4664246.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Mime
View raw message