[jboss-user] [JBoss Seam] - Re: Iterate List of entities[FIXED]

vikramchhetryy do-not-reply at jboss.com
Fri Jan 18 12:03:11 EST 2008


Problem fixed.
I modified my code: 

  | 	public void loadRolesList() {
  | 		Collection<Roles> list = em.createQuery(
  | 				"select object(r) from Roles r order by r.iroleId")
  | 				.getResultList();
  | 
  | 		for (Roles roles : list) {
  | 			rolesList.add(new SelectItem(roles.getIroleId(), roles
  | 					.getStrDescription()));
  | 		}
  | 	}

Thanks,
Vikram

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121364#4121364

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121364



More information about the jboss-user mailing list