Hi

While doing so I discovered that I had a Typo: value="[EMAIL PROTECTED]> << 
Note the wrong ending. Changing that to ->" and it works :)

Sorry for shooting to early. The behaviour was still weird though.

Hermod

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 08, 2006 3:42 PM
To: Struts Users Mailing List
Subject: RE: [shale] Clayforeach tag


>From: <[EMAIL PROTECTED]> 
>
> Hi 
> 
> I tested it and I am getting a weird result: My main page gets rendered 
> several 
> times and the block for the clayForEach is not rendered. 
> 
> The set up is a working Clay template with the following block in it: 
> .... 
><span jsfid="clayForEach" bodyJsfid="news" var="myvar" allowBody="false" 
>value="[EMAIL PROTECTED]">
>  <div class="story">
>    <h3>Story Title</h3>
>    <p>Story body - reduced for simplicity</p>
>  </div>
></span>
>
>
>...
> Debugging this, I have added an extra catch in the ClayAmalgam.clayForEach 
> method, catching the case where vi is null at the end. Here I print out the 
> type 
> of valueList (which should equal the returnvalue of otherTopNews i.e List). 
> It 
> states that it is of type String!! 
> 
> I have tried to figure out where it changes from a List to a String, but I am 
> at 
> a loss. 

I believe that the problem is in the "value" attribute.  The clayForEach method 
is not handling the symbol replacement.  If you hard code the managed bean name 
in the value, it should work.

#{mybean.otherTopNews}
Please write this one up as a bugzilla item.

> 
> Hermod 

Gary


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR Group
cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to