Pro JSF and Ajax
changes the behavior from allowing a single-select option to multiple-select options. This
model has no separation of rendering and behavior. For an application developer to change
the behavior of the element from single select to multiple select, it requires just a minor
adjustment--simply setting the attribute multiple. However, this will have a bigger impact
on the underlying application logic since the values passed from the client are now struc-
tured as a list of key-value pairs instead of just a single key-value pair.
distinct behavior to select a single value from many available options, and the UISelectMany
component has the behavior of selecting many values from a list of available options. The
UISelectOne
component, rather than just setting an attribute in the page markup, as they would do when
using the <select> element directly. This clear separation between changing the behavior of
a JSF component and changing its appearance gives application developers a better under-
standing of the impact of their changes when modifying the page definition. Figure 1-6
illustrates the UIComponent and three Renderers with different appearances.
sary to create new UIComponents or Renderers.