no. but if you use tapestry-hibernate you have to have a hibernate.cfg.xml (hibernate.jar) file somewhere
more details: if you use tapestry-hibernate it will contribute ValueEncoder for your entities. this allows you to use entities in SelectModels and in templates (forms) more easily and more elegant. however, the Grid and BeanEditor use the ValueEncoderSource service that has the ValueEncoders contributed. When it is first used it will call all "contribute" methods. but the "contributeValueEncoderSource" within HibernateModule needs the Hibernate SessionFactory to determine all available entities. and because for the first call, the Hibernate SessionFactory does not exist (everything is lazy by default) it will try to create it by calling hibernate.Configurer.configure() which in turn assumes there is a hibernate.cfg.xml somewhere on the classpath (look at the HibernateModule.java file) the easiest way would be to remove the tapestry-hibernate dependencies g, kris raveendra <[EMAIL PROTECTED]> 17.06.2008 10:21 Bitte antworten an "Tapestry users" <users@tapestry.apache.org> An users@tapestry.apache.org Kopie Thema Issue with Grid component Hi T5 guys, We have chosen T5 for our new project.I am trying to develop a screen using Grid component.I am not connecting to database just displaying the list of callSummaryBean' s (just creating the beans with some data in my page class) using below tag. My question is why is it asking for Hibernate Session or hibernate.cfg.xml when i am not connecting to DB. Is it necessary to configure Logger and hibernate.cfg.xml before using the Grid or BeanEditComponent. <t:grid source="callSummaryList" row="callSummaryBean"/> Render queue error in BeginRender[CallSummary:grid.columns.sort]: Exception constructing service 'ValueEncoderSource': Error invoking service builder method org.apache.tapestry.services.TapestryModule.build(Map) (at TapestryModule.java:1567) (for service 'ValueEncoderSource'): Error invoking service contribution method org.apache.tapestry.hibernate.HibernateModule.contributeValueEncoderSource(MappedConfiguration, HibernateSessionSource, Session, TypeCoercer): Exception constructing service 'HibernateSessionSource': Error invoking service builder method org.apache.tapestry.hibernate.HibernateModule.build(Logger, List, RegistryShutdownHub) (at HibernateModule.java:124) (for service 'HibernateSessionSource'): /hibernate.cfg.xml not found Thankyou, ravindra.