[Chameleon-dev] [Bug 925] New: [Chameleon - Widget] Popup assumes
invalid attribute in SharedResource
bugzilla-daemon at maptools.org
bugzilla-daemon at maptools.org
Thu Jan 13 17:35:57 EST 2005
http://www.maptools.org/bugzilla/show_bug.cgi?id=925
Summary: [Chameleon - Widget] Popup assumes invalid attribute in
SharedResource
Product: Chameleon
Version: 2.0
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: P1
Component: Widget
AssignedTo: chameleon-dev at lists.maptools.org
ReportedBy: pspencer at dmsolutions.ca
CC: kueda at wso.williams.edu
Noted by -Ken-ichi ...
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?
My repsonse:
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.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Chameleon-dev
mailing list