From d4b877f18ebe8c2ebb0dc8ca152d031fed7e221f Mon Sep 17 00:00:00 2001 From: YNH Webdev Date: Wed, 5 Mar 2014 15:05:26 +0100 Subject: [PATCH] Add Basepath --- .../kernel/webcontrol/wsf_page_control.e | 30 ++++++++++++++----- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/draft/library/wsf_js_widget/kernel/webcontrol/wsf_page_control.e b/draft/library/wsf_js_widget/kernel/webcontrol/wsf_page_control.e index e16c9ee0..4438c3ac 100644 --- a/draft/library/wsf_js_widget/kernel/webcontrol/wsf_page_control.e +++ b/draft/library/wsf_js_widget/kernel/webcontrol/wsf_page_control.e @@ -1,8 +1,8 @@ note description: "[ - The skeleton for a page control which represents a single page - of the web application. This class is the starting point for - event distribution, rendering and state handling. + The skeleton for a page control which represents a single page + of the web application. This class is the starting point for + event distribution, rendering and state handling. ]" author: "" date: "$Date$" @@ -25,8 +25,14 @@ inherit feature {NONE} -- Initialization make (req: WSF_REQUEST; res: WSF_RESPONSE) + do + make_with_base_path (req, res, "/") + end + + make_with_base_path (req: WSF_REQUEST; res: WSF_RESPONSE; a_base_path: STRING_32) -- Initialize do + base_path := a_base_path control_name := req.request_time_stamp.out make_control ("body") request := req @@ -119,12 +125,20 @@ feature -- Implementation create Result.make_empty if not ajax then Result.append ("") - Result.append ("") - Result.append ("") + Result.append ("") + Result.append ("") Result.append ("") Result.append (control.render) - Result.append ("") - Result.append ("") + Result.append ("") + Result.append ("") Result.append ("") @@ -198,6 +212,8 @@ feature control_name: STRING_32 + base_path: STRING_32 + feature {NONE} -- Root control control: WSF_CONTROL