for(int i = 0; i < array.length; i++) {
if (LOG.isDebugEnabled())
LOG.debug(Messages.getString("ListDataItem.21")+array[i].toString()); //$NON-NLS-1$
// the parameter name is the fieldname + an index
list.add(new NameValuePair(fieldname+"_"+i,array[i].toString())); //$NON-NLS-1$
}
// if this ListDataItem is searchable then add the contents of the search field
// if the list is empty, this allows the user to add new values
if (list.size() == 0 && searchable) {
list.add(new NameValuePair(fieldname+"_0",searchfield.getText())); //$NON-NLS-1$
}
return list;
}