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/17 06:47:15 UTC

In scriptDTD

 
Hi 
 
Im sorry previous mail contains wrong information. Please refer this one 
 
  
I have an abstract method calls 
Public abstract List<MapPlotPoint> getMapPlotPoints();
MapPlotPoint class contains getters and setters of following objects
Private Double lat;
Private Double longi;
Private String caption;
Private ILink link;
 
 
I added that to Map like this 
Map symbols = new HashMap();
Symbols.put("mapPlotPoints", getMapPlotPoints());
Below codings appear in my script DTD
<input-symbol key="mapPlotPoints" class="Java.util.List" required="no"/>
<foreach expression="mapPlotPoints" key="item" index="count"> 
    Var varCap = ${item.caption};
</foreach> 
 
I want to get lat,longi,caption and link value of all the instances of
MapPlotPoint class to the javascript
 
Please help me
Kushan Jayathilake
Member - Java Community Process (http://jcp.org)

Re: In scriptDTD

Posted by Kushan Jayathilake <ku...@gmail.com>.
Thank you very much, I did it already
 
 
Kushan Jayathilake
Member - Java Community Process (http://jcp.org)
-------Original Message-------
 
From: Andrea Chiumenti
Date: 5/18/2007 4:24:27 PM
To: Tapestry users
Subject: Re: In scriptDTD
 
?????????
 
try this:
<input-symbol key="mapPlotPoints" class="Java.util.List" required="no"/>
var varCapArray = new Array(${mapPlotPoints.size()});
<foreach expression="mapPlotPoints" key="item" index="count">
   varCapArray[count] = {caption: '${item.caption}', lat: ${item.lat},
longi: ${item.longi}};
</foreach>
 
or
 
<input-symbol key="mapPlotPoints" class="Java.util.List" required="no"/>
var varCapArray = new Array();
<foreach expression="mapPlotPoints" key="item" index="count">
   varCapArray.push( {caption: '${item.caption}', lat: ${item.lat},
longi: ${item.longi}} );
</foreach>
 
ciao,
kiuma
On 5/17/07, Kushan Jayathilake <ku...@gmail.com> wrote:
>
> Hi
>
> Im sorry previous mail contains wrong information. Please refer this one
>
>
> I have an abstract method calls
> Public abstract List<MapPlotPoint> getMapPlotPoints();
> MapPlotPoint class contains getters and setters of following objects
> Private Double lat;
> Private Double longi;
> Private String caption;
> Private ILink link;
>
>
> I added that to Map like this
> Map symbols = new HashMap();
> Symbols.put("mapPlotPoints", getMapPlotPoints());
> Below codings appear in my script DTD
> <input-symbol key="mapPlotPoints" class="Java.util.List" required="no"/>
> <foreach expression="mapPlotPoints" key="item" index="count">
>     Var varCap = ${item.caption};
> </foreach>
>
> I want to get lat,longi,caption and link value of all the instances of
> MapPlotPoint class to the javascript
>
> Please help me
> 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: In scriptDTD

Posted by Andrea Chiumenti <ki...@gmail.com>.
?????????

try this:
<input-symbol key="mapPlotPoints" class="Java.util.List" required="no"/>
var varCapArray = new Array(${mapPlotPoints.size()});
<foreach expression="mapPlotPoints" key="item" index="count">
   varCapArray[count] = {caption: '${item.caption}', lat: ${item.lat},
longi: ${item.longi}};
</foreach>

or

<input-symbol key="mapPlotPoints" class="Java.util.List" required="no"/>
var varCapArray = new Array();
<foreach expression="mapPlotPoints" key="item" index="count">
   varCapArray.push( {caption: '${item.caption}', lat: ${item.lat},
longi: ${item.longi}} );
</foreach>

ciao,
kiuma
On 5/17/07, Kushan Jayathilake <ku...@gmail.com> wrote:
>
> Hi
>
> Im sorry previous mail contains wrong information. Please refer this one
>
>
> I have an abstract method calls
> Public abstract List<MapPlotPoint> getMapPlotPoints();
> MapPlotPoint class contains getters and setters of following objects
> Private Double lat;
> Private Double longi;
> Private String caption;
> Private ILink link;
>
>
> I added that to Map like this
> Map symbols = new HashMap();
> Symbols.put("mapPlotPoints", getMapPlotPoints());
> Below codings appear in my script DTD
> <input-symbol key="mapPlotPoints" class="Java.util.List" required="no"/>
> <foreach expression="mapPlotPoints" key="item" index="count">
>     Var varCap = ${item.caption};
> </foreach>
>
> I want to get lat,longi,caption and link value of all the instances of
> MapPlotPoint class to the javascript
>
> Please help me
> 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