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 <[email protected]>
> wrote:
>>
>> 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));
>>>
>>> then in the onclick stuff
>>> registeredUserPanel.setVisible(true);
>>> target.addComponent(div);
>>>
>>> that should do the trick
>>>
>>> hth,
>>> michael
>>>
>>>
>>> rjilani 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 RegisteredUserPanel registeredUserPanel = new
>>>> RegisteredUserPanel("registrationPanel");
>>>>
>>>>         add(registeredUserPanel);
>>>>         registeredUserPanel.setOutputMarkupId(true);
>>>>         registeredUserPanel.setVisible(false);
>>>>
>>>> add(new AjaxLink("registerLink") {
>>>>
>>>>             @Override
>>>>             public void onClick(AjaxRequestTarget target) {
>>>>                 registeredUserPanel.setVisible(true);
>>>>                 target.addComponent(registeredUserPanel);
>>>>             }
>>>>         });
>>>>
>>>> the problem is that when I call registeredUserPanel.setVisible(false),
>>>> becuase by defualt I don't want this pannel to be visible; the wicket
>>>> don't render the html markup for the pannel at all and hence the ajax
>>>> calls fails becuase it don't find the markup to render the panel. Any
>>>> suggestions how to tackle a situation like this.
>>>>
>>>> Regards,
>>>> RJ
>>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Making-an-invisible-panel-visible-via-AjaxLink-tp22103906p22104436.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> 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]
> 
> 
> 


-----
Michael Sparer
http://techblog.molindo.at
-- 
View this message in context: 
http://www.nabble.com/Making-an-invisible-panel-visible-via-AjaxLink-tp22103906p22104792.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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

Reply via email to