I cannot wait so I've tried to take a look at the GeoServer source..
Working with the class: *org.geoserver.template.FeatureWrapper*
I changed the catalog from catalog2 to catalog and now it works fine.
private Catalog getCatalog() {
if (gsCatalog != null)
return gsCatalog;
try {
//return (gsCatalog =
(Catalog)GeoServerExtensions.bean("catalog2"));
return (gsCatalog = (Catalog)GeoServerExtensions.bean("catalog"));
} catch (NoSuchBeanDefinitionException e){
return null;
}
}
Tested on my GeoServer deployment forks just fine.. Can that be the right
solution?
Cheers
Milan
On 15 November 2011 11:07, Milan Antonovic <[email protected]>wrote:
> Hi list,
> What happened to the WMS GetFeatureInfo response Freemarker template?
>
> In GeoServer 1.7.4 it worked fine my content.ftl file:
>
> <#list features as feature>
> <table class="featureInfo">
> <caption class="featureInfo">${feature.type.title}</caption>
> <#list feature.attributes as attribute>
> <tr id="${feature.fid}" style="font-size: 12px;">
> <#if !attribute.isGeometry>
>
> <td>${attribute.name}:</td><td>${attribute.value?string}</td>
>
> </#if>
> </tr>
> </#list>
> </table>
> <br>
> </#list>
>
> Now GeoServer (2.1.2) react differently
>
> - feature.type.title: is not the layer-title but the layer-name (with
> a "Layer: " prefix)
> - feature.type.abstract: returns always "[No Abstract Provided]"
>
>
> Have someone some ideas or suggestions? If the solution is to make
> modification to the org.geoserver.template.FeatureWrapper class can you
> give me some advices?
>
>
> Best regards
>
> Milan
>
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users