Grab a wicket handler to the parent and then call
ParentComponent.repaceWith(ChildComponent) method:
http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/Compone
nt.html#replaceWith(org.apache.wicket.Component)

~ Thank you,
  Paul Bors

-----Original Message-----
From: Boris Brinza [mailto:[email protected]] 
Sent: Monday, August 05, 2013 11:18 AM
To: [email protected]
Subject: replace content of div with generated html

hello
is it possible to replace content of div with content of WebMarkupContainer
when user clicks on ajaxLink?

I have DataView enclosed in WebMarkupContainer, java seems like this:
WebMarkupContainet tableContainer = new
WebMarkupContainer("tableContainer");
tableContainer.add(....dataview....)

html:
<div wicket id="tableContainer">
...
<table><tr wicket:id="dataview">...</tr></table>
</div>



And i want to replace the content of another div in another page with
content of tableContainer



For clarification: i have table of Users used in UserListPage, but same 
table should be accessible as subtable of Company table in CompanyListPage.




-- 

S pozdravom

Boris Brinza
HT Solution s.r.o.
Digital Park II
Einsteinova 25
851 01 Bratislava
Slovakia

Phone: +421 2 3500 2512,  Mobile: +421 903 602 126
E-mail: [email protected] | www.htsolution.sk


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to