cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Larson <...@keow.org>
Subject Re: CForms v2 and bizData strange handling
Date Tue, 06 Apr 2004 13:14:24 GMT
On Tue, Apr 06, 2004 at 12:30:03PM +0200, Leszek Gawron wrote:
> In v2 I have to do something like this:
> 
> form = new Form( definition );
> 
> form[ "globalAppContext" ] = getGlobalAppContext();
> form[ "user" ] = getLoggedInUser();
> form[ "userContext" ] = getContextForUser( getLoggedInUser() );
> form[ "items" ] = rowset;
> form [ "pageContext" ] = contractor;
> 
> everything is doable so far but if I were to give somebody my code he would
> surely ask me: why is the form top level object in your page model?

I also found this strange.  IMHO this needs to be changed, becase as
we are finding out, the form is not the page.  Think of examples like
portals, pages containing several forms, etc.  The form should just
use one customizable key, to allow for multiple forms and other data.

--Tim Larson

Mime
View raw message