jwcdi="arts" should be
jwcid="arts" Hernâni Cerqueira wrote: > Hello all, I'm new to Tapestry, this is my first project using it, and > until now everything was doing perfectly. But now i'm having a small > issue with the For component. I was doing something i've done > sometimes already. I have a For component that iterates from a list of > beans, and displays it's data... Until here ok, but i keep getting a > ognlexception: source is null for getProperty(null, "title"). As a > newbie, i have some difficulties on expressing myself on tapestry > dialect, so here goes some piece of my code: > > html: > (...) > <span jwcdi="arts"> > <td class="item"><h2><span > jwcid="title">Título</span></h2></td> > <td class="item"><h3><span > jwcid="body">Corpo</span></h3></td> > <td class="item"> > <table width="100%"> > <tr jwcid="pages"> > <td width="100%" class="item"><h3><span > jwcid="pageTitle">Página</span></h3></td> > <td class="item"><img jwcid="open"/></td> > </tr> > </table> > </td> > <tr jwcid="@If" condition="ognl:hasFooter()"> > <td jwcid="@If" condition="ognl:hasAuthor()" > class="footer"><h4>Escrito por: <span > jwcid="author">Autor</span></h4></td> > <td jwcid="@If" condition="ognl:hasMail()" > class="footer"><h4><a jwcid="mailLink"><span > jwcid="mail">mail</span></a></h4></td> > <td jwcid="@If" condition="ognl:hasUrl()" > class="footer"><h4><a jwcid="urlLink"><span > jwcid="url">url</span></a></h4></td> > </tr> > </span> > (...) > > page: > (...) > <asset name="open" path="context:/images/open_br.gif"/> > <property name="currentArt"/> > <component id="arts" type="For"> > <binding name="source" value="artList"/> > <binding name="value" value="currentArt"/> > </component> > <component id="title" type="Insert"> > <binding name="value" value="currentArt.title"/> > </component> > <component id="body" type="Insert"> > <binding name="value" value="currentArt.body"/> > </component> > (...) > > java: > (...) > public List<HistArt> getArtList() throws TorqueException { > return HistArtPeer.getArtList(); > } > public abstract HistArt getCurrentArt(); > public abstract HistPage getCurrentPage(); > (...) > > the exception: > > ognl.OgnlException > source is null for getProperty(null, "title") > Stack Trace: > > * ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1652) > * ognl.ASTProperty.getValueBody(ASTProperty.java:92) > * ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) > * ognl.SimpleNode.getValue(SimpleNode.java:210) > * ognl.ASTChain.getValueBody(ASTChain.java:109) > * ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) > * ognl.SimpleNode.getValue(SimpleNode.java:210) > * ognl.Ognl.getValue(Ognl.java:333) > * ognl.Ognl.getValue(Ognl.java:310) > (...) > > I hope that this is enough for you to tell-me wath i'm doing wrong > this time, because i've already did similar stuff a couple of times > and everything did just fine. > > Thanks in advance, > Hernâni > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- Justin Walsh http://www.ewage.co.za --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]