Hi,

i try to inject the Global object into my Page, but my injected Object is null.
I added this in my hivemodule.xml:

<contribution configuration-id="tapestry.state.ApplicationObjects">
     <state-object name="globalObject" scope="application">
         <create-instance class="my.package.Global"/>
     </state-object>
</contribution>

and this in my Page:

@InjectState("globalObject")
public abstract Global getGlobalObject();


I guess, this should work. When i use "getGlobalObject()" in my Page, the Object is null.
Whats wrong?!

(I use Tapestry 4.0 final. With the method "getGlobal()" from the Page it works, but the method is deprecated, so i want to
inject the Global object)

Best regards

Rudolf B.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to