In Tapestry 4.0:
@InjectState("visit") // or <inject property="visit" type="state"
object="visit"/>
public abstract Visit getVisit();
A more realistic example:
@InjectState("registrationData")
public abstract RegistrationData getData();
On 7/24/05, Nick Westgate <[EMAIL PROTECTED]> wrote:
> Edward Scanzano <escanzano <at> yahoo.com> writes:
>
> >
> > Hi all,
> >
> > How can I access the Visit object from within a
> > component? getVisit() is not available for
> > BaseComponent.
> >
> > Thanks
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe <at> jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help <at> jakarta.apache.org
> >
> >
>
>
> Hi Edward.
>
> Through the page:
> getPage().getVisit()
>
> Cheers,
> Nick.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind
Professional Tapestry training, mentoring, support
and project work. http://howardlewisship.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]