myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krishna K. Pandit" <Krishna.Pan...@aptuit.com>
Subject problem with <t:selectItems>
Date Mon, 15 Feb 2010 05:55:56 GMT
Hi All

 

Can any one tell me how to create <t:selectItems>  in backing bean.

It's not working with some of its methods.

 

setItemLabel

setItemValue

 

please see the code below for refrence.

 

 

 

org.apache.myfaces.custom.selectitems.UISelectItems uisi;

      public UISelectItems getDynamicUISelectItems(){

            uisi = (UISelectItems)
app.createComponent(UISelectItems.COMPONENT_TYPE);

            uisi.setValue(getListBox());

            uisi.setVar("itr");

            

            uisi.setItemLabel("#{itr.id}");    //these takes a parameter
of type object but rendering

            uisi.setItemValue("#{itr.name}");  //it will just print the
string i.e   #{itr.id} 

 

            return uisi;

      }

 

 

Thanks

Krishna Kumar Pandit

This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender by email
reply and delete it from your system.
The integrity and security of this email cannot be guaranteed on the Internet.


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message