[jboss-user] [JBoss Seam] - Re: @DataModelSelection problem, outjects the first element i

rkosiarz82 do-not-reply at jboss.com
Sun Jun 3 17:14:44 EDT 2007


I think you should put

@Factory("searchResults")
	public String performSearch(){
		
		int nbrHits = RandomUtils.nextInt()%10;
		List tmpList = new ArrayList(nbrHits);
		for(int i=0; i<nbrHits; i++ ){
			 CountryRiskAddonBean cab = new CountryRiskAddonBean();
			 cab.setTicketNumber("RSK-" + (RandomUtils.nextInt()%10000) );
			 cab.setCptyName("CptyXYZ");
			 cab.setCountryOfRisk("SWE");
			 tmpList.add( cab );
		}
		searchResults = tmpList;
		
		return null;
	}




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

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



More information about the jboss-user mailing list