I'm trying to get Woody working with JDO in an action but I'm not sure of
the code to setup the binding, I've looked at the code in woody2.js and made
an attempt to do it in Java but I get a ClassCastException at line * below.
Anybody got code for this?

Thanks,
Mark

Binding binding=getBinding(aBindingURI);
binding.loadFormFromModel(aForm, model);

...

        private Binding getBinding(String aBindingURI) throws Exception {
                BindingManager bindingManager = null;
                Source source = null;
                SourceResolver resolver = null;
                try {
                        bindingManager 
=(BindingManager)manager.lookup(BindingManager.ROLE);
                        * resolver = 
(SourceResolver)manager.lookup(SourceResolver.ROLE);
                        source = resolver.resolveURI(aBindingURI);
                        return bindingManager.createBinding(source);
                } catch (Exceptione e){
                        throw e;
                } finally {
                        if (source != null)
                                resolver.release(source);
                        manager.release(bindingManager);
                        manager.release(resolver);
                }
        }



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to