I am trying to figure out why the ListItem passed to FeatureResourceConfigurationPanel.populateItem contains only the unqualified name of the attribute, not the namespace, but I have been unable to figure out what triggers this panel and how its argument is constructed. Wicket code doesn't respond well to searches in Eclipse. Could someone give me a hint please?
Thanks, Tara
--
Tara Athan
Owner, Athan Ecological Reconciliation Services
tara_athan at alt2is.com
707-272-2115 (cell, preferred)
707-485-1198 (office)
249 W. Gobbi St. #A
Ukiah, CA 95482
On Wed, Oct 6, 2010 at 9:15 PM, Tara Athan <taraathan@anonymised.com> wrote:
I am trying to figure out why the ListItem passed to
FeatureResourceConfigurationPanel.populateItem contains only the
unqualified name of the attribute, not the namespace, but I have been
unable to figure out what triggers this panel and how its argument is
constructed. Wicket code doesn’t respond well to searches in Eclipse.
Could someone give me a hint please?
Simple, because the relevant bit of GeoServer configuration model, AttributeTypeInfo,
does not have the faintest idea about namespaces.
GeoServer was built for simple features and it being (slowly) adapted to
complex ones.
I guess that panel could be recoded to follow the feature type generated by
FeatureTypeInfo instead of the config attributes.
Cheers
Andrea
Thanks, Tara
–
Tara Athan
Owner, Athan Ecological Reconciliation Services
tara_athan at alt2is.com
707-272-2115 (cell, preferred)
707-485-1198 (office)
249 W. Gobbi St. #A
Ukiah, CA 95482
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
Geoserver-devel mailing list
Geoserver-devel@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
–
Ing. Andrea Aime
Senior Software Engineer
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584962313
fax: +39 0584962313
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
OK, let me see if I have this figured out now.
FeatureResourceConfigurationPanel’s constructor overrides the getModel method using a call to
ResourcePool.getAttributes(FeatureTypeInfo), which returns an AttributeTypeInfo, and this causes the namespaces to be lost.
ResourcePool.getAttributes is a public method, so I assume making any change in that would be a bad thing.
So would it make sense to introduce another method, something like ResourcePool.getChildren(FeatureTypeInfo)
which returns a List, and use that in FeatureResourceConfigurationPanel instead?
Andrea Aime wrote:
···
--
Tara Athan
Owner, Athan Ecological Reconciliation Services
tara_athan at alt2is.com
707-272-2115 (cell, preferred)
707-485-1198 (office)
249 W. Gobbi St. #A
Ukiah, CA 95482