Providing User Personalization and Preferences
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.
Using WOTabPanel to Create a Tabbed Interface
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 ... |
Get WebObjects® Developer's Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.