Can you post working code (.tml and .java) for chapter 4 of the tutorial on working with forms?
I'm having trouble getting it to work and there is nowhere a listing of full source - only snippets and pieces. The first 3 chapters had critical errors in some of the snippets and caused me major grief trying to learn from the flaky tutorial code. Thanks! Phil tfecw wrote: > > Im' trying to get through the Hi Lo game and I'm having a lot more > difficulties than I should be having (i tried tomcat 5 for a day before > moving over to jetty) > > I'm at the part of the tutorial where you guess the number by clicking on > links. > for some reason this line of code: > <t:loop source="1..10" value="guess" xml:space="preserve"> > <t:actionlink t:id="link" context="guess">${guess}</t:actionlink> > </t:loop> > > Is throwing a hibernate related error (see below) > > when i remove the context="guess" part from the code i don't get the > hibernate error anymore but I do get some a tapestry related error > regarding actions. > > Here is the hibernate error i get: > > Render queue error in BeginRender[Guess:link]: Exception constructing > service 'ValueEncoderSource': Error invoking service builder method > org.apache.tapestry5.services.TapestryModule.buildValueEncoderSource(Map) > (at TapestryModule.java:1745) (for service 'ValueEncoderSource'): Error > invoking service contribution method > org.apache.tapestry5.hibernate.HibernateModule.contributeValueEncoderSource(MappedConfiguration, > boolean, HibernateSessionSource, Session, TypeCoercer, PropertyAccess, > LoggerSource): Exception constructing service 'HibernateSessionSource': > Error invoking service builder method > org.apache.tapestry5.hibernate.HibernateModule.buildHibernateSessionSource(Logger, > List, RegistryShutdownHub) (at HibernateModule.java:120) (for service > 'HibernateSessionSource'): /hibernate.cfg.xml not found > > Let me know if the full stack trace is needed. > -- View this message in context: http://old.nabble.com/Hi-Lo-tutorial%2C-HIbernate-cfg-errors-tp22230480p28554683.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