myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Koci <martin.kocicak.k...@gmail.com>
Subject [core] UISelectItem(s) questions
Date Wed, 24 Nov 2010 22:11:07 GMT
Hi,

following things are specified by spec, but maybe someone will know
reasons:

1) why UISelectOne/Many classes don't have method like

List<SelectItem> getSelectItems

currently each renderkit has own method with similar purpose but with
different quality and bugs :)

for example, myfaces have RendererUtils.getSelectItemList(UISelectMany,
FacesContext) which outputs warning if f:selectItems value= leads to
null, but RichFaces throw an uninformative exception in same situation.

For user's view it is inconsistent behaviour.



2) similar question: why UISelectItem/UISelectItems dont have
getSelectItem() resp. getSelectItems() method for creating selections
they represent?


3) why UISelectItem has method like getItemLabel(),
getItemDescription(), but UISelectItems not - it uses only attributes
map.


Regards,

Kočičák


Mime
View raw message