• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

trouble with f:selectItems

 
Sushma Sharma
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 536
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic