You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by hl...@comcast.net on 2003/11/21 19:30:45 UTC
Re: IEngine Interface from BaseComponent problem
getPage().getEngine()
Every component on a page has a reference back to the page, and the page has the reference to the engine (as well as the Visit object, and the Global object).
--
Java Web
Components
http://jakarta.apache.org/tapestry
> I am writing a component that will represent a form widget that I wish to
> use in several pages. My component is a subclass of
> org.apache.tapestry.BaseComponent
>
> In my component, I need a reference to the global application object. If
> this particular component were extending BasePage, I would call
> "getGlobal()"
> However, since I am extending BaseComponent, this interface is not
> implemented for me.
>
> Any pointers on how to proceed? Should I not extend BaseComponent but
> something else? How would I implement IEngine interface in my subclass?
>
> Thanks!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org