Bug 621 - ENABLED attribute not working in widgets
: ENABLED attribute not working in widgets
Status: CLOSED FIXED
: Chameleon
Core
: 1.99
: PC Windows XP
: P2 normal
: 1.99 beta 3
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-08-19 14:21 by
Modified: 2004-10-27 13:29 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2004-08-19 14:21:10
The 'ENABLED' attribute in widget tags is not having an effect on widgets.
------- Comment #1 From 2004-08-24 13:18:09 -------
Changed target to 1.99 beta 3.
------- Comment #2 From 2004-10-07 08:09:08 -------
taking this one
------- Comment #3 From 2004-10-07 08:10:00 -------
working on it now ...
------- Comment #4 From 2004-10-07 08:26:50 -------
ENABLED now works, setting enabled="false" will essentially remove the widget
from all processing including getting drawn.  Disabled widgets will be output
into the template as an html comment, as in:

<!--<cwc2 enabled="true" type="Title" label="Chameleon Sample - Base Widgets"
labelclass="title"/>-->

It also removes all javascript and html form vars associated with the widget. 
Use with caution.

fix is in cvs.
------- Comment #5 From 2004-10-26 08:58:46 -------
* I set the query widget in nav_basic.html enable="false"
* loaded: http://localhost/chameleon/samples/sample_enhanced.phtml

The Identify tool no longer works and when viewing source the widget tag Query
is commented out. 

verified on windows using beta3 20041022

set to verified
------- Comment #6 From 2004-10-27 12:29:32 -------
It is not working as expected on Fedora Core 2 and Chameleon beta 3 20041022.  I
followed Chris procedure (comment #5) but the query widget is still working. 
See widget attributes settings below.


------------------------
Attribute settings:

      <!-- QUERY -->
      <td><cwc2 type="Query" visible="true"  enable="false" imagetip="Identify
Feature" PopupWidth="500" PopupHeight="600" Toolbar="false" Status="false"
Menubar="false" RADIUS="3" MAXFEATURES="5" image="icons/icon_query.png"
toolset="Navigation" styleresource="NavButtons" popupstyleresource="TextButtons"
highlightresults="false" popupresults="true" allowrectangle="true"
persistentresults="true" submitpage="false">
              <image state="normal"/>
              <image state="hover"/>
              <image state="selected"/>
          </cwc2></td>
 
------- Comment #7 From 2004-10-27 13:07:07 -------
see summary.  Attribute name is ENABLED, not ENABLE.
------- Comment #8 From 2004-10-27 13:29:19 -------
Verified on Fedora Core 2.  I need to ready more carefully.