Are you sure about this? According to the API docs for both the 1.6.1
and the 1.7.0 releases of BeanUtils RowSetDynaClass does define a
getRows() method. So, either ccyLst identifies a bean of some other type
or it's set to null.
How is ccyLst defined and initialized?
L.
[EMAIL PROTECTED] wrote:
Hi,
I've tried quite a number of variations on this including the one
suggested in the previous email but no joy so far. This variant:
<html:select property="ccy" styleClass="dropdown"
styleId="ccyLst">
<html:optionsCollection name="ccyLst" property="rows" />
</html:select>
Gets the error "no getter method for property rows…"
If I was trying to access this data from a servlet the code would be
something like:
List rows = ccyLst.getRows();
Iterator it = rows.iterator();
while (it.hasNext()){
DynaBean row = (DynaBean) it.next();
}
chum
Quoting Dave Newton <[EMAIL PROTECTED]>:
[EMAIL PROTECTED] wrote:
It's a good suggestion but I still can't get it to work,
My JPP code is:
<html:select property="ccy" styleClass="dropdown"
styleId="ccy">
<html:options collection="ccyLst"
property="rows" />
</html:select>
error is "Cannot create iterator for
[EMAIL PROTECTED]"
RowSetDynaClass ccyLst is in session scope....
The collection attribute must be a _collection_. RowSetDynaClass
isn't a
collection.
Did you try what the email suggested, using the "name" and "property"
attributes?
Dave
Quoting Laurie Harper <[EMAIL PROTECTED]>:
So 'cyclist' names a bean of type RowSetDynaClass? 'collaction' is
meant
to name a bean which is a collection, (List, Set, etc) and
'property'
should be the name of a property of the elements in the
collection,
not
a property of the collection itself.
What you want is probably more like
<html:options name="cyclist" property="rows"/>
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]