You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Apache Wiki <wi...@apache.org> on 2008/06/05 02:13:25 UTC
[Tapestry Wiki] Trivial Update of "Tapestry5AnotherSelectWithObjects" by
MarceloLotif
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for change notification.
The following page has been changed by MarceloLotif:
http://wiki.apache.org/tapestry/Tapestry5AnotherSelectWithObjects
------------------------------------------------------------------------------
List<OptionModel> optionModelList = new ArrayList<OptionModel>();
for (T obj : list) {
if (labelFieldAdapter == null) {
- optionModelList.add(new OptionModelImpl(nvl(obj) + "", false,
+ optionModelList.add(new OptionModelImpl(nvl(obj) + "", obj));
- obj, new String[0]));
} else {
- optionModelList.add(new OptionModelImpl(nvl(labelFieldAdapter
+ optionModelList.add(new OptionModelImpl(nvl(labelFieldAdapter.get(obj)),obj));
- .get(obj)), false, obj, new String[0]));
}
}
return optionModelList;
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org