Hi all,

Prior to 5.1 in places I used the prefix "inherit:" in my templates which 
seemed to work quite well. Although it is not listed as a standard binding 
prefix, it is used as a special case... a mention of it is made here: 
http://tapestry.formos.com/nightly/tapestry5/guide/parameters.html 

In 5.1 it seems that it no longer working as I expected, I get the feeling I 
should no longer be duplicating the property in parent and child, but I have 
looked through the release notes but could not find any clue as to what may 
have changed. 

I also noticed this: 
http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/annotations/Component.html#publishParameters(),
 so I am wandering what the correct approach is now. 

Here is an example for clarity. In my containing component is the following 
method, which is also duplicated in the child component:

@Parameter(name = "contextVariables")
private List<?> contextVariables_;

And then I have for example in my tml:
<t:header contextVariables="inherit:contextVariables"/>

So I could propagate these parameters... I also use a custom annotation to bind 
these parameters whenever I need them, for example I have a bread-crumb 
component that uses them as follows:

@Target(TYPE)
@Retention(RUNTIME)
@Documented
public @interface ContextVariables { ... }

Any help on fixing this would be greatly appreciated!

Thanks,
Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to