Hello,
I almost converted my old T4 web app to T5, but stumbled upon one major
problem and I cannot find any help in mail list archive...
I'm using one page to edit whole class hierarchy (ie., multiple subclasses
of one superclass), and instantiation of specific subclass happens in
"onPrepare" method as typical based on some page activation context value.
My field inside my page is defined as superclass becase this page handles
whole hierarchy:
public MyEditPage {
....
@Property
private MySuperclass mySuperclass;
private void onPrepare() {
mySuperclass = (some condition) ? new Subclass1() : new Subclass2();
}
In template I have one textfield which is bound to property that is
contained only inside Subclass1, but since Tapestry introspects page at the
beggining searching for some invalid properties, and it cannot find this
property inside superclass, it raises exception saying it cannot find this
property!!! :-(
<t:texfield t:value="mySuperclass.someSubclass1Property"/>
I really hope that this thing is not impossible to do in T5..
-Vjeran
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org