dev@jsftemplating.java.net

Is it possible to write JSFT component that wraps <f:selectItems />

From: Leonid Lamburt <leonidlamburt_at_hotmail.com>
Date: Mon, 24 Sep 2007 16:30:54 -0400

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