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
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to