aspose file tools*
The moose likes JSF and the fly likes trouble with f:selectItems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "trouble with f:selectItems" Watch "trouble with f:selectItems" New topic
Author

trouble with f:selectItems

Sushma Sharma
Ranch Hand

Joined: Jun 02, 2005
Posts: 139
Hi,

I am trying to use f:selectItems within a f:selectManyListBox, but I am getting exception. here is my code.



And below is the stackTrace.
==============================================================




please help. If I remove the select part, everything is working fine.

Thanks,
Sushma
Richard Green
Ranch Hand

Joined: Aug 25, 2005
Posts: 536
hmm. not sure whats wrong. but i have something similar to

public List<SelectItem> getCames()
{
List<SelectItem> selectItems = new ArrayList<SelectItem>();
for (Item item : ctemList)
{
if (item.getName()!=null)
{
selectItems.add(new SelectItem(item.getName(), item.getName(),item.getName()));
}
}
return selectItems;
}

in my code and it works fine.


MCSD, SCJP, SCWCD, SCBCD, SCJD (in progress - URLybird 1.2.1)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: trouble with f:selectItems
 
Similar Threads
Struts with weblogic7.0
Displaying BLOB in JSF
IndexOutOfBoundsException at javax.faces.component.UICompo
code too large
JSTL xml tag throwing error