Yes, was that
thanks!
2012/2/23 Ryan Williams <[email protected]>
> Hi,
> Field names in ftl files are case sensitive. I notice your exception
> shows feature.tipus but your example says 'Tipus' - with a capital T.
> Have you tried specifying other attributes besides 'Tipus'? Do those work?
> - Ryan
>
> On 2/23/2012 5:42 AM, Francesc Cañas wrote:
> > Hi, I'm customizing the popup for getfeature info and I just want to
> display
> > some of the attributes of my layer, it have an "Id" and other fields that
> > they are not necessary to show.
> >
> > I read the
> >
> http://docs.geoserver.org/stable/en/user/tutorials/GetFeatureInfo/index.html
> > and I changed table for a list and following the example below, I've put
> > this:
> >
> > <ul>
> > <#list features as feature>
> > <li>*Tipus:* "${feature.Tipus.value}"<br/>
> >
> > </li>
> > </#list>
> > </ul>
> >
> > being the Tipus the attribute that I want to display... But the popup
> says:
> >
> > java.io.IOException: Error occured processing content template
> content.ftl
> > for Projectes_UTM31 Error occured processing content template content.ftl
> > for Projectes_UTM31 Expression feature.tipus is undefined on line 9,
> column
> > 24 in content.ftl.
> >
> > Any help please? Thanks!!
> >
> > If I keep it generic, it works:
> >
> > <ul>
> > <#list features as feature>
> > <li>*Type: ${type.name}* (id:<em>${feature.fid}</em>):
> > <ul>
> > <#list feature.attributes as attribute>
> > <#if !attribute.isGeometry>
> > <li>${attribute.name}: ${attribute.value}</li>
> > </#if>
> > </#list>
> > </ul>
> > </li>
> > </#list>
> > </ul>
> >
> > --
> > View this message in context:
> http://osgeo-org.1560.n6.nabble.com/getfeatureinfo-template-only-display-some-attributes-tp4498403p4498403.html
> > Sent from the GeoServer - User mailing list archive at Nabble.com.
> >
> >
> ------------------------------------------------------------------------------
> > Virtualization& Cloud Management Using Capacity Planning
> > Cloud computing makes use of virtualization - but cloud computing
> > also focuses on allowing computing to be delivered as a service.
> > http://www.accelacomm.com/jaw/sfnl/114/51521223/
> > _______________________________________________
> > Geoserver-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/geoserver-users
> >
>
> --
> Ryan Williams
> GIS Analyst / Programmer
> PAQ Interactive Inc.
>
>
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
--
http://kikocanas.blogspot.com
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users