Bug 897 - [error report widget] labelclass causes an error
: [error report widget] labelclass causes an error
Status: NEW
: Chameleon
Widget
: 1.99
: All All
: P2 normal
: FUTURE
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-12-14 11:24 by
Modified: 2005-01-11 08:23 (History)


Attachments


Note

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


Description From 2004-12-14 11:24:51
It is to use a link instead of a button for the error report, but it is not
possible to style it.  By removing any image and shared resource attributes from
the cwc tag and keeping the label tag chameleon will use the label as text for
the link instead of a button.  

After discussing this with Chris T. it seems that label in this case is part of
the button attribute group, and not the label attribute group, so none of the
label attributes are available, which means that you can't style the link.

It would seem that if the label attributes were made available for this widget
(and others like it?) fully instead of this partial fallback behaviour, that
there would then be competition for the attribute "label"
------- Comment #1 From 2005-01-11 08:23:08 -------
What you are seeing is the fallback behaviour of the button object.  The
ErrorReport widget does not include a label object, so the label attribute is
the label that should go on the button.  However, if you do not supply a
styleresource or an image, then the Button code cannot display anything for you.
 In this case, if you supply a label, it will display the label inside an href
so that you still get the functionality of the button.

This was not intended to be a real mode of operation for the Button widget.  I
think if we want to support this, we should rethink the attribute names to
provide more complete support for displaying buttons as links and include CSS
class/style support.

I'm open to suggestions.