Bug 127 - [Chameleon] Widget Path Parameters "Relative to What?"
: [Chameleon] Widget Path Parameters "Relative to What?"
Status: ASSIGNED
: Chameleon
Widget
: 1.99
: PC Windows 2000
: P2 normal
: FUTURE
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2003-11-17 10:51 by
Modified: 2005-01-11 12:30 (History)


Attachments


Note

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


Description From 2003-11-17 10:51:29
Golden Widget Rule #7: bug 97 comment 3

Widget Parameters that deal with paths should always be relative to the template
the user is building. eg. "./images/icon_*.png Otherwise if it is an image that
is found under the chameleon application eg /htdocs/images/icon_*.png this
should be a url. This is even if it is on the same server. To many times the
image path causes the biggest confusion for users, and varies greatly from
widget to widget is located....

I am expecting a stink about the above comment from the developers, but I only
wish to get feed back on this major limitation to the usability of this
technology. Thanks
------- Comment #1 From 2004-04-06 13:23:40 -------
The new button architecture works like this:

* if reference is absolute then the image is left alone and assumed to be in the
location specified.

* if the reference is relative then the code tries to find the image in the
following locations:

  - relative to application directory
  - relative to the application's web path
  - relative to chameleon

so if you say 'images/icon_query.png' and this is not in your application then
it will use the icon_query from chameleon.  But if it is in your application
then it will the one in your application.

All image paths related to buttons are handled consistently in this way.  Other
widgets should also work this way and if they don't then it is a bug and should
be filed when found.

Widget documentation should be updated to reflect the above (for Button
attributes for images/fonts) for 1.99 release

The Widget development documentation should reflect the same rule, bug can be
closed once that is written.
------- Comment #2 From 2004-04-06 13:31:16 -------
excellent!  accepting bug
------- Comment #3 From 2004-04-08 08:38:21 -------
updated version to 1.99
------- Comment #4 From 2004-04-19 16:00:16 -------
Question and comment about this process.

If chameleon cannot find the image I specify, does that get reported to the
error widget to let me know I have done something wrong? If not, I think it
sould do this too.
------- Comment #5 From 2004-04-20 15:44:43 -------
I don't think it does, you should probably file a separate bug for this since it
is a new feature.
------- Comment #6 From 2004-04-21 15:51:50 -------
filed bug 362 as an enhancement to discuss my prevuious comment
------- Comment #7 From 2004-07-08 09:43:37 -------
Changed target to 1.99 Final
------- Comment #8 From 2005-01-11 12:30:43 -------
There is nothing in the Application Developer's Guide on skinning, which there
should be and it would include this.  Post 2.0 I guess.