Hi Chris and Ted,

Thanks for u fast replies. Here's what I am doing...

This is my header.java class:   

        @Persist
        private boolean isLoggedIn = true;

        public Header() {
                LogonCheck logonCheck = new LogonCheck();
                String logonStatus = logonCheck.checkLogon();
                if(!logonStatus.equals("1.0"))
                        isLoggedIn = false;
        }
        // followed by my getters and setters......

This is my header.tml:

        <t:pageLink t:page="Start" class="horizontal_navi">
                 Introduction
      </t:pageLink>
            
        <t:if test="isLoggedIn" negate="true">
                <t:pageLink t:page="LogInPage" class="horizontal_navi">
                        LogIn
                </t:pageLink>
        </t:if>




Thanks,
Yeeswar.

-----Original Message-----
From: Chris Lewis [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 04, 2008 4:14 PM
To: Tapestry users
Subject: Re: Problem with Page pooling

If you can, you should paste some code. What you're saying sounds like a
logic problem, but it almost certainly has nothing to do with page
pooling. Page pooling has to do with created instances of your page
classes. These instances do not retain any kind of cached state. Instead
the relevant rendering and/or component event methods are executed
freshly on each request. Even when you use an ASO or a persistent field,
those members are not tied to that instance of that page. Instead they
are tied to the client's request (session) and read by the page class on
each request.

chris

Yeeswara Nadapana (HCL Financial Services) wrote:
> Hi,
>
>  
>
> I am using Tapestry 5.0.7 for my application. On my menu bar, I put
some
> links with <t:pageLink>. I have put some links under <t:if> conditions
> so as to check the Login status. 
>
>  
>
> Problem is::: When I was not logged in, some links doesn't show up,
> which is CORRECT. Now, I logs in and can find those links. Now, when I
> click on a link which I clicked prior to Loggin in, I will get the
page
> from Tapestry POOL and cannot see those links under <t:if> conditions
> even logged in. Please suggest me a way to solve this. Or shall I have
> to disable page pooling for this.
>
>  
>
> Thanks and Regards
>
> Yeeswara N
>
>
************************************************************************
> ****
>
> This mail is transmitted to you on behalf of HCL Technologies.
>
> Diese Post wird Ihnen im Namen der HCL Technologies ubermittelt
>
>
************************************************************************
> ****
>
>  
>
>
>
> DISCLAIMER:
>
------------------------------------------------------------------------
-----------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and
intended for the named recipient(s) only.
> It shall not attach any liability on the originator or HCL or its
affiliates. Any views or opinions presented in 
> this email are solely those of the author and may not necessarily
reflect the opinions of HCL or its affiliates.
> Any form of reproduction, dissemination, copying, disclosure,
modification, distribution and / or publication of 
> this message without the prior written consent of the author of this
e-mail is strictly prohibited. If you have 
> received this email in error please delete it and notify the sender
immediately. Before opening any mail and 
> attachments please check them for viruses and defect.
>
>
------------------------------------------------------------------------
-----------------------------------------------
>   


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

Reply via email to