cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grzegorz Kossakowski <gkossakow...@apache.org>
Subject Re: Binding "on-insert-row" is ignored
Date Sun, 13 May 2007 08:13:29 GMT
Dev at weitling pisze:
> Hi Alessandro,
> 
>> in class name insert the complete classname,iI think : demo.TestField
>>
>> in class demo.Test2 you must implement the addTestField method
>>
>> for example 
>>
>>    public addTestField(TestField tf) {
>>         this.testFields.add(tf);
>>     }
>>
>> <fb:insert-bean classname="TestField" addmethod="addTestField"/>
>>   
> 
> Thanks, but I've already done that. Let's begin from the other side:
> What should happen if I leave out the classname, leave out the method,
> enter wrong or incomplete classname or method or the class is
> unreachable? Shouldn't there be an error? But there isn't.
> I may even leave out the whole fb:insert-bean or fb:on-insert-row. I hit
> my "Add row"-button and get a new row. Nothing more, nothing less.
> 
> :-? (becoming nuts)

Binding (and its events) are executed only when form.save (or load) is called. As Jason and
Alessandro already, you should use event 
handling in your case.

If you want to see use of fb:on-insert-row search for Form2 sample.

-- 
Grzegorz Kossakowski
http://reflectingonthevicissitudes.wordpress.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message