cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joose Vettenranta <>
Subject cforms binding almost working
Date Sat, 24 Jul 2004 14:29:11 GMT

I was able to get stuff from database and then make as cforms..

So this works:

         bean.setName ('Dad 1');
         child = new ();
         child.setName ('Child 1');
         bean.addChild (child);
         dao.insert (bean, factory);

But this does not:

	bean.setId (id);
	bean = dao.retrieve (bean, factory);
	dao.update (bean, factory);

What happens when doing this?

Every repeater-row element is INSERTed again, like CForms thinks that 
all of those are new childs. If I remove those rows, nothing will 
happen to them, only the ones which were left, was INSERTed.

I have tested with a script that this works:

On that same url there is also binding file I used. But not the 
javascript I used to test forms, but it's showed on this mail.



"Always remember that you are unique, just like everyone else!"
* * * +358 44 561 0270 *

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message