Take a look in the brand new sandbox selectItens tag. That do this:

<s:selectItens value="#{bean.carList}" var="car" itemLabel="#{car.id}" itemValue="#{ car.name}"/>

2006/7/17, Paulo Silveira <[EMAIL PROTECTED]>:
hello user list...

it is not about the myfaces implementation, but I am just getting mad
about using SelectItem all over my managed beans...

some frameworks let me create POJOs agnostic to the API, using JSF I
need to create getters that encapsulate my view info in SelectItem
objects... is there *any* way to avoid it? It would be nice if
f:selectItems had itemLabel and itemValue as its singular form...

thanks

--
Paulo E. A. Silveira
Caelum Ensino e Soluções em Java
http://www.caelum.com.br/



--
Yours truly (Atenciosamente),

Rogério

Reply via email to