Hi,
is it possible to create JSFT components that merge several <f:selectItems /> lists or do some kind
of filtering on <f:selectItems /> lists?
example1:
Here I want a unified (alpha sorted) list of airports.
<h:selectOneMenu id="selectAirport" value="#{myBean.selectedAirport}">
<myjsft:merge sort="alpha desc">
<f:selectItems value="#{airportController.germany}" />
<f:selectItems value="{airportController.austria}" />
</myjsft:merge>
</h:selectOneMenu>
example2:
Here I'd like to filter out US territories.
<h:selectOneMenu id="selectUSState" value="#{myBean.selectedState}">
<myjsft:merge filterout="PR VI">
<f:selectItems value="#{geoController.USStatesAndTerritories}" />
</myjsft:merge>
</h:selectOneMenu>
So, does JSF leaves room for the creation of such components?
Thanks.
_________________________________________________________________
Gear up for Halo® 3 with free downloads and an exclusive offer. It’s our way of saying thanks for using Windows Live™.
http://gethalo3gear.com?ocid=SeptemberWLHalo3_WLHMTxt_2