[Chameleon] popupcss shareattribute broken?

Paul Spencer pspencer at dmsolutions.ca
Thu Jan 13 17:35:07 EST 2005


Opps.  The issue here is that Chameleon will now emit warnings if you 
use invalid attributes in widgets.  In this case, VALUE is not declared 
as an official attribute of the SharedResource widget, hence the 
warning.  However, the Popup.php code assumes that value is set.  Right 
now, if you didn't include an errorreport widget, all would work 
wonderfully and you just wouldn't see the warning.

The quick fix is to add the VALUE attribute to SharedResource.  I'm not 
sure if that is the right fix, however.  I'll give it some thought and 
commit a fix shortly.

recorded in http://www.maptools.org/bugzilla/show_bug.cgi?id=925

Cheers

Paul

Ken-ichi wrote:
> Hi all.  I'm trying to set the PopupCSS SharedResource like this
> 
> <cwc2 type="SharedResource" name="PopupCSS" 
> value="/absolute/or/relative/path/to/popup.css"/>
> 
> but I get this warning
> 
> WARNING: following attributes are invalid for a sharedresource widget: 
> VALUE. The widget tag was: <cwc2 type="SharedResource" name="PopupCSS" 
> value="/absolute/or/relative/path/to/popup.css"/>
> 
> I'm running Chameleon 2.0.  Was the syntax for this changed for 2.0, or 
> am I missing something?
> 
> Thanks.
> 
> -Ken-ichi
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
> 

-- 
+-----------------------------------------------------------------+
|Paul Spencer                           pspencer at dmsolutions.ca   |
+-----------------------------------------------------------------+
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+


More information about the Chameleon mailing list