evening,
out of curiosity, is it possible to make something, to write a line of code
without the "#set(" but to not show the result on the page?
for instance:
- if i #set($list = $util.arrayList)
and then
$list.add($x) -just add x to the list, but in the same time shows "true"
printed on the page. i would like to avoid this, and still keep the logic?
Asiri Rathnayake wrote:
Hi,
On Thu, Dec 3, 2009 at 8:49 PM, Bubulina <nohinder(a)yahoo.com> wrote:
#set($count = 0)
#foreach ($d in $xwiki.sort($dateList))
<tr>
<td>$d </td>
<td> $pageList.indexOf[$count] $pageList.indexOf[$count]
</td>
<td>delete</td>
</tr>
#set($count = $count +1)
#end
just want to get the something from a list on the possition $count.
Please tell me what i am doing that wrong?
Is $pageList a java.util.List instance? If so you should do
$pageList.get($count) instead.
- Asiri
--
View this message in context:
http://n2.nabble.com/get-something-with-indexOf-tp4106635p4106635.html
Sent from the XWiki- Users mailing list archive at
Nabble.com.
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
View this message in context:
http://n2.nabble.com/get-something-with-indexOf-tp4106635p4107934.html
Sent from the XWiki- Users mailing list archive at
Nabble.com.