Alec Leamas a écrit :
Hi!

What are you really trying to do here? For me, this looks like a typo.
Have you contributed an ApplicationStateObject? Then you need to refer to this. I'm pretty sure Tapestry doen't have a String ApplicationState object in place...

I would expect something like

@ApplicationState
private MyClass myInstance;

Where MyClass is contributed to ApplicationStateManager in AppModule.java.

Hope this helps..

--alec
Yep, you have to contribute like that :

public void contributeApplicationStateManager(MappedConfiguration<Class, ApplicationStateContribution> configuration) { configuration.add(SimExplorerState.class, new ApplicationStateContribution("session"));
   }

I was using a String as AS before, and it works until 5.0.10 without contributing.

Notice that you can store only one instance per class, so when you'll need anything else that your login, you will have to use a bean.

--
Gabriel <[EMAIL PROTECTED]>
http://www.codelutin.com
tel : 02 40 50 29 28 / fax : 09 59 92 29 28


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

Reply via email to