Github user ageery commented on a diff in the pull request:

    https://github.com/apache/wicket/pull/209#discussion_r99798858
  
    --- Diff: 
wicket-core/src/main/java/org/apache/wicket/markup/html/list/ListView.java ---
    @@ -652,4 +653,24 @@ public final void setModelObject(List<T> object)
        {
                setDefaultModelObject(object);
        }
    +
    +   /**
    +    * Returns a new ListVIew
    +    * @param id component id
    +    * @param model model containing a list of items
    +    * @param consumer lambda to use for populating the ListView
    +    * @param <T> type of the items in the model
    +    * @return a new ListView
    +    */
    +   public static <T> ListView<T> populateItem(final String id, final 
IModel<? extends List<T>> model, final SerializableConsumer<ListItem<T>> 
consumer) {
    --- End diff --
    
    Instead of populateItem(...) how about listView(...) -- make the static 
mirror the class name?
    
    The Lambdas class is interesting!  I had missed that before...


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to