is Ship <[EMAIL PROTECTED]>
To: Tapestry users
Sent: Monday, 9 April, 2007 4:22:25 PM
Subject: Re: Visit Object deprecated
In Tapestry 4, they are more generic, called "ASOs". You can think of
Visit as a legacy ASO, but it's better to create your own and name
them differently (n
In Tapestry 4, they are more generic, called "ASOs". You can think of
Visit as a legacy ASO, but it's better to create your own and name
them differently (no Visit) since that conflicts with a deprectated
method (Object getVisit()) on BasePage.
On 4/4/07, Gareth <[EMAIL PROTECTED]> wrote:
Are w
I would take a look at the 4th chapter in Kent Tong's book (first 4
chapters are free online). In that chapter he sets up an online
store, using a shopping cart as the ASO. I used this chapter a whole
lot when developing my first Tapestry app. Rename "cart" to "user",
and it starts feeling like
P.S. No one should have this issue with 4.1 as the visit and global objects
don't exist anymore. (The hivemind versions of course do exist)
On 6/1/06, Mário Lopes <[EMAIL PROTECTED]> wrote:
Yes, renaming actually did work.
Thank you very much for your kind help.
-- Mário
On 6/1/06, Andreas B
Yes, renaming actually did work.
Thank you very much for your kind help.
-- Mário
On 6/1/06, Andreas Bulling <[EMAIL PROTECTED]> wrote:
On 01. Jun 2006 - 16:39:06, James Carman wrote:
| Try renaming what you call the getter/setter. See what that does. There is
| a deprecated getVisit() metho
On 01. Jun 2006 - 16:39:06, James Carman wrote:
| Try renaming what you call the getter/setter. See what that does. There is
| a deprecated getVisit() method on IPage.
Yeah, I had the same problem once and renamed the getter to getVisitState()
which worked.
Cheers,
Andreas
--
Try renaming what you call the getter/setter. See what that does. There is
a deprecated getVisit() method on IPage.
-Original Message-
From: Mário Lopes [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 01, 2006 4:35 PM
To: Tapestry users
Subject: Re: Visit object
This is the error
This is the error reported
Error at context:/WEB-INF/Home.page, line 6, column 53: Method 'public
abstract com.icom.crm_feup.Visit com.icom.crm_feup.Home.getVisit()'
(declared in class com.icom.crm_feup.Home) has no implementation in
class com.icom.crm_feup.Home (or enhanced subclass $Home_0).
I
| Following your advice, I've created my own class, called Visit
| (original isn't it? :-) and added this to hivemind.xml
|
|
|
|
|
|
|
| This is the code I've used to try accessing the Visit object:
|
| @InjectState("user-visit")
| public abstract Visit getVisit();
|
| But it
On 6/1/06, Andreas Bulling <[EMAIL PROTECTED]> wrote:
On 01. Jun 2006 - 17:56:58, Mário Lopes wrote:
| Hi.
|
| I've been following Tapestry in Action to implement a Visit session
| object but I was unable to make it work. Declaring a getVisit(); as
| abstract and then calling it through Visit vis
On 01. Jun 2006 - 17:56:58, Mário Lopes wrote:
| Hi.
|
| I've been following Tapestry in Action to implement a Visit session
| object but I was unable to make it work. Declaring a getVisit(); as
| abstract and then calling it through Visit visit = (Visit) getVisit();
| seems to be deprecated.
Ins
The way to do it in T4 is to use the ASO approach.
You can inject the visit ASO like this:
@InjectState("visit")
public abstract YourVisitObject getVisit();
On 6/1/06, Mário Lopes <[EMAIL PROTECTED]> wrote:
Hi.
I've been following Tapestry in Action to implement a Visit session
object but
12 matches
Mail list logo