Dynamically add/remove the Seaside's toolbar on an application
This blog post was written a long time ago and may not reflect my current opinion or might be technically out of date. Read with a grain of salt.
Written on July 13, 2011.
I wanted to display or hide the tool bar on a Seaside application. It turned out to be pretty simple.
To remove it:
app configuration at: #rootDecorationClasses addAll: #() removeAll: (Array with: WAToolDecoration)
And to show it:
app configuration at: #rootDecorationClasses addAll: (Array with: WAToolDecoration)
Another useful snippet to retrieve an application from its name:
WAAdmin defaultDispatcher handlerAt: 'wapict'
Seasiders won’t find this exciting but this post is more a reminder for myself than anything else. If I’m doing something overcomplicated for nothing, shout my ignorance in the comments ;)