I haven't looked at the code, but I suspect that the targetModel is not defined in the widget you are using. (some parameters are defined for all widgets, some are not).
Have a look at a widget which uses targetModel, then copy the targetModel initialisation into your widget. Ryan Moquin wrote: > I'm trying to figure out how to associate a gml model in my mapbuilder > config (the gml is a feature without a geometry) to another gml model > I have defined. Basically, both feature ids for both models > correlate, so I was trying to take the FeatureList control > modifications from the MergeModels example and see if I could have the > model that doesn't have a geometry cause the model that does have a > geometry to highlight on the map, by relating the feature ids. I was > trying to do this by using targetModel to point to my Model that > contains features with geometries, but the targetModel doesn't take > effect. Can the targetModel be used that way? I'm a little confused > on what I would need to do to apply the style sheet to one model, but > tell the features in another model to highlight that have the same > feature id. > > I can post an example, but there isn't much to it other than inserting > a <targetModel>othermodelid</targetModel> into my FeatureList widget. > > Anywhere someone can point me to get more information on how to do > this? I think it mostly has to do with my difficulties in > understanding whole widget system itself works. > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > ------------------------------------------------------------------------ > > _______________________________________________ > Mapbuilder-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mapbuilder-users > -- Cameron Shorter Geospatial Systems Architect Tel: +61 (0)2 8570 5050 Mob: +61 (0)419 142 254 Think Globally, Fix Locally Commercial Support for Geospatial Open Source Solutions http://www.lisasoft.com/LISAsoft/SupportedProducts.html ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Mapbuilder-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mapbuilder-users
