Bug in Cocoon Forms libraries

2005-10-10 Thread Sergio Bossa

Hello all,

While playing with some of the new features, I noticed a serious bug in 
the brand new org.apache.cocoon.forms.formmodel.library.Library class, 
which causes an ArrayIndexOutOfBoundsException.
Take a look at the following piece of code, from the 
getDefinition(String key) method:


String[] parts = StringUtils.split(SEPARATOR);
librarykey = parts[0];
definitionkey = parts[1];

The problem is clearly a misuse of the split() method.

I think it should be corrected in:

StringUtils.split(key, SEPARATOR);

Please, let me know.

Regards,

Sergio B.

--
Sergio Bossa (http://sbtourist.blogspot.com/)
- Pro-Netics s.r.l. (http://www.pro-netics.com)
- Montag (http://montag.sourceforge.net)
- QuickNote (http://quicknote.sourceforge.net)


Re: [CForms] Creating an intermediate object in binding

2005-07-30 Thread Sergio Bossa
I posted a solution in my blog: it doesn't require to modify Cocoon code.
If you are interested, this is the link:

http://sbtourist.blogspot.com/2005/07/strategy-for-binding-complex.html

I'd like to know your opinion.

Regards,

Sergio B.

-- 
Sergio Bossa
(http://sbtourist.blogspot.com/)
- Pro-Netics s.r.l.
  (http://www.pro-netics.com)
- Montag, Web Services System for XML Database Interaction
  (http://montag.sourceforge.net)
- QuickNote
  (http://quicknote.sourceforge.net)