You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Alan Chandler <al...@chandlerfamily.org.uk> on 2005/09/10 21:21:53 UTC

Can I embed a @ForEach inside a component that gets called within a @Foreach

I am suffering a strange error where hivemind is complaining that it can't 
convert one of my types (doesn't say what to/from!).  I have followed this 
through, but as far as I can see everything ought to be of the same type.

One thing that may cause this is that I have a Foreach embedded in a component 
that is called in another Foreach loop.

Is this not allowable - I saw a thread a little while back that might have 
meant that but I don't understand.

-- 
Alan Chandler
http://www.chandlerfamily.org.uk

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Can I embed a @ForEach inside a component that gets called within a @Foreach

Posted by Alan Chandler <al...@chandlerfamily.org.uk>.
On Saturday 10 September 2005 20:43, Mind Bridge wrote:
> It is allowable, in fact it is used in a lot of places.
>
> Could you give some more infomation about your problem? e.g. what the
> type of object you pass to 'source' is? Giving some more information is
> necessary for us to be able to help.


Thanks for confirming that foreach can be nested.  This allowed by to look 
elsewhere. 

 I have discovered what my problem is, I had put ognl.object rather than 
ognl:object in a piece of code.




-- 
Alan Chandler
http://www.chandlerfamily.org.uk

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Can I embed a @ForEach inside a component that gets called within a @Foreach

Posted by Mind Bridge <mi...@yahoo.com>.
Hi,

I am planning to reproduce this when I get a bit of time and have marked 
the email as "important".

Ron Piterman wrote:

> Hallo Mind,
> to your attention the thread called "foreach within block only called 
> once" above - am not sure if this is a bug or expected behaiviour...
> Cheers,
> Ron
>
>
>
> ציטוט Mind Bridge:
>
>> It is allowable, in fact it is used in a lot of places.
>>
>> Could you give some more infomation about your problem? e.g. what the 
>> type of object you pass to 'source' is? Giving some more information 
>> is necessary for us to be able to help.
>>
>>
>> Alan Chandler wrote:
>>
>>> I am suffering a strange error where hivemind is complaining that it 
>>> can't convert one of my types (doesn't say what to/from!).  I have 
>>> followed this through, but as far as I can see everything ought to 
>>> be of the same type.
>>>
>>> One thing that may cause this is that I have a Foreach embedded in a 
>>> component that is called in another Foreach loop.
>>>
>>> Is this not allowable - I saw a thread a little while back that 
>>> might have meant that but I don't understand.
>>>
>>>  
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Can I embed a @ForEach inside a component that gets called within a @Foreach

Posted by Ron Piterman <rp...@gmx.net>.
Hallo Mind,
to your attention the thread called "foreach within block only called 
once" above - am not sure if this is a bug or expected behaiviour...
Cheers,
Ron



ציטוט Mind Bridge:
> It is allowable, in fact it is used in a lot of places.
> 
> Could you give some more infomation about your problem? e.g. what the 
> type of object you pass to 'source' is? Giving some more information is 
> necessary for us to be able to help.
> 
> 
> Alan Chandler wrote:
> 
>> I am suffering a strange error where hivemind is complaining that it 
>> can't convert one of my types (doesn't say what to/from!).  I have 
>> followed this through, but as far as I can see everything ought to be 
>> of the same type.
>>
>> One thing that may cause this is that I have a Foreach embedded in a 
>> component that is called in another Foreach loop.
>>
>> Is this not allowable - I saw a thread a little while back that might 
>> have meant that but I don't understand.
>>
>>  
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Can I embed a @ForEach inside a component that gets called within a @Foreach

Posted by Mind Bridge <mi...@yahoo.com>.
It is allowable, in fact it is used in a lot of places.

Could you give some more infomation about your problem? e.g. what the 
type of object you pass to 'source' is? Giving some more information is 
necessary for us to be able to help.


Alan Chandler wrote:

>I am suffering a strange error where hivemind is complaining that it can't 
>convert one of my types (doesn't say what to/from!).  I have followed this 
>through, but as far as I can see everything ought to be of the same type.
>
>One thing that may cause this is that I have a Foreach embedded in a component 
>that is called in another Foreach loop.
>
>Is this not allowable - I saw a thread a little while back that might have 
>meant that but I don't understand.
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org