Re: [Wicket-user] Setting Visible (setVisible) inside onAttach(). Is this Right?

2007-04-24 Thread Francisco Diaz Trepat - gmail
Great, thanks Igor. On 4/24/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: yes, any time the component is rendered -igor On 4/24/07, Francisco Diaz Trepat - gmail <[EMAIL PROTECTED] > wrote: > > Excelent. That means that isVisible is called every """page > refresh"""? > > Thank

Re: [Wicket-user] Setting Visible (setVisible) inside onAttach(). Is this Right?

2007-04-24 Thread Igor Vaynberg
yes, any time the component is rendered -igor On 4/24/07, Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]> wrote: Excelent. That means that isVisible is called every """page refresh"""? Thanks On 4/24/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > change > > protected voi

Re: [Wicket-user] Setting Visible (setVisible) inside onAttach(). Is this Right?

2007-04-24 Thread Francisco Diaz Trepat - gmail
Excelent. That means that isVisible is called every """page refresh"""? Thanks On 4/24/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: change protected void onAttach() { //Verify visible status setVisible(getWicketSession().isUserLoggedIn()); } to boolean isVisib

Re: [Wicket-user] Setting Visible (setVisible) inside onAttach(). Is this Right?

2007-04-24 Thread Igor Vaynberg
change protected void onAttach() { //Verify visible status setVisible(getWicketSession().isUserLoggedIn()); } to boolean isVisible() { return getWicketSession().isUserLoggedIn(); } imho that is better -igor On 4/24/07, Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]> wrote:

[Wicket-user] Setting Visible (setVisible) inside onAttach(). Is this Right?

2007-04-24 Thread Francisco Diaz Trepat - gmail
Hi, I have this working code. But I feel I'am mistaking and this is not the most apropiate place for it. Very simple, a logout panel (just a link) that on attached sets itself visible or not. Here is the code. public class LogoutPanel extends BasePanel { /** Creates a new instance of LogoutP