cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bart Molenkamp" <b.molenk...@bizzdesign.nl>
Subject interface parameter for fb:insert-bean binding?
Date Fri, 22 Oct 2004 10:01:30 GMT
Hi all,

Is is possible to specify an interface for fb:insert-bean? Without this,
the binding is not able to find the correct method. E.g.

addProduct(Product product);		// Product is an interface

...

<fb:insert-bean
  class="ProductImpl"
  addmethod="addProduct"/>

Now, the insert bean binding tries to find a method matching
"addProduct(ProductImpl)", but it can't be found. So, is it possible to
specify the interface, e.g.

<fb:insert-bean
  class="ProductImpl"
  interface="Product"
  addmethod="addProduct"/>

Or, am I doing something wrong?

Thanks,
Bart.

Mime
View raw message