< Indietro | Avanti >

File allcustomers.egl completato dopo la lezione 6

Questo codice è la versione finita del file allcustomers.egl. Se sono presenti errori contrassegnati con simboli X rossi nel file, assicurarsi che il codice corrisponda a quello riportato di seguito:
package jsfhandlers;

import eglderbydb.access.CustomerLib;
import eglderbydb.data.*;
import com.ibm.egl.jsf*;
import eglderbydb.StatusRec;

handler allcustomers type JSFHandler
	{onConstructionFunction = onConstruction,
		onPreRenderFunction = onPreRender,
		view = "allcustomers.jsp",
		viewRootVar = viewRoot}

	viewRoot UIViewRoot;
	customers Customer[0];
	status StatusRec;

	function onConstruction()
	end
	function onPrerender()
		CustomerLib.GetCustomerListAll(customers, status);
	end
end

Tornare a File allcustomers.egl completato dopo la lezione 6.

< Indietro | Avanti >

Feedback