The problem consists in one of these two classes I think:
<html t:type="layout" title="Tutorial Index" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd" xmlns:p="tapestry:parameter"> <head> <title>Hibernate example app</title> </head> <body> <t:loop source="list" value="current"> ${current.message}<br/> </t:loop> <t:ActionLink>add</t:ActionLink> </body> </html> package tutorial.pages; import Entities.Hello; import org.apache.tapestry5.hibernate.annotations.CommitAfter; import org.apache.tapestry5.ioc.annotations.Inject; import org.hibernate.Session; import java.util.List; public class HbAction { @Inject private Session _session; private Hello current; @CommitAfter public void onAction() { Hello h = new Hello(); h.setMessage("Hello World"); _session.save(h); } public List getList() { return _session.createCriteria(Hello.class).list(); } public Hello getCurrent() { return current; } public void setCurrent(Hello current) { this.current = current; } } -- View this message in context: http://tapestry.1045711.n5.nabble.com/First-Tapestry-app-with-Hibernate-tp3285845p3294096.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org