private void setModellistByModel(ModelListForm listForm, PageIterator pageIterator, HttpServletRequest request) {
		Collection c = null;
		try {
			listForm.setAllCount(pageIterator.getAllCount());
			if (pageIterator.getCount() != 0)
				listForm.setCount(pageIterator.getCount());
			c = new ArrayList(pageIterator.getSize());
			while (pageIterator.hasNext()) {
				Object o = pageIterator.next();
				if (o != null)
					c.add(o);
			}
			Debug.logVerbose("[JdonFramework] listForm 's property: getList size is " + c.size(), module);
			pageIterator.reset();
		} catch (Exception e) {
			Debug.logError(" setModellistByModel error " + e, module);
			c = new ArrayList();
		}
		listForm.setList(c);
	}
private void setModellistByModel ( ModelListForm listForm , PageIterator pageIterator , HttpServletRequest request ) { Collection c = null ; try { listForm . setAllCount ( pageIterator . getAllCount ( ) ) ; if ( pageIterator . getCount ( ) != 0 ) listForm . setCount ( pageIterator . getCount ( ) ) ; c = new ArrayList ( pageIterator . getSize ( ) ) ; while ( pageIterator . hasNext ( ) ) { Object o = pageIterator . next ( ) ; if ( o != null ) c . add ( o ) ; } Debug . logVerbose ( "[JdonFramework] listForm 's property: getList size is " + c . size ( ) , module ) ; pageIterator . reset ( ) ; } catch ( Exception e ) { Debug . logError ( " setModellistByModel error " + e , module ) ; c = new ArrayList ( ) ; } listForm . setList ( c ) ; }
/*
the elements in pageIterator is Model type we directly add them in result