No problem here.
-- Adam
On 7/26/07, Simon Lessard <[EMAIL PROTECTED]> wrote:
Actually make this the following signature:
protected List<SelectItem> getSelectItems(UIComponent component, FacesBean
bean, Converter converter)
{
return SelectItemSupport.getSelectItems(component,
converter);
}
On 7/26/07, Simon Lessard <[EMAIL PROTECTED] > wrote:
> Hello all,
>
> Currently, SimpleSelectOneRenderer get its list of SelectItem from
SelectItemSupport.getSelectItems(UIComponent, Converter)
directly, not using a protected method, effectively preventing that from
being overridden. The use case are very scarce, but it should be possible to
get the LoV from somewhere else without forcing the use of f:selectItems.
Specifically, it's the case when you want to generate a dynamic component
(always looking different) without altering the component tree (which is bad
when done in the render view phase and that would be the case here).
Therefore, I would like to the following non-final method to
SimpleSelectOneRenderer:
>
> protected List<SelectItem> getSelectItems(UIComponent component, Converter
converter)
> {
> return SelectItemSupport.getSelectItems(component,
converter);
> }
>
> Anyone see a good reason not to do it?
>
>
> Regards,
>
> ~ Simon
>