Date: 2004-09-30T16:25:00
Editor: NiallPemberton <[EMAIL PROTECTED]>
Wiki: Apache Struts Wiki
Page: StrutsCatalogLazyList
URL: http://wiki.apache.org/struts/StrutsCatalogLazyList
no comment
Change Log:
------------------------------------------------------------------------------
@@ -10,7 +10,7 @@
== Indexed Properties ==
-Struts html tags have an ''indexed'' attribute which will generate the appropriate
html to populate a collection of beans when the form is submitted.
+Struts html tags have an ''indexed'' attribute which will generate the appropriate
html to populate a collection of beans when the form is submitted. The ''trick'' is to
name the '''id''' attribute to the same as the indexed property.
For example the following jsp...
@@ -63,7 +63,7 @@
skills.add(new SkillBean());
}
- return skills.get(index);
+ return (SkillBean)skills.get(index);
}
@@ -94,7 +94,7 @@
}
public SkillBean getSkills(int index) {
- return skills.get(index);
+ return (SkillBean)skills.get(index);
}
// 'Factory' method for LazyList
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]