a ticket + showcase

On Mon, Jul 4, 2011 at 7:04 PM, Adriano dos Santos Fernandes
<[email protected]> wrote:
> Hi!
>
> I was creating a code in onMarkupAttached to get the list of child
> components that wasn't manually added by the user.
>
> I started with something like the code below, and it was wrong.
>        IMarkupFragment mark = this.getMarkup();
>
>        for (MarkupElement element : mark)
>
> Then I switched to below approach which gave me correct results:
>        for (int i = 0; i < mark.size(); ++i)
>
> IMHO, the iterator approach is incorrect and these codes should be
> equivalent.
>
>
> Adriano
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com
  • Markup iterator Adriano dos Santos Fernandes
    • Re: Markup iterator Martin Grigorov

Reply via email to