The way an Avalon component is retreived in flowscript did change some months ago. You do not longer need to create a manager that has to do this lookup, instead, you can do the lookup (and release!) with cocoon.getComponent.
I upgraded the Wiki page and the attachment. I did only upgrade the jxforms example. Not the xmlforms. I marked the latter as deprecated. Hugo Burm -----Original Message----- From: BRAUD Denis [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 6:08 PM To: '[EMAIL PROTECTED]' Subject: RE: JXForm (XMLForm), Hibernate, Flowscript and the prefs example Hi, I've tried the HowTo http://wiki.cocoondev.org/Wiki.jsp?page=XMLFormJXFormHibernateAndFlowscript with cocoon 2.1.2. I had to modify some references because of changes in this new version : flow.js : old: cocoon.load("resource://org/apache/cocoon/components/jxforms/flow/jxForm.js" ); new: cocoon.load("resource://org/apache/cocoon/components/jxforms/flow/javascript /JXForm.js") sitemap : old: <map:flow language="JavaScript"> new: <map:flow language="javascript"> old: <map:call function="jxForm"> new: <map:call function="jxform"> I still have a problem to get the componentManager in flow.js. Any idea to correct this ? Denis Braud flow.js --------- ... manager = cocoon.componentManager; cocoon.log.info("cocoon:"+cocoon); cocoon.log.info("manager:"+manager); ... flow.log --------- FOM_Cocoon$FOM_Log: cocoon:[object FOM_Cocoon] FOM_Cocoon$FOM_Log: manager:undefined -----Message d'origine----- De : Hugo Burm [mailto:[EMAIL PROTECTED] Envoy� : jeudi 29 mai 2003 11:14 � : [EMAIL PROTECTED] Objet : JXForm (XMLForm), Hibernate, Flowscript and the prefs example I posted an implementation of the prefs example: (http://localhost:8080/cocoon/samples/flow/prefs/) to a Wiki page: http://wiki.cocoondev.org/Wiki.jsp?page=XMLFormJXFormHibernateAndFlowscript. This examples uses JXForm and Hibernate for making the prefs persistent. The Hibernate Sessionfactory is implemented in an Avalon component and created from flowscript by the Cocoon componentmanager. Hugo Burm --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
