Ok , so i'm trying the for loop but ran into another problem .

the forloop has source="ognl:elementCollection" however the
elementCollection is not an abstract set of accessors , but methods
with sligtly more logic in them :

Collection elementCollection;
public Collection getElementCollection() {
 if ( elementCollection == null )
setElementCollection(getManagerBean().findByWhateverCriteriaTheUsrSet(Criteria
c));

return elementCollection;
}
...

What happends is . ForEach gets the collection . For doesn't with :

<div jwcid="@For" source="ognl:elements" value="ognl:element" >

. It throws an exception in tapestry saying that it can't read the
ognl expression : elements .

I figured I maybe do need to dedclare it in the .jwc so I added :
<property name="elements" />

That fixed the tapestry exception , however the For does not gets
rendered which leads me to belive that it's initialised as a null
value .

The Page.java class is abstract , having other normal abstract accessors

Any ideeas ?

Thanks ,
Cosmin

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

Reply via email to