cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gunnar Brand <>
Subject CopletModule always returning String instead of real Object
Date Thu, 15 Sep 2005 18:49:06 GMT

I was using the coplet input module to get some value stored in an 
attribute of a coplet.
But not inside the sitemap (because there you can only work with strings) 
but in normal java code.
Unfortunately (for me) I had to notice that the coplet module always calls 
".toString()" on the value it returns via getAttribute.
I think this is a bug or design mistake because it prevents any non String 
from being looked up this way.
And the sitemap does the string conversion anyway.
IMHO input modules can and should return objects and not convert them to 

If I am right, can somebody fix this? I checked the SVN archive I could 
find on the website and it seems all versions of have this return value.toString();


G. Brand - interface projects GmbH
Tolkewitzer Strasse 49
D-01277 Dresden
tel:    ++49-351-3 18 09 - 41

Ein Unternehmen der interface:business-Gruppe

View raw message