I have seen these two links and I am not able to understand. I have done the
following and still not able to get the visit object.

I have created a class with name Visit and configured that in the
FPS.application like the following

<meta key="org.apache.tapestry.visit-class"
value="com.tapestry.core.Visit"/>

I have created a custom base page which is FPSBase page in that the
following code has been written.

public abstract class FPSBasePage extends BasePage {
        
         @InjectState("visit")
          public abstract Visit getVisit();
        
        public String getCompanyName(){
                return
(String)getVisit().getAttribute("org.fps.companyName");
        }


}

And in the home class in public constructor of Home.java the following code
has been written

public Home() {
       getVisit().setAttribute("org.fps.companyName", "Kensium solutions"); 
   }

This creating aproblem. When I call the home page it is saying getVisit is
null. What is the problem.


Warm regards,
Muralidhar Y
[EMAIL PROTECTED]
 
US Main: 877 KENSIUM (536.7486)
India Main:  +91 9949495511
India Fax:   +91 9949495522
Kensium
200 S Wacker Dr, Suite 3100
Chicago, IL 60606
 
 
Confidentiality Note:
-----------------------------
The information contained in this e-mail is strictly confidential and for
the intended use of the addressee only. Any disclosure, use or copying of
the information by anyone other than the intended recipient is prohibited.
If you have received this message in error, please notify the sender
immediately by return e-mail and securely discard this message.
 
________________________________

 

-----Original Message-----
From: Andreas Andreou [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 04, 2008 3:57 PM
To: Tapestry users
Subject: Re: visit and global

http://tapestry.apache.org/tapestry4.1/usersguide/state.html
http://tapestry.apache.org/tapestry4.1/tapestry-annotations/index.html
(InjectState & InjectStateFlag)

On Tue, Nov 4, 2008 at 11:00 AM, Muralidhar Y <[EMAIL PROTECTED]>
wrote:
> Hi friends,
>
>                  From tapestry4.1 "getVisit() and getGlobal()" has been
> deprecated from AbstractPage". So how do we access  Visit and Global
> objects.
>
>
>
> Warm regards,
>
> Muralidhar Y
>
> [EMAIL PROTECTED]
>
>
>
> US Main: 877 KENSIUM (536.7486)
> India Main:  +91 9949495511
>
> India Fax:   +91 9949495522
>
> Kensium
>
> 200 S Wacker Dr, Suite 3100
>
> Chicago, IL 60606
>
>
>
>
>
> Confidentiality Note:
> -----------------------------
> The information contained in this e-mail is strictly confidential and for
> the intended use of the addressee only. Any disclosure, use or copying of
> the information by anyone other than the intended recipient is prohibited.
> If you have received this message in error, please notify the sender
> immediately by return e-mail and securely discard this message.
>
>
>
>  _____
>
>
>
>



-- 
Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

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