I'm not familiar with how Spring uses PropertyEditors -- are you just talking about taking advantage of an interface for converting strings to other types? Or about some more elaborate use? As the article notes, all property conversion is delegated by Struts to commons-beanutils. I'm not sure what original design decisions went into not using PropertyEditors in beanutils, but I do find Converters much simpler to implement than PropertyEditors!
It's probably a fair request to ask that BeanUtils honor PropertyEditors where they are defined -- I'm pretty sure it doesn't now -- but even if it "duplicates what Java beans can do", I think the java.beans.* APIs are generally way overblown for most non-tool uses.
If you think BeanUtils should honor PropertyEditors, i'd suggest posting a request in Bugzilla: http://issues.apache.org/bugzilla/enter_bug.cgi?product=Commons
Joe
At 10:15 AM +0530 12/21/04, <[EMAIL PROTECTED]> wrote:
Hi, A new chapter from a Struts book has been posted to TSS. It seems that the solution for automatic conversion and formatting is already there in the form of java bean PropertyEditors.
Why isn't Struts ( Shale ? ) proposing the use of PropertyEditors ( like Spring )? Is it too much change to the Struts codebase ?
Doesn't this solution from the book duplicate what Java beans can do ?
Thanks, Mohan
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Narrow minds are weapons made for mass destruction" -The Ex
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]