RE: JSAPI widget does not cooperate with existing widgets

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

RE: JSAPI widget does not cooperate with existing widgets

Delfos, Jacob
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

 

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

_______________________________________________
Chameleon mailing list
[hidden email]
http://lists.maptools.org/mailman/listinfo/chameleon
Reply | Threaded
Open this post in threaded view
|

RE: JSAPI widget does not cooperate with existing widgets

Bart van den Eijnden
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 <[hidden email]>
Naar: Joukje de Haan <[hidden email]>, [hidden email]
<[hidden email]>
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: [hidden email]
> &gt; [mailto:[hidden email]] On Behalf Of
> &gt; Joukje de Haan
> &gt; Sent: 27 October 2006 18:18
> &gt; To: [hidden email]
> &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; [hidden email]
> &gt; http://lists.maptools.org/mailman/listinfo/chameleon
> &gt;
>
> _______________________________________________
> Chameleon mailing list
> [hidden email]
> http://lists.maptools.org/mailman/listinfo/chameleon
>
>



_______________________________________________
Chameleon mailing list
[hidden email]
http://lists.maptools.org/mailman/listinfo/chameleon