jsr372-experts@javaserverfaces-spec-public.java.net

[jsr372-experts] 1103-IterableInUIRepeatUIData

From: arjan tijms <arjan.tijms_at_gmail.com>
Date: Wed, 18 Feb 2015 18:11:00 +0100

Hi,

As a relatively small thing that was left open from 2.2; issue 1103
deals with extending the support that 2.2 added for Collection in
UIData to UIRepeat, and additionally upgrading the support for both to
Iterable.

I created a changebundle for that here:
https://java.net/jira/secure/attachment/54434/changebundle.txt

I think it's a fairly low impact change; the test for iterable is the
last test, so for UIData the existing code will hit first for List and
then Collection if any such types are passed in, and only if the type
is none of these, but is Iterable, will the Iterable test hit and use
a new IterableDataModel.

For UIRepeat there never was Collection support, so there the code
will hit if a Collection is passed in, as well as when an Iterable is
passed in.

As for the implementation code, the IterableDataModel that is used has
been field tested in OmniFaces for some time now.

Thoughts?

Kind regards,
Arjan Tijms