tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Tapestry Wiki] Update of "Tapestry5HowtoSelectWithObjects" by RadoslavBielik
Date Wed, 23 Jul 2008 14:18:54 GMT
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 RadoslavBielik:
http://wiki.apache.org/tapestry/Tapestry5HowtoSelectWithObjects

The comment on the change is:
Updated the GenericSelectModel to work with Tapestry 5.0.13

------------------------------------------------------------------------------
- Creating a <SELECT> is a bit complicated and there is only support for strings and
enums currently. (T5.0.5)
+ Creating a <SELECT> is a bit complicated and there is only support for strings and
enums currently. (T5.0.13)
  
  see also: Tapestry5SelectObject
  
@@ -68, +68 @@

          List<OptionModel> optionModelList = new ArrayList<OptionModel>();
          if (labelFieldAdapter == null) {
              for (T obj : list) {
-                 optionModelList.add(new OptionModelImpl(nvl(obj), false, obj, new String[0]));
+                 optionModelList.add(new OptionModelImpl(nvl(obj)));
              }
          } else {
              for (T obj : list) {
-                 optionModelList.add(new OptionModelImpl(nvl(labelFieldAdapter.get(obj)),
false, obj, new String[0]));
+                 optionModelList.add(new OptionModelImpl(nvl(labelFieldAdapter.get(obj)),
obj));
              }
          }
          return optionModelList;

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Mime
View raw message