Main Page >
Console Sample Page
Administration Console Samples - Tab Component Sample
1. Purpose
This sample demonstrates how to create a custom user profile that
uses a tabbed view display. How's this done? The adminstration
service has an attribute that stores the user profile view bean
class to invoke. The default class, UMUserProfileViewBean , will
be replaced with the sample, TabOneViewBean . The default user
profile JSP will be replaced with a tabbed JSP. Whenever a user
selects to see a user profile, the console will look up the class
name from the administration service, and the sample class file
will be invoked instead of the default class file.
2. Files
-
TabOneViewBean.java
-
TabTwoViewBean.java
-
TabThreeViewBean.java
-
jsp/TabOne.jsp
-
jsp/TabTwo.jsp
-
jsp/TabThree.jsp
3. Directions
- Copy all the JSP files to
$AM_INSTALL_DIR/web-src/applications/console/user .
- Compile the Java files
cd $AM_INSTALL_DIR/samples/console/TabComponent
gmake all
- Create a new jar with the sample class files.
cd $AM_INSTALL_DIR/samples/console
jar cf am_console_sample.jar com
- Copy the
am_console_sample.jar into
$AM_INSTALL_DIR/web-src/applications/WEB-INF/lib
- Redeploy the console
Set the DEPLOY_LEVEL to 22 in the silent file
For web server: run amws61config -s <silent file>
For application server: run amas70config -s <silent file>
- Login to the console and change the User Profile Viewbean
Class in the Administration Service from
com.iplanet.am.console.user.UMUserProfileViewBean to
com.iplanet.am.console.user.TabOneViewBean This can be done
in one of two places, under the Service Configuration tab, or from
an organization which has the Administration service registered.
The attribute is organization based so that each organization can
have a different user profile.
- To see the new user profile page, display any user profile (if
the class was configured through the Service Configuration tab)
or in the organization where the User Profile viewbean class was
modified.
|