[ http://issues.apache.org/jira/browse/TAPESTRY-362?page=all ]
Howard M. Lewis Ship resolved TAPESTRY-362:
-------------------------------------------
Resolution: Invalid
I'm makring the getGlobal() and getVisit() methods as deprecated, and adding a
warning to not inject state objects as those properties.
> Can't seem to have two application state objects, one with a session scope
> and one with an application scope. I can use one or the other but not both.
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: TAPESTRY-362
> URL: http://issues.apache.org/jira/browse/TAPESTRY-362
> Project: Tapestry
> Type: Bug
> Components: Annotations
> Versions: 4.0
> Reporter: Scott Walter
>
> Can't seem to have two application state objects, one with a session scope
> and one with an application scope. I can use one or the other but not both.
> When I use 2 application state objects, I get this error:
> Error: Method 'public abstract com.scottwalter.sandbox.tapestry4.Global
> com.scottwalter.sandbox.tapestry4.pages.Home.getGlobal()' (declared in class
> com.scottwalter.sandbox.tapestry4.pages.Home) has no implementation in class
> com.scottwalter.sandbox.tapestry4.pages.Home (or enhanced subclass $Home_0)
> Here is my hivemodule.xml:
> <?xml version="1.0"?>
> <module id="tapestry4sandbox" version="1.0.0"
> package="com.scottwalter.sandbox.tapestry4">
> <contribution configuration-id="tapestry.state.ApplicationObjects">
> <state-object name="visit" scope="session">
> <create-instance class="com.scottwalter.sandbox.tapestry4.Visit"/>
> </state-object> </contribution>
> <contribution configuration-id="tapestry.state.ApplicationObjects">
> <state-object name="global" scope="application">
> <create-instance class="com.scottwalter.sandbox.tapestry4.Global"/>
> </state-object> </contribution> </module>
> Here is a snippet from my page
> @InjectState("visit")
> public abstract Visit getVisit();
> @InjectState("global")
> public abstract Global getGlobal();
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]