You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Pich <pe...@edb.com> on 2007/05/28 12:25:26 UTC

Format the itemLabel i selectItem

Hi!

I have a f:selectOneMenu and a couple of f:selectItem tags. I use the
itemLabel and itemValue attributes. Is it possible for format the output of
the itemLabel in the outcoming drop down?

The drop down is presenting account numbers and these should be presented in
a specific way. I do not want this presentation logic in my model and I am
hoping it is possible to perform such formating of the itemLabel using JSF
tags.

Best regards

Pich
-- 
View this message in context: http://www.nabble.com/Format-the-itemLabel-i-selectItem-tf3827190.html#a10834012
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: Format the itemLabel i selectItem

Posted by Mike Kienenberger <mk...@gmail.com>.
The Tomahawk selectItems tag <t:selectItems> will give you far more
control over how the items are constructed.

http://myfaces.apache.org/tomahawk/selectItems.html

On 5/28/07, Pich <pe...@edb.com> wrote:
>
> Hi!
>
> I have a f:selectOneMenu and a couple of f:selectItem tags. I use the
> itemLabel and itemValue attributes. Is it possible for format the output of
> the itemLabel in the outcoming drop down?
>
> The drop down is presenting account numbers and these should be presented in
> a specific way. I do not want this presentation logic in my model and I am
> hoping it is possible to perform such formating of the itemLabel using JSF
> tags.
>
> Best regards
>
> Pich
> --
> View this message in context: http://www.nabble.com/Format-the-itemLabel-i-selectItem-tf3827190.html#a10834012
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>