< 上一课 | 下一课 >

完成第 6 课后的 allcustomers.egl 文件

此代码是 allcustomers.egl 文件的已完成版本。如果在文件中看到用红色 X 符号标记的任何错误,请确保您的代码与此代码相匹配:
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

返回至完成第 6 课后的 allcustomers.egl 文件

< 上一课 | 下一课 >

反馈