cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <>
Subject Re: Form macros used without flowscript
Date Thu, 12 May 2005 09:10:11 GMT
Reinhard Poetz wrote:

> I have the need for using form macros but my application doesn't use 
> flowscript as controller. AFAICS
> line 11: <jx:set var="form" value="${CocoonFormsInstance}"/>
> makes it impossible to access the form object as my controller (an 
> action) doesn't set the variable "CocoonFormsInstance". Is there any 
> way to fill this variable from within an action?
> Or should I solve the problem differently by patching the macros?

Patching the macros seems a better way to me, and getting the form can 
be delegated to JXMacrosHelper, falling back to the request attribute 
used by the FormsAction if there's no flow object.


Sylvain Wallez                        Anyware Technologies  
Apache Software Foundation Member     Research & Technology Director

View raw message