Wow! your code give me a big hint: there is a method: setBorderBodyVisible()With this method, it's quite simple to solve this problem!AjaxBox.java-public abstract class AjaxBox extends Border { public AjaxBox(String id) {
super(id); setOutputMarkupId(true);
} @Override p
Ingram Chen wrote:
>
> As I tried more Ajax in my new project, I frequently encounter one
> feature:
> use ajax to toggle specific block of tag visible/invisible. To do this,
> one
> may use:
>
I was attempting a similar action. Attached is my first cut of the
solution. It is a Border t
Well, it is good for small portion of tags. One of our feature is togglevisibility by each link in grid (may be 10x10), use _javascript_ to toggle will waste some bandwidth...anyway, thank for adivse.
On 8/31/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
Hide:target.addJavaScript("document.getEle
Hide:
target.addJavaScript("document.getElementById('" +
component.getMarkupId() + "').style.display='none';");
Show:
target.addJavaScript("document.getElementById('" +
component.getMarkupId() + "').style.display='';");
It doesn't remove the component from the output stream, it just
manipulates t