Bug 133 - [Chameleon]CWCJSAPI Widget or SharedResource?
: [Chameleon]CWCJSAPI Widget or SharedResource?
Status: NEW
: Chameleon
Widget
: 1.99
: PC Windows 2000
: P3 normal
: FUTURE
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2003-11-18 14:53 by
Modified: 2004-11-04 18:13 (History)


Attachments


Note

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


Description From 2003-11-18 14:53:54
Can we really say in our documents that the CWCJSAPI is actually a widget?

I perssonnelly feel that this feature (extension) to Chameleon cannot be
described as a widget as it is in the Widget Docs. 

When reading the CWC2JavascriptAPI.html document it suggests that it is a major
enhancement and extension to the Core of Chameleon. The difference is that this
CWCJSAPI can be turned on or off by adding the <CWC2 TYPE="SharedResource"
NAME="CWCJSAPI"/> & <CWC2 Type="CWCJSAPI" DEBUG="False"/> to a template. Even
the tags themselves do not seem to make sense to me, from a users point of view. 

Here is what I suggest, that no longer should the CWCJSAPI be defined as a
WIDGET but rather a "Shared Resource" for all potential Widgets. This will mean
that we can remove the Widget tag and place the DEBUG parameter within the
Shared Resources. He is what it may look like:

<CWC2 TYPE="SharedResource" NAME="CWCJSAPI">
   DEBUG="[True|False"]
</CWC2>

These changes should be reflected in the documentation. But first There should
be a Shared Resources Doc or Section.
------- Comment #1 From 2003-11-18 16:43:45 -------
Chris, the JSAPI is an extension to the Chameleon user interface in the same way
as every other widget, albeit somewhat more extensive than others.

It is not currently possible to do what you suggest, and I do not believe that
this would ever be a technically sound thing to attempt to do.

One thing that would make more sense, and this is possible, is to remove the
requirement for a SharedResource ... and only provide a single widget tag for
this functionality.
------- Comment #2 From 2003-11-19 09:23:37 -------
Ok, One tag instead of two. I like it!
------- Comment #3 From 2004-04-06 13:29:24 -------
to do for 1.99 ... in InitDefaults of CWCJSAPI widget, create a new element in
the maszSharedResource array as it would be created by the parser if it found
the sharedresource tag in the page, with debug set to false.  Test to see if
this works and test to see if adding a CWCJSAPI sharedresource with debug=true
generates the right result.
------- Comment #4 From 2004-04-08 08:35:21 -------
updated version to 1.99
------- Comment #5 From 2004-04-16 15:15:06 -------
Looking at it.
------- Comment #6 From 2004-04-19 09:20:43 -------
Thought the xml widget docs we have accounted for this variable. I have spoken
with Norm and Sacha about this and have agreed on a plan. Please review new
widget doc structure currently found under:

https://www.lan.dmsolutions.ca/dminternal/wiki/index.php?pagename=QAChameleon

Currently under review at time of filing this comment.
------- Comment #7 From 2004-05-03 16:18:27 -------
Changed Target Milestone to 1.99 RC
------- Comment #8 From 2004-11-04 18:13:56 -------
comment #3 doesn't seem to have been acted on yet.  Not sure about the
documentation issue.  In any case, this is for the FUTURE :)