< 前へ

演習 8 の後の完成した updatecustomer.egl ファイル

このコードが、updatecustomer.egl ファイルの完全なバージョンになります。 ファイル内に赤い X 印がマークされたエラーが表示される場合は、 ご使用のコードが次のコードと一致するか確認してください。

package jsfhandlers;

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

handler updatecustomer type JSFHandler
	{onConstructionFunction = onConstruction, 
	 onPrerenderFunction = onPrerender, 
 	 view = "updatecustomer.jsp",
 	 viewRootVar = viewRoot} 

	viewRoot UIViewRoot;
	customer Customer;
	status StatusRec;
		
	// Function Declarations
	function onConstruction()
	end

	function onPrerender(CID INT)
		customer.customerId = CID;
		CustomerLib.GetCustomer(customer, status);
	end
	
	function updateRecord()
		CustomerLib.UpdateCustomer(customer, status);
		forward to "allcustomers";
	end
end

演習 8: 更新ページの作成に戻る。

< 前へ

フィードバック