[Chameleon-dev] [Bug 516] New: [Chameleon]HelpWidget popup
displayed error when widgets definition is in application directory
bugzilla-daemon at www.maptools.org
bugzilla-daemon at www.maptools.org
Tue Jul 13 14:20:48 EDT 2004
http://www.maptools.org/bugzilla/show_bug.cgi?id=516
Summary: [Chameleon]HelpWidget popup displayed error when widgets
definition is in application directory
Product: Chameleon
Version: 1.99
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Widget
AssignedTo: chameleon-dev at lists.maptools.org
ReportedBy: nsavard at dmsolutions.ca
When the "HelpWidget" is set in a popup and widget definitions to show help for
are located in a different directory than Chameleon base installation, error
report is displayed.
Noticed that when widget definitions are located in Chameleon base installation,
the "HelpWidget" displays help as expected.
I modified the hawaii demo found on xcalibur as follow to execute this test:
1. Added the following lines in the "hawaii_demo.html" (This file is in the
attached):
<!-- ------------------ -->
<!-- HELP AREA BEGINS -->
<!-- ------------------ -->
<tr>
<td width="30"><a href="javascript:openPopupHelp()"><img
src="images/cwc_buttons/tool_legend_1.png" width="88" height="22" border="0"
alt="Help" title="Help"></a></td>
<td><font face="Arial,Helvetica,sans-serif" size="1"
color="#666666">Help</font></td>
</tr>
2. Added the following JS function in "hawaii_demo.html" template:
openPopupHelp()
{
window.open('help.phtml','PopupHelp','width=500,height=400,resizable=yes,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no');
}
3. Created a "help.phtml" file (in the attached).
4. Created a "hawaii_help_popup.html" file (in the attached).
5. Made a new widgets directory called "widgets_norm".
6. Moved the "HelpWidget" directory into this new directory "widgets_norm".
7. Modified the "CWCExecute function to include the new widgets path:
$oApp->CWCExecute("/path/to/hawaii_chameleon/htdocs/widgets_norm/");
8. Loaded "index.phtml".
9. Click on the "Legend" button (I used the "Legend" button image for the help.)
10. Errors are reported.
Fedora Core 2 Chameleon 20040709.
----------------------
Error reported:
* "ERROR: Widget Definition for class '' not found (tag is <CWC2
TYPE="HelpWidget" VISIBLE="TRUE" ENABLED="TRUE" WIDGET="Extent"/>).
* "ERROR: Widget Definition for class '' not found (tag is <CWC2
TYPE="HelpWidget" VISIBLE="TRUE" ENABLED="TRUE" WIDGET="HelpWidget"/>).
------- 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