Bug 981 - [Chameleon - Widget] No error captured when <image/> IS defined and shared resource is NOT defined
: [Chameleon - Widget] No error captured when <image/> IS defined and shared re...
Status: NEW
: Chameleon
Core
: 2.0
: PC Windows XP
: P2 normal
: ---
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2005-03-03 14:02 by
Modified: 2005-03-08 13:41 (History)


Attachments


Note

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


Description From 2005-03-03 14:02:50
When building a chameleon template using a service in stance the following issue
occurred:

1 added a mapdhtml widget. context map is displayed
2 add zoomin widget. when the zoomin tag is defined with the sub tag <image/>
(see below). when the user tries to zoom the app fails.

The three tag structure below one of them only works when the Textbutton shared
resource is defined.


Tag Structure 1:
---------------
if the zoomin widget is defined as:

<cwc2 type="ZoomIn" visible="true" image="buttons/button_zoomin_1.png"
imagewidth="24" imageheight="24" imagetip="Zoom In" toolset="Navigation"
default="true"/>

Tag Structure 2:
---------------
if the images are defined for different states with no "state" sub tag attribute
the application works, but the button image is always based on the last <image/>
sub tag defined, in this case it always shows the pushed in "selected" button. 


<cwc2 type="ZoomIn" visible="true" imagewidth="24" imageheight="24"
imagetip="Zoom In" toolset="Navigation" default="true">
   <image image="buttons/button_zoomin_1.png"/>
   <image image="buttons/button_zoomin_2.png"/>
   <image image="buttons/button_zoomin_3.png"/>
</cwc2>

Tag structure 3: 
----------------
No shared resource but the state sub tag attribute is defined. This creates the
failure because in the template there is no default "Textbutton" shared resource.

<cwc2 type="ZoomIn" visible="true" imagewidth="24" imageheight="24"
imagetip="Zoom In" toolset="Navigation" default="true">
  <image state="normal" image="buttons/button_zoomin_1.png"/>
  <image state="hover" image="buttons/button_zoomin_2.png"/>
  <image state="selected" image="buttons/button_zoomin_3.png"/>
</cwc2>

In both Tag structure 2 and 3 there should be some error captured for the
application developer stating the dependency of the <image/> sub tag to contain
button states, which results in the dependency for the "Textbutton" shared
resource to be defined.

Last comment: Ideally you should be able to set the state of an image without
using the shared resource.
------- Comment #1 From 2005-03-08 13:41:22 -------
ok, this is more of a serious bug than I originally understood. all buttons that
use the button shared resource are dependent on setting up the default
"Textbutton" shared resource in the template. even the following tag structure
that is only using the <cwc2 image=""/>

<cwc2 type="ZoomIn" 
  visible="true" 
  imagewidth="24" 
  imageheight="24" 
  image="buttons/button_zoomin_1.png" 
  imagetip="Zoom In" toolset="Navigation" 
  default="true"/>