You can have it "injected" into something via a .page/.jwc file by
doing something like:

<inject property="registration" type="state" object="registration-data"/>

(http://tapestry.apache.org/tapestry4.1/usersguide/state.html) or you
use an annotation to do the same:

@InjectState
 public abstract MyAppVisit getVisit();

http://tapestry.apache.org/tapestry4.1/tapestry-annotations/index.html#InjectState

On 12/8/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
Thanks, I'll start tackling the hivemodule.xml I suppose to just create an 
instance of my class instead of whatever default Visit tap provides.

How do I go about actually retrieving this object with Hivemind?

Wh

-----Original Message-----
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
Sent: Friday, December 08, 2006 3:11 PM
To: Tapestry users
Subject: Re: Getting rid of .getVisit()


I'll have to check into that particular claim in the current
documentation to be sure. Previously I think a HashMap was created by
default but since removal of the (as of 4.0 deprecated visit)
functionality all of that logic may be moot.

An easy example of doing this can be found here, you want to look at
the very first block of xml in the file for <configuration> :

http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-examples/Workbench/src/context/WEB-INF/hivemodule.xml?view=markup

I'll gmail start this email either way and try to make sure that page
of documentation is updated , as well as hopefully providing a
friendlier online example than that had by browsing svn source.

On 12/8/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Alright so I'm making the jump to 4.1, which totally kills 
BasePage.getVisit()! I knew I should of cleaned up my act in 4.0 :)
>
> Can anyone help me switch over? I'm reading this page
>
> http://tapestry.apache.org/tapestry4.1/usersguide/state.html#state.aso
>
> I'm confused if I need to actually do some hivemind stuff.. it says it still 
provides a default Visit object... so can I use that default object somehow?
>
> Thanks,
> Greg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

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




--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to