Child pages
  • Your First Stateful Project

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
private Author _loggedAuthor;

	public Session() {
	  this._loggedAuthor = null;
	}

	public Author loggedAuthor() {
	  return this._loggedAuthor;
	}

	public void setAuthor(Author loggedAuthor) {
	  this._loggedAuthor = loggedAuthor;
	}

Save the file. Now open Author.java and add the following method:

Code Block
public static Author validateLogin(EOEditingContext editingContext, String _emailAddress) {
	// TODO Auto-generated method stub
	return null;
}

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.

...