You need to log in before you can comment on or make changes to this bug.
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.
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.
Ok, One tag instead of two. I like it!
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.
updated version to 1.99
Looking at it.
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.
Changed Target Milestone to 1.99 RC
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 :)