Hi
i want to pass a "List"( java.util.List ) that contains several
objects(DTO) to my component
at my samplepage class file im returning a list that contains those objects
My sample page codings(codings im my web application)
public List<MapPlotPoint> getMapPlotPoints()
{
List<MapPlotPoint> list = new ArrayList<MapPlotPoint>();
MapPlotPoint mapPlotPoint = new MapPlotPoint();
mapPlotPoint .setCaption("Caption String");
mapPlotPoint.setLat(37.4419);
mapPlotPoint.setLongi(-122.1419);
//mapPlotPoint.setLink(arg0);
List.add(mapPlotPoint);
System.out.println("returning List : "+list);
return list;
}
below codings are in my component's specification
<parameter name="mapPlotPoints"
type="Java.util.List"
required="no"
default-value="Java.lang.Object">
<description>
MapPlotPoint Object
</description>
</parameter>
Component's class
public abstract List<MapPlotPoint> getMapPlotPoints();
But when it running it gives me errors saying
Unable to read classpath:/Com/providence/tapestry/components/map/TapMap.jwc:
Attribute "type" must be declared for element type "parameter".
Plz anyone can help me on this
Kushan Jayathilake
Member - Java Community Process (http://jcp.org)