You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Igor Vaynberg (JIRA)" <ji...@apache.org> on 2007/09/05 03:42:44 UTC

[jira] Resolved: (WICKET-921) AbstractRepeater.add(int index, Component c) method

     [ https://issues.apache.org/jira/browse/WICKET-921?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg resolved WICKET-921.
----------------------------------

    Resolution: Won't Fix
      Assignee: Igor Vaynberg

AbstractRepeater.java:66

/**
 * Returns an iterator for the collection of child components to be rendered. Users can override
 * this to change order of rendered children.
 * 
 * @return iterator over child components to be rendered
 */
protected abstract Iterator renderIterator();

wicket does not guarantee internal ordering of components via add() method.

so really what you can do is create your own items that contain the index, and your own insert and renderiterator() method that use that index.

> AbstractRepeater.add(int index, Component c) method
> ---------------------------------------------------
>
>                 Key: WICKET-921
>                 URL: https://issues.apache.org/jira/browse/WICKET-921
>             Project: Wicket
>          Issue Type: New Feature
>          Components: wicket
>    Affects Versions: 1.3.0-beta3
>            Reporter: Sam Hough
>            Assignee: Igor Vaynberg
>            Priority: Minor
>
> The ability to insert a Component into an AbstractRepeater would save having to rebuild the "list" from scratch. Behaviour could/should be like List.add(int index, E element).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.