Re: getContainer()

2006-02-03 Thread Kent Tong
drgorb tapestryforums.com> writes: > I try to use getContainer() inside a component to get at its parent, but the > method allways returns the page object, no matter what. Try: class Record ... { final static String KEY="ActiveRecord"; void prepareForRender(

Re: getContainer()

2006-02-02 Thread Konstantin Ignatyev
Very strange meaning then. Usually getContainer() or something like that means exactly that what drgorb expected. I would say that getContainer() name is misleading and should be changed. --- Mind Bridge <[EMAIL PROTECTED]> wrote: > I think you misunderstand the meaning of what >

Re: getContainer()

2006-02-02 Thread Mind Bridge
I think you misunderstand the meaning of what getContainer() does. Suppose page A includes component B in its template, and component B includes component C in its template in return. C.getContainer() will return the B component. On the other hand, if page A includes both components B and C

getContainer()

2006-02-02 Thread drgorb
Hi, I try to use getContainer() inside a component to get at its parent, but the method allways returns the page object, no matter what. Are ther special conditions for this to work? Is there special configuration? In the following example, the IComponent parent is allways the Home page and