hi Robin,

maybe the thread http://markmail.org/message/gwnq5npogomlk6ae helps.

the common answer in this cases is to use/favour composition over 
inheritance

maybe it is a bug afterall; i almost never use component inheritance in my 
T5 projects

g,
kris



Von:    Robin Komiwes <robin.komi...@gmail.com>
An:     Tapestry users <users@tapestry.apache.org>
Datum:  10.05.2010 10:53
Betreff:        Component extension and default parameter value overriding
Gesendet von:   odiss...@gmail.com



Hi there,


Here is my problem, please tell me if I'm missing something or if I've
encountred a bug:

Here are two components definition :

public class MyComponent
{
    @Parameter(value = "literal:something")
private String myParam;
}

public class MyExtendedComponent extends MyComponent
{
    @Parameter(value = "literal:newThing")
private String myParam;
}

When using MyExtendedComponent, I expected to have myParam set by default 
to
"newThing", but it is still equals to "something".

Any pointers?

Reply via email to