The following comment has been added to this issue:
Author: Cat
Created: Fri, 29 Apr 2005 10:21 AM
Body:
Seems like the indexed property isn't supported at all. Should note that
validator designed to work with list, but not with setter on manner
setValue(int, java.lang.Object).
---------------------------------------------------------------------
View this comment:
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1366?page=comments#action_16486
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1366
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XDT-1366
Summary: Unexpected behaviour during validator config for indexed
properties generation
Type: Bug
Status: Open
Priority: Major
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: XDoclet
Components:
Apache Module
Versions:
1.3
Assignee: xdoclet-devel (Use for new issues)
Reporter: Cat
Created: Wed, 27 Apr 2005 11:07 AM
Updated: Fri, 29 Apr 2005 10:21 AM
Environment: JDK 1.5, WinXP
Description:
Generate the validation.xml for forms having the indexed properties is failed
with exception (java.lang.StringIndexOutOfBoundsException: String index out of
range: -1). Seems like there is incorrect indexed property handling.
---
xdoclet/modules/apache/src/xdoclet/modules/apache/struts/StrutsValidatorTagsHandler.java
29 Nov 2004 01:20:30 -0000 1.12
+++
xdoclet/modules/apache/src/xdoclet/modules/apache/struts/StrutsValidatorTagsHandler.java
26 Apr 2005 09:57:56 -0000
@@ -279,7 +279,7 @@
if (listIdx == -1)
return curFieldName;
- String result = curFieldName.substring(listIdx + 3);
+ String result = curFieldName.substring(listIdx + 2);
if (result.length() == 0)
return curFieldName.substring(0, listIdx);
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
xdoclet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel