[Chameleon] JSAPI widget does not cooperate with existing widgets

Bart van den Eijnden (OSGIS) bartvde at osgis.nl
Mon Oct 30 03:24:34 EST 2006


Hi Jacob, Joukje,

my understanding of the problem is, that since widgets in UpdateMap.php are
not constructed through the WidgetManager, they don't have access to their
parameters as specified in the HTML template.

If I understand the whole system correctly, those parameters need to be put
to javascript variables (or hidden inputs), and explicitly send to the
UpdateMap.php using the aHiddenVars javascript array. This is difficult if
you have implemented you're own navtools, since you would need to update
CWCUpdateNavTools as well I guess.

This would mean some structural changes in existing widgets, but that's
something you have to take into account when doing JSAPI.

Best regards,
Bart

--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl


--------- Oorspronkelijk bericht --------
Van: Delfos, Jacob <Jacob.Delfos at maunsell.com>
Naar: Joukje de Haan <joukje.de.haan at aris.nl>, chameleon at lists.maptools.org
<chameleon at lists.maptools.org>
Onderwerp: RE: [Chameleon] JSAPI widget does not cooperate with existing
widgets
Datum: 30/10/06 06:08

> Hi Joukje,
> 
> I use the JSAPI all the time, and have not run into those problems. Do
> you also encounter these problems in the standard chameleon samples?
> 
> Regards,
> 
> Jacob
> 
>  
> 
> &gt; -----Original Message-----
> &gt; From: chameleon-bounces at lists.maptools.org 
> &gt; [mailto:chameleon-bounces at lists.maptools.org] On Behalf Of 
> &gt; Joukje de Haan
> &gt; Sent: 27 October 2006 18:18
> &gt; To: chameleon at lists.maptools.org
> &gt; Subject: [Chameleon] JSAPI widget does not cooperate with 
> &gt; existing widgets
> &gt; 
> &gt; Hello List,
> &gt; 
> &gt; I have an application with some widgets made specific for 
> &gt; that application. I 
> &gt; would like to use the JSAPI widget with that application, but 
> &gt; since I added the 
> &gt; JSAPI all the older widgets don't work correct anymore.
> &gt; My problems are:
> &gt; - attributes / parameters are empty by the time the widget is 
> &gt; used (i solved 
> &gt; this by using hardcoded attributes)
> &gt; - the behaviour of the widget is unpredictable (for example: 
> &gt; a select-widget 
> &gt; should renew the selection everytime it is used, instead it 
> &gt; sometimes renews the 
> &gt; selection and sometimes adds to the selection)
> &gt; 
> &gt; Is there a way of adapting the widget so it works with the 
> &gt; jsapi without 
> &gt; rewriting it completely?
> &gt; 
> &gt; Any help is appreciated!
> &gt; Joukje
> &gt; 
> &gt; 
> &gt; _______________________________________________
> &gt; Chameleon mailing list
> &gt; Chameleon at lists.maptools.org
> &gt; http://lists.maptools.org/mailman/listinfo/chameleon
> &gt; 
> 
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
> 
> 





More information about the Chameleon mailing list