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
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
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
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:
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