java - Hiding a <div> tag using wicket & eclipse -
i've tried hide tag in wicket, i've managed accomplish in case follows:
html ... <div wicket:id="div_id">this hides</div> java final webmarkupcontainer wmc = new webmarkupcontainer("div_id"); method public onsubmit(){ wmc.setvisible(false); } this manages div hidden, div tag has wicket components inside, , can't seem working, error pops saying inner components not defined in component "div_id".
any idea how working?
thanks guys!!
this wild guess, since don't know how add inner components , fails, if add or modify them in onbeforerender() , you're using wicket 1.4.x, you'll need override webmarkupcontainer.callonbeforerenderifnotvisible() return true...
for wicket 1.5 code should moved onconfigure()
Comments
Post a Comment