You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Kushan Jayathilake <ku...@gmail.com> on 2007/05/16 08:54:00 UTC

How to pass a List to a component

 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)

Re: How to pass a List to a component

Posted by Kushan Jayathilake <ku...@gmail.com>.
 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 <ki...@gmail.com> 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 <ku...@gmail.com> 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 <ki...@gmail.com>
> > *Date:* 5/16/2007 3:05:04 PM
> > *To:* Tapestry users <us...@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 <ku...@gmail.com> 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 <ku...@gmail.com> 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 <ku...@gmail.com> 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: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
 
 

Re: How to pass a List to a component

Posted by Kushan Jayathilake <ku...@gmail.com>.
Thank you very much it works now
 
Errror was the "type" attribute as you said
 
Thank you very much 
 
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 <ki...@gmail.com> 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 <ku...@gmail.com> 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 <ki...@gmail.com>
> > *Date:* 5/16/2007 3:05:04 PM
> > *To:* Tapestry users <us...@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 <ku...@gmail.com> 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 <ku...@gmail.com> 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 <ku...@gmail.com> 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: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
 
 

Re: How to pass a List to a component

Posted by Andrea Chiumenti <ki...@gmail.com>.
sorry C&P mistake: default-value="ognl:new java.util.List()"

On 5/16/07, Andrea Chiumenti <ki...@gmail.com> 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 <ku...@gmail.com> 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 <ki...@gmail.com>
> > *Date:* 5/16/2007 3:05:04 PM
> > *To:* Tapestry users <us...@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 <ku...@gmail.com> 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 <ku...@gmail.com> 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 <ku...@gmail.com> 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: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>

Re: How to pass a List to a component

Posted by Andrea Chiumenti <ki...@gmail.com>.
<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 <ku...@gmail.com> 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 <ki...@gmail.com>
> *Date:* 5/16/2007 3:05:04 PM
> *To:* Tapestry users <us...@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 <ku...@gmail.com> 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 <ku...@gmail.com> 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 <ku...@gmail.com> 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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: How to pass a List to a component

Posted by Kushan Jayathilake <ku...@gmail.com>.
 
 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
Date: 5/16/2007 3:05:04 PM
To: Tapestry users
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 <ku...@gmail.com> 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 <ku...@gmail.com> 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 <ku...@gmail.com> 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)
> >
> >
>
>
 
 

Re: How to pass a List to a component

Posted by Andrea Chiumenti <ki...@gmail.com>.
cuould not parse may be an xml validation exception

anyway try to attach the jwc

kiuma
On 5/16/07, Kushan Jayathilake <ku...@gmail.com> 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 <ku...@gmail.com> 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 <ku...@gmail.com> 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)
> >
> >
>
>

Re: How to pass a List to a component

Posted by Kushan Jayathilake <ku...@gmail.com>.
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 <ku...@gmail.com> 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 <ku...@gmail.com> 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)
>
>
 
 

Re: How to pass a List to a component

Posted by Andrea Chiumenti <ki...@gmail.com>.
so try
default-value="ognl: new java.util.List()"

kiuma

On 5/16/07, Kushan Jayathilake <ku...@gmail.com> 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 <ku...@gmail.com> 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)
>
>

Re: How to pass a List to a component

Posted by Kushan Jayathilake <ku...@gmail.com>.
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 <ku...@gmail.com> 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)
 
 

Re: How to pass a List to a component

Posted by Andrea Chiumenti <ki...@gmail.com>.
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 <ku...@gmail.com> 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)