Content deleted Content added
No edit summary |
No edit summary |
||
Line 96:
'''RUIHandler'''
The main component of a Rich UI application is a Rich UI handler part. These parts are generated into JavaScript.
<source lang="java">
package com.mycompany.ui;
import com.mycompany.services.Employee;
import com.mycompany.services.EmployeeService;
import dojo.widgets.DojoGrid;
import dojo.widgets.DojoGridColumn;
handler EmployeeView type RUIhandler { initialUI = [ grid
], onConstructionFunction = start, cssFile = "main.css" }
grid DojoGrid { behaviors = [ ], headerBehaviors = [ ], columns = [
new DojoGridColumn { displayName = "First Name", name = "FIRSTNAME" },
new DojoGridColumn { displayName = "Last Name", name = "LASTNAME" },
new DojoGridColumn { displayName = "Salary", name = "SALARY" }
] };
function start()
svc EmployeeService { };
call svc.getEmployees () returning to displayEmployees;
end
function displayEmployees(retResult Employee [ ] in)
grid.data = retResult as any [ ];
end
end
</source>
== Web 2.0 with EGL ==
|