Hi!
I have this in hivemodule.xml:
<contribution configuration-id="tapestry.state.ApplicationObjects">
<state-object name="placeHolder" scope="session">
<create-instance class="com.data.DO"/>
</state-object>
</contribution>
And I have this in my page's spec:
<page-specification class="com.pages.myPage">
<inject property="myProp" type="state" object="placeHolder"/>
</page-specification>
Then, in my page (if I do not define any accessors), if I call
getMyProp(), I get a compiler error complaining about the unknown method
(no surprise there). But when I do add the accessors methods, at runtime
I get an ApplicationRuntimeException "unable to add method [...]
duplicate method". There's a little something I'm missing here, as per
the doc it is possible to inject a property AND define accessors for it
within my page.
So in order to move forward, I turned to using Hivemind directly:
DO holder = (DO)PropertyUtils.read(this, "myProp");
or
DO holder = (DO)PropertyUtils.read(this, "placeHolder");
and then in both cases I get a runtime exception saying it cannot find
my property :(
Yay. Any hints would be appreciated.
/Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]