June 2002
Intermediate to advanced
400 pages
7h 48m
English
Now we'll look at providing functionality for the user to change her password or signature when required.
Given that these functions are accessible only to those users who are logged on, we can implement them as standard WebObjects actions and components.
First, add a new page component to the project: Preferences.
1. | Place a WOTabPanel on the page. You might want to position it on the page using a table if appropriate. |
2. | Bind the tabs attribute to a new key of the same name. Bind selectedTab, similarly.
protected NSArray tabs = new NSArray(new String[]{ "Password", "Signature"} ); protected String selectedTab; public String selectedTab() { return (selectedTab ... |