Re: Making an invisible panel visible via AjaxLink

2009-02-19 Thread Martijn Dashorst
http://tinyurl.com/dmhfub On Thu, Feb 19, 2009 at 5:14 PM, rjilani jil...@lifebiosystems.com wrote: Hi: Gurus I am trying to make an invisible panel visible via Ajax link, but got stuck at a point where I don't know how to proceed further. Please see the code snipet below final

Re: Making an invisible panel visible via AjaxLink

2009-02-19 Thread Ernesto Reinaldo Barreiro
Maybe setOutputMarkupPlaceholderTag(outputTag) can help you? On Thu, Feb 19, 2009 at 5:14 PM, rjilani jil...@lifebiosystems.com wrote: Hi: Gurus I am trying to make an invisible panel visible via Ajax link, but got stuck at a point where I don't know how to proceed further. Please see the

Re: Making an invisible panel visible via AjaxLink

2009-02-19 Thread Michael Sparer
put the panel in an additional container and add this container WebmarkupContainer div = new WebmarkupContainer(cont); div.setOutputMarkupId(true); div.add(registeredUserPanel.setVisible(false)); then in the onclick stuff registeredUserPanel.setVisible(true); target.addComponent(div); that

Re: Making an invisible panel visible via AjaxLink

2009-02-19 Thread rjilani
Thanks Michael the trick worked like a charm. Best Regards, RJ. Michael Sparer wrote: put the panel in an additional container and add this container WebmarkupContainer div = new WebmarkupContainer(cont); div.setOutputMarkupId(true); div.add(registeredUserPanel.setVisible(false));

Re: Making an invisible panel visible via AjaxLink

2009-02-19 Thread Igor Vaynberg
setoutputmarkupplaceholdertag that ernesto mentioned is the non-trick solution to your problem. -igor On Thu, Feb 19, 2009 at 8:39 AM, rjilani jil...@lifebiosystems.com wrote: Thanks Michael the trick worked like a charm. Best Regards, RJ. Michael Sparer wrote: put the panel in an

Re: Making an invisible panel visible via AjaxLink

2009-02-19 Thread rjilani
Thanks Martijn it was cute:-) next time I remember it. BTW my Kudos to you for writing such an awesome book on Wicket. Really good work. Best Regards, RJ. Martijn Dashorst wrote: http://tinyurl.com/dmhfub On Thu, Feb 19, 2009 at 5:14 PM, rjilani jil...@lifebiosystems.com wrote: Hi:

Re: Making an invisible panel visible via AjaxLink

2009-02-19 Thread Matt Welch
The key, as others have alluded to and you discovered yourself, is that setting a component's visibility to false will cause that component to not be rendered. I know in the back of some people minds (mine included) we think invisible means it's there, we just can't see it). Well, in this case

Re: Making an invisible panel visible via AjaxLink

2009-02-19 Thread Michael Sparer
uff. yeah right :-) igor.vaynberg wrote: setoutputmarkupplaceholdertag that ernesto mentioned is the non-trick solution to your problem. -igor On Thu, Feb 19, 2009 at 8:39 AM, rjilani jil...@lifebiosystems.com wrote: Thanks Michael the trick worked like a charm. Best Regards,