Hi all I'm trying to pass a List from my class to my template, but I can't seem to find the proper way to do it.
My list is named inventionList. I defined my @For this way: <TR jwcid="@For" source="ognl:inventionList" value="ognl:model" element="tr"> <TD class="texto"><P><STRONG><span jwcid="@Insert" value="ognl:model.header"/></STRONG> (<span jwcid="@Insert"value="ognl:model.inventionDate"/>)<BR><span jwcid="@Insert" value="ognl:model.text"/><BR><BR></P> </TD> </TR> I defined the List in my component definition this way: <property name="inventionList" initial-value="java.util.List" persist="session"/> <property name="model" initial-value="pt.te.universal.Model"/> And on my bean, I defined the following method: public abstract void setInventionList(List inventionList); Which I load with a List on the prepareForRender(IRequestCycle cycle) method defined on my component's class. The problem is, whenever I try to load the page, I get the following Exception: org.apache.tapestry.BindingException Unable to read OGNL expression '<parsed OGNL expression>' of [EMAIL PROTECTED]/$Inventions]: $Getter_11.java binding: ExpressionBinding[invencoes/$Inventions java.util.List] location: context:/WEB-INF/components/Inventions.jwc, line 17, column 86 <component id="submit" type="ImageSubmit"> <binding name="image" value="asset:submit"/> </component> <property name="inventionList" initial-value="java.util.List" persist="session"/> <property name="model" initial-value="pt.te.universal.Model"/> <asset name="submit" path="imagens/botao_ok_up.gif"/> </component-specification> -- Cumprimentos, Rui Pacheco
