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 
never the enclosing tag. I've checked that with my eclipse debuger.

HTML:
        
                
                        
                                
                                
                        
                        
                        
                        
                        
                
        

The Label.java renderComponent method:
the class extends BaseComponent

  @Override
  protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle) {
    IComponent parent=getContainer();
    super.renderComponent(writer, cycle);
  }


-------------------- m2f --------------------

Sent from www.TapestryForums.com

Read this topic online here: <<topic_link>>

http://www.tapestryforums.com/viewtopic.php?p=14264#14264

-------------------- m2f --------------------


Reply via email to