[Seaside] turning off the toolbar

Robert Sirois watchlala at hotmail.com
Fri Sep 16 14:18:53 UTC 2011


Remove WAToolDecoration (you'll see it on the config screen of your app).
RS

Date: Fri, 16 Sep 2011 10:14:33 -0400
From: ljw1001 at gmail.com
To: seaside at lists.squeakfoundation.org
Subject: [Seaside] turning off the toolbar

Hi, I want to test my app with the toolbar removed. I found several suggestions for doing this in the documentation that seem to be out of date. For example, from Dynamic Web Development with Seaside, I see:

Alternatively you can use the configuration interface: In the configuration of any application select Application Defaults and click on Configure. This opens an editor on the settings that are common to all registered applications. Remove WADevelopmentConfiguration from the list of inherited configurations.easide, 

However, there is no "application defaults" button on my config page.
Also I saw this suggestion, from the Seaside How To:

How do I remove the tool bar?
Set the value of "Deployment Mode" to true using the dispatcher editor in the application configuration. This can be also done programatically in the #initialize method of the application’s root component.
initialize

    | app |

    app := self registerAsApplication: 'app-name'.

    app preferenceAt: #deploymentMode put: true
When I do that, I get an error saying that the key #deploymentMode was not found.
The seaside book contains another approach, to execute: 
WAAdmin applicationDefaults
    removeParent: WADevelopmentConfiguration instance.
But I hesitate to do that one, since there's no instruction provided on how to un-do it later. 
Is there an easy way to do this so that the toolbar can be easily restored later?

thanks.

_______________________________________________
seaside mailing list
seaside at lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20110916/6881db53/attachment-0001.htm


More information about the seaside mailing list