From 82a351192f38cc73268ea7de7a48e2e0425d5cbf Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 28 May 2007 00:58:40 +0000 Subject: Fixed a bug when using renderer in TWizard's sidebar. --- .../protected/pages/Day3/CreateLoginUser.page | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'demos/blog-tutorial/protected/pages/Day3/CreateLoginUser.page') diff --git a/demos/blog-tutorial/protected/pages/Day3/CreateLoginUser.page b/demos/blog-tutorial/protected/pages/Day3/CreateLoginUser.page index d54fc967..6d7967d4 100644 --- a/demos/blog-tutorial/protected/pages/Day3/CreateLoginUser.page +++ b/demos/blog-tutorial/protected/pages/Day3/CreateLoginUser.page @@ -16,23 +16,27 @@ The workflow of LoginUser is very similar to the +

+We create two files protected/pages/users/LoginUser.page and protected/pages/users/LoginUser.php to save the page template and page class, respectively. +

+

Creating Page Template

-Below we show the template for LoginPage. As we see, the page mainly contains a text box for collecting username and a text box for password. The username input is required, which is ensured by the TRequiredFieldValidator. The correctness of the password input is ensured by the TCustomValidator which invokes the page's validateUser() method when validation is performed. The page also has "login" button which invokes the page's loginButtonClicked() when it is clicked. +Below we show the template for LoginUser. As we see, the page mainly contains a text box for collecting username and a text box for password. The username input is required, which is ensured by the TRequiredFieldValidator. The correctness of the password input is ensured by the TCustomValidator which invokes the page's validateUser() method when validation is performed. The page also has "login" button which invokes the page's loginButtonClicked() when it is clicked.

<%@ Title="My Blog - Login" %> <com:TContent ID="Main"> - +

Login

Username: -<com:TRequiredFieldValidator +<com:TRequiredFieldValidator ControlToValidate="Username" - ErrorMessage="Please provide your username." + ErrorMessage="Please provide your username." Display="Dynamic" />
<com:TTextBox ID="Username" /> @@ -116,11 +120,11 @@ We modify the footer section of the MainLayout's template as follows. T