[Seaside] Application level state

Philippe Marschall philippe.marschall at gmail.com
Sat Jul 22 18:52:08 UTC 2017

On Thu, Jul 20, 2017 at 7:50 PM, Bernhard Pieber <bernhard at pieber.com> wrote:
> Hi Philippe,
> Thanks for the reply. It is the business model of the application. Now I have a class called BpApplicationModel with a class variable default. On my components I have the following method:
> applicationModel
>         ^BpApplicationModel default
> I want to register the same application twice under different context paths using different BpApplicationModel instances. I could solve this with a dictionary singleton with the WAApplication as the key. However, it seems easier and cleaner if I could implement something like:
> applicationModel
>         ^self session application model

You could try to using the seaside configurations for this. A list
attribute with an options block that returns all applications models
may do it. As an example have a look at


More information about the seaside mailing list