I am facing the problem, whenever I am trying to write selectItems tag in SelectOneMenu parent tag, it occurs. I am unable to find out why this illegalArgumentException is coming. Although value is coming in the list. But when Iam submitting the form it is giving exception. I am creating List of SelectItem object but dont know, why? When I am using hard coded selecItem tag it is not giving any errors only while using selectItems...I searched a lot lot but never able to find out a satisfactory reason nor solution...I will provide my code..jst have a look at it..
I am getting data from database in dropdown list but not able to select..
My getMethod public List<SelectItem> getProjectLeaders() { List<SelectItem> projectLeaders = new ArrayList<SelectItem>(); SelectItem option = null; String count = null; Query query = session.createQuery( "select usr.fullName from org.jbpm.identity.User as usr " + "where usr.id in(select mbr.user.id from org.jbpm.identity.Membership as mbr " + "where mbr.role = 'Project Leader')" ); List lead = query.list();
System.out.println("================================"); System.out.println("Size of List = "+lead.size()); System.out.println("================================");
Also the select item value should be BB.Arraylist (containing SelectItems objects).
I have not worked with GA so I might be wrong.
Regards,<br />Joe<br /> <br />"Always program as if the person who will be maintaining your program is a violent psychopath that knows where you live."<br />--Martin Golding