i tried this 
Default-value="ognl:new java.util.List()"  but its not working
 
Kushan Jayathilake
Member - Java Community Process (http://jcp.org)
-------Original Message-------
 
From: Andrea Chiumenti
Date: 5/16/2007 3:27:30 PM
To: Tapestry users
Subject: Re: How to pass a List to a component
 
sorry C&P mistake: default-value="ognl:new java.util.List()"
 
On 5/16/07, Andrea Chiumenti <[EMAIL PROTECTED]> wrote:
>
> <parameter name="mapPlotPoints"
>               required="no"
>              default-value="Java.lang.Object">
>    <description>
>        MapPlotPoint Object
>    </description>
> </parameter>
>
> ---------------------------
> type is not defined for parameter !ELEMENT into dtd
>
> kiuma
>
> On 5/16/07, Kushan Jayathilake <[EMAIL PROTECTED]> wrote:
>
> >
> >  Home.java is the sample web page class file
> >
> > TapMap files are belongs to the component,
> >
> >  Kushan Jayathilake
> > Member - Java Community Process (http://jcp.org)
> > *-------Original Message-------*
> >
> >  *From:* Andrea Chiumenti <[EMAIL PROTECTED]>
> > *Date:* 5/16/2007 3:05:04 PM
> > *To:* Tapestry users <users@tapestry.apache.org>
> > *Subject:* Re: How to pass a List to a component
> >
> > cuould not parse may be an xml validation exception
> >
> > anyway try to attach the jwc
> >
> > kiuma
> > On 5/16/07, Kushan Jayathilake <[EMAIL PROTECTED]> wrote:
> > >
> > > Thankyou very much for considering my problem, but it gives the same
> > error
> > >
> > >
> > > "Org.Apache.hivemind.ApplicationRuntimeException" is
> > >
> > > Could not parse specification
> > > classpath:/Com/providence/tapestry/components/map/TapMap.jwc.
> > >
> > > and
> > >
> > > "Org.Apache.tapestry.util.xml.DocumentParseException" is
> > >
> > > Unable to read
> > > classpath:/Com/providence/tapestry/components/map/TapMap.jwc:
> > > Attribute "type" must be declared for element type "parameter"
> > >
> > > it highlights this line  "default-value="ognl: new java.util.List()">"
> > >
> > > Kushan Jayathilake
> > > Member - Java Community Process (http://jcp.org)
> > > -------Original Message-------
> > >
> > > From: Andrea Chiumenti
> > > Date: 5/16/2007 2:37:40 PM
> > > To: Tapestry users
> > > Subject: Re: How to pass a List to a component
> > >
> > > so try
> > > default-value="ognl: new java.util.List()"
> > >
> > > kiuma
> > >
> > > On 5/16/07, Kushan Jayathilake <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Plz don't mention about case of the syntaxes and keywords, wht
> > should I
> > > > put
> > > > there
> > > >
> > > > I already tried  java.util.List  by putting there but it gives me
> > same
> > > > error
> > > >
> > > > Kushan Jayathilake
> > > > Member - Java Community Process (http://jcp.org)
> > > > -------Original Message-------
> > > >
> > > > From: Andrea Chiumenti
> > > > Date: 5/16/2007 1:45:03 PM
> > > > To: Tapestry users
> > > > Subject: Re: How to pass a List to a component
> > > >
> > > > Hi,
> > > > type="Java.util.List" + default-value="Java.lang.Object" ???
> > > >
> > > > two thigs Java must be lowercase
> > > > and
> > > > java.lang.Object is not an instance, and neither a java.util
> > > > List<MapPlotPoint>
> > > > instance!
> > > >
> > > > kiuma
> > > >
> > > >
> > > > On 5/16/07, Kushan Jayathilake <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > 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)
> > > >
> > > >
> > >
> > >
> >
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
 
 

Reply via email to