This works fine for me:

    <contribution configuration-id="tapestry.state.ApplicationObjects">
       <state-object name="userIdState" scope="session">
           <create-instance class="com...UserIdState"/>
       </state-object>
       <state-object name="advState" scope="session">
           <create-instance
               class="com....SelectedAdvertiserState"/>
       </state-object>
       <state-object name="publisherState" scope="session">
           <create-instance
               class="com...SelectedPublisherState"/>
       </state-object>
   </contribution>

On 12/1/06, NISHIMURA Toshio <[EMAIL PROTECTED]> wrote:
Hi, all.

I'm developping an application using Spring-2.0 + tapesty-4.0.2 +
tapestry-spring-1.0.0-SNAPSHOT.

I tried to use Application Status Object in this application, so I add
the XML block before the line of '</module>' in the  hivemind.xml;

     <contribution configuration-id="tapestry.state.ApplicationObjects">
        <state-object name="app.status" scope="session">
                <create-instance class="com.qb.test.AppStatus"/>
        </state-object>
     </contribution>

But the application wrote logs;

2006/12/01 18:47:44:750 JST [DEBUG] AbstractEngine - Uncaught exception
<org.apache.hivemind.ApplicationRuntimeException: 'app.status' is not a
declared application state
object.>org.apache.hivemind.ApplicationRuntimeException: 'app.status' is
not a declared application state object.
        at
org.apache.tapestry.engine.state.SOMRegistryImpl.get(SOMRegistryImpl.java:79)
        at
$StateObjectManagerRegistry_10f3d696101.get($StateObjectManagerRegistry_10f3d696101.java)
        at
$StateObjectManagerRegistry_10f3d696100.get($StateObjectManagerRegistry_10f3d696100.java)
        at
org.apache.tapestry.engine.state.ApplicationStateManagerImpl.get(ApplicationStateManagerImpl.java:60)
        at
$ApplicationStateManager_10f3d696071.get($ApplicationStateManager_10f3d696071.java)
        at
$ApplicationStateManager_10f3d696072.get($ApplicationStateManager_10f3d696072.java)

If you have developped the same construction, please let me know whether
     you could do or not.

Or please let me know the another way to use application status.

Thanks in advance,

Nishimura

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



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

Reply via email to