Hi, I'm a newbie in tapestry
I have a component Drapeau that embed 3 others components of type Couleur
all the Couleur components in any phase of the Drapeau render process
appear to be null in my debugger.
Drapeau.html
==========
<span xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
This is a flag
<t:Couleur id="couleur1"> Couleur 1 </t:Couleur>
<t:Couleur id="couleur2"> Couleur 2 </t:Couleur>
<t:Couleur id="couleur3"> Couleur 3 </t:Couleur>
<t:body/>
</span>
Drapeau.java
==========
public class Drapeau {
@Component(id="couleur1")
Couleur couleur1;
@Component(id="couleur2")
Couleur couleur2;
@Component(id="couleur3")
Couleur couleur3;
@BeforeRender
public boolean beforeRender(MarkupWriter writer){
return true;
}
... other phases ...
}
And in my page Root.html
<t:Drapeau> bla </t:Drapeau>
The Drapeau is rendered fine (I mean with the three Couleurs) in the
browser but I really don't see how the Drapeau Component can collaborate
with the Couleur components.
Thanks.
--
Michael Courcy
http://courcy.blogspot.com