Hi,

I have a nested layout component and I'd like to pass a parameter from the
child to the parent, here are the codes/templates:
                
The parent component:

template:
<html xmlns:t="...">
<head><title>${title}</title></head>
<body>
    <t:body></t:body>
</body>
</html>

public class MLayout {
    @Parameter
    private String _title;
    public String getTitle() {return  _title;}
    public void setTitle(String title) {this._title = title;}
}

To use the above layout, I can do something as follow, passing the title as
parameter:    

<t:mlayout  t:title="literal:My Page" xmlns:t="...">
</t:mlayou>

So far so good, Now I have a need to create another layout component from
the MLayout, let's call it MLayoutNew:  

public class MLayoutNew {
}

template is:
<t:mlayout  xmlns:t="...">     
        <t:body></t:body>
</t:mlayout>              

To use this nested layout component, I have following template:
<t:mlayoutNew  t:title="literal:My Page new" xmlns:t="...">
</t:mlayoutNew>                                          

but the title is blank, any helps? Thanks,
A.C.


-- 
View this message in context: 
http://www.nabble.com/T5%3Apassing-parameter-from-a-nested-layout-component-tf4625129.html#a13208405
Sent from the Tapestry - User mailing list archive at Nabble.com.


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

Reply via email to