[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
>
>
>
> > -----Original Message-----
> > From: chameleon-bounces at lists.maptools.org
> > [mailto:chameleon-bounces at lists.maptools.org] On Behalf Of
> > Joukje de Haan
> > Sent: 27 October 2006 18:18
> > To: chameleon at lists.maptools.org
> > 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
> > Chameleon at lists.maptools.org
> > http://lists.maptools.org/mailman/listinfo/chameleon
> >
>
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
>
>
More information about the Chameleon
mailing list