yep...anEmail is null. Maybe it's not exactly the same property name that
you specified in your loop? ...
On 1/5/06, Andreas Andreou <[EMAIL PROTECTED]> wrote:
>
> one of the items in the list is null :)
>
> gcormier wrote:
>
> >Okay, I'm continuing work on my simple web app with Tapestry 3 and
> Hibernate. Here's what sucks : I've created a page that lists all
> departments, and lets you add/edit/delete. It works MAGICALLY. It's awesome.
> >
> >Now I'm trying to do the same thing all over, listing email addresses,
> and I'm stuck. Something is broke, and I have no idea why, considering its'
> pretty much the same thing as the departments. Retrieve a List of the
> hibernate objects, print a nice table with the properties using @Insert, and
> that's it.
> >
> >Here's what I've got (relevant portions) :
> >
> >Email.html
> >
> >
> >
> >
> >
> >
> >Email.page
> >
> >
> >EmailPage.java
> >public List getEmailList()
> > {
> > List emailList = new EmailDAO().getEmailList();
> > Logger.getLogger(EmailPage.class).debug("Returning email
> list size " + emailList.size());
> > return emailList;
> > }
> >
> >I've checked the logs, and the list has 3 elements in it, so it's not
> null. I get a beautiful stack dump. Any help would be greatly apprieciated.
> >
> >Thanks,
> >Greg
> >
> >---
> >
> >org.apache.tapestry.BindingException
> >Unable to resolve expression 'anEmail.englishprimary' for
> [EMAIL PROTECTED]
> [Email].
> >binding: ExpressionBinding[Email anEmail.englishprimary]
> >location: context:/WEB-INF/Email.html, line 6
> >
> >ognl.OgnlException
> >source is null for getProperty(null, "englishprimary")
> >Stack Trace:
> >
> > * ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1611)
> > * ognl.ASTProperty.getValueBody(ASTProperty.java:96)
> > * 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)
> > * org.apache.tapestry.binding.ExpressionBinding.resolveProperty(
> ExpressionBinding.java:201)
> > * org.apache.tapestry.binding.ExpressionBinding.getObject(
> ExpressionBinding.java:194)
> >........
> >....
> >
> >
> >-------------------- m2f --------------------
> >
> >Sent from www.TapestryForums.com
> >
> >Read this topic online here: <<topic_link>>
> >
> >http://www.tapestryforums.com/viewtopic.php?p=12700#12700
> >
> >-------------------- m2f --------------------
> >
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>