Changes for page Your First Stateful Project
Last modified by Bastian Triller on 2021/08/07 03:59
From version 16.1
edited by Pascal Robert
on 2012/12/12 07:59
on 2012/12/12 07:59
Change comment:
There is no comment for this version
To version 15.1
edited by Pascal Robert
on 2012/08/09 05:00
on 2012/08/09 05:00
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -134,18 +134,8 @@ 134 134 135 135 {{/code}} 136 136 137 -Save the file. N ow openAuthor.javaand addthe followingmethod:137 +Save the file. Next: we need to add a component to present the login form to the user. Right-click on the **Components** folder in the project, and select **New** > **WOComponent**. Change the name of the component to be **AdminMainPage** and change the superclass to **er.extensions.components.ERXComponent**. 138 138 139 -{{code}} 140 -public static Author validateLogin(EOEditingContext editingContext, String _emailAddress) { 141 - Author user = Author.fetchAuthor(ERXEC.newEditingContext(), Author.EMAIL.eq(_emailAddress)); 142 - return user; 143 -} 144 - 145 -{{/code}} 146 - 147 -Next: we need to add a component to present the login form to the user. Right-click on the **Components** folder in the project, and select **New** > **WOComponent**. Change the name of the component to be **AdminMainPage** and change the superclass to **er.extensions.components.ERXComponent**. 148 - 149 149 After the component have been created, open **AdminMainPage.java** and override the content of the class with the following code: 150 150 151 151 {{code}} ... ... @@ -428,4 +428,4 @@ 428 428 429 429 {{/code}} 430 430 431 -Save everything, run the app, click on the "admin" link, login and check if you can create or edit a blog entry. Everything should be working, and just created your first stateful Project Wonder application [[It's time to deploy an application>>Your First Deployment]].421 +Save everything, run the app, click on the "admin" link, login and check if you can create or edit a blog entry. Everything should be working, and just created your first stateful Project Wonder application