Re: Visit Object deprecated

2007-04-10 Thread Gareth
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

Re: Visit Object deprecated

2007-04-09 Thread Howard Lewis Ship
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

Re: Visit Object deprecated

2007-04-09 Thread Daniel Jue
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

Re: Visit object

2006-06-01 Thread Jesse Kuhnert
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

Re: Visit object

2006-06-01 Thread Mário Lopes
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

Re: Visit object

2006-06-01 Thread Andreas Bulling
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 --

RE: Visit object

2006-06-01 Thread James Carman
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

Re: Visit object

2006-06-01 Thread Mário Lopes
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

Re: Visit object

2006-06-01 Thread Andreas Bulling
| 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

Re: Visit object

2006-06-01 Thread Mário Lopes
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

Re: Visit object

2006-06-01 Thread Andreas Bulling
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

Re: Visit object

2006-06-01 Thread Chris Chiappone
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