You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2005/08/30 17:17:11 UTC
DO NOT REPLY [Bug 36421] New: -
logic:iterate w/ indexed properties
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=36421>.
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=36421
Summary: logic:iterate w/ indexed properties
Product: Struts
Version: 1.1 Final
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: Utilities
AssignedTo: dev@struts.apache.org
ReportedBy: robertl@jlab.org
I have a "Project" bean w/ a list property "primaryInvestigators" that is nested
inside an ActionForm.
This Project bean has the following methods:
public java.util.List getPrimaryInvestigators()
public my.package.PrimaryInvestigator getPRimaryInvestigators(int index)
Now when I try to iterate over the list of primary investigoatrs in a JSP with
the logic:iterate tag:
<bean:define id="thisProject" name="myForm" property="project"
type="my.package.Project"/>
<logic:iterate id="thisPi" name="thisProject" property="primaryInvestigators">
<bean:write name="thisPi" /><br>
</logic:iterate>
, I get an exception:
"No getter method for property primaryInvestigators of bean thisProject"
Now, when I remove the second method (getting a primaryInvestigator by index),
everything works properly.
Why can't the logic:iterate tag see that the first method can return a List
(Collection) and get an Iterator for it?
This might actually be a Commons BeanUtils bug...
--
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: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org