[Laszlo-user] Problems with debug attribute in configuration file

P T Withington ptw at pobox.com
Tue Nov 25 04:05:50 PST 2008


The debug attribute has to be set at compile time -- it cannot be  
changed at run time.  You don't have to set it in the canvas though.   
It can be set as a query argument on the application URL:  ?debug=true.

On 2008-11-25, at 06:29EST, Tim Dauer wrote:

> Hi Laszlo-Users!
>
> I am using a configuration file which contains several constraints  
> that are needed in my laszlo application - it's like an properties  
> file. This file contains mostly attribute-TAGs and some resource- 
> tags. What I would like to do is to manage the debug-attribute of  
> the canvas in this configuration file. The problem is that, no  
> matter what I try, this attribute is not read out correctly.
>
> I tried to bind the attribute in the canvas-TAG by using something  
> like this
> <canvas debug="${canvas.isDebug}"... >
> and to add the attribute
> <attribute name="isDebug" type="boolean" value="true"/>
> in the configuration file which is included in the canvas-Class. No  
> luck.
>
> And I tried to overwrite the debug-Attribute like
> <attribute name="debug" type="boolean" value="true"/>
> Again: No luck.
>
> Neither of these approaches worked out. Do you have any ideas on how  
> to manage that issue in a configuration file? Or maybe this isn't  
> possible because of initialization issues of the canvas?
>
> Greets
> Tim



More information about the Laszlo-user mailing list