You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2006/02/15 13:47:45 UTC
DO NOT REPLY [Bug 38654] New: - Problem with setting properties which are strings array.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38654>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38654
Summary: Problem with setting properties which are strings
array.
Product: Commons
Version: unspecified
Platform: PC
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: Bean Utilities
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: ivan.matmati@gmail.com
In my work, I had to deal with indexed properties with Struts.Some of them,
using multibox, should be string arrays.
But unfortunately, the setter I wrote was never called (It had a string array
as input parameter with the index as an other one).As I search the code, I
found what seemed a mistake in the code of BeanUtilsBean (version 1.7 of
commons bean utilities).
In line 1003, in setProperty method :
else if (value instanceof String[]) {
newValue = getConvertUtils().convert(((String[]) value)[0],
type);
I had to correct it to
else if (value instanceof String[]) {
newValue = getConvertUtils().convert(((String[]) value), type);
In no way, I want a string as newValue but the array itself.
I hope it can help.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 38654] - [beanutils] Problem with setting properties which are strings array.
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38654>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38654
gudnabrsam@yahoo.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Problem with setting |[beanutils] Problem with
|properties which are strings|setting properties which are
|array. |strings array.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org