Menu

#2 Widget class never sets storage attributes

open
nobody
None
5
2004-09-10
2004-09-10
Johan
No

In Widget.java function setAttributes(),
storage.setAttributes(attributes,attributeTypes) is
never called which results in no table in the permanent
storage.

I have added the following two lines inside the "if" to
in order for it to work:
if (storage != null)
storage.setAttributes(attributes,attributeTypes);

the whole function thereby looks as follows:

protected void setAttributes(Attributes atts) {
attributes = atts;
if (attributes != null) {
attributeTypes = attributes.toTypesHashtable();

if (storage != null)

storage.setAttributes(attributes,attributeTypes);

} else {
attributeTypes = null;
}
}

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.