Thanks Ard.

I am pretty amazed that no body else has come with any simpler way to do it. The javadoc for ApplicationUtil states actually this :

Utility class that can be used from flow to access the different application functions of Cocoon Authentication.

But at least now I have away of doing it. Thanks again.

Regards,
Armaz



Ard Schrijvers wrote:
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]


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

Reply via email to