Hello, var objectModel = org.apache.cocoon.components.ContextHelper.getObjectModel(avalonContext)
should do the trick. Now, all you need it to know how to get the avalonContext :-) A probably incredible dirty way is something like cocoon.getComponent(Packages.org.apache.cocoon.forms.FormManager.ROLE).getAvalonContext() but hopefully somebody knows a more solid solution, Regards Ard > > > Hi > > How do I get the objectModel when in flow ? > I need it to do something like this, as I can in an action : > org.apache.cocoon.auth.ApplicationUtil.getUser(objectModel); > > Regards, > Armaz Mellati > > > > --------------------------------------------------------------------- > 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]
