Hi all,
I have some problems when dealing with the Zone component.
- We don't use prop binding in t:id parameter. However I see that
t:id parameter of the component is defined in source code like as other
parameters. so how to code to get t:id (or any parameter field) is not
used with "prop" binding?
- The getElementId method of Zone component alway return null (?) -
not same as other components (ex: actionlink)
Ex:
+ Index.tml
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
<head></head>
<body>
<t:zone t:id="tZone"></t:zone>
</body>
</html>
+ Hello.java
public class Hello {
@InjectComponent
private Zone tZone;
@AfterRender
void afterRender() {
System.out.println(">>>>>>>>> " + tZone.getClientId());
}
}
output: >>>>>>>>> null
Please give me some info or reference links to solve my problems.
Thanks.