Add Grid Widget

This commit is contained in:
YNH Webdev
2013-09-13 00:20:27 +02:00
parent 8fc405fef1
commit 36368aff0b
9 changed files with 355 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ feature {NONE} -- Initialization
do
-- router.map (create {WSF_URI_MAPPING}.make ("/hello", create {WSF_AGENT_URI_HANDLER}.make (agent execute_hello)))
map_agent_uri ("/", agent execute_hello, Void)
map_agent_uri ("/grid", agent grid_demo, Void)
map_agent_uri ("/widget.js", agent load_js, Void)
end
@@ -55,6 +56,16 @@ feature -- Execution
page.execute
end
grid_demo (req: WSF_REQUEST; res: WSF_RESPONSE)
local
page: GRID_PAGE
do
-- To send a response we need to setup, the status code and
-- the response headers.
create page.make (req, res)
page.execute
end
load_js (req: WSF_REQUEST; res: WSF_RESPONSE)
local
f: WSF_FILE_RESPONSE