>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

Reply via email to