There are cases where validation can get in the way of a developer trying to test an application with different profiles selected.
To get around validation you have three choices:
You can temporarily set your profile set to use this handler, which does no validation.Use WebSphere® Portlet Factory Administrator Role
Set developer mode flag
The SelectionHandlerBase class will not validate if you are in the FactoryAdministrators role. This name is property driven and can be changed by setting a property in the cluster.properties file. The property name is "bowstreet.security.bowstreetAdministratorsName
". If not specified, this defaults to FactoryAdministrators
# specifies the name of the Factory Administrators role that is set in web.xml
The SelectionHandlerBase class will not validate if the developer mode flag is set. The flag can be set on or off through a property in the cluster.properties
file. The property name is bowstreet.profile.developmentMode
. If not specified this defaults to false.
# specifies that the server is in development mode, where explicit profile
# selection rules are relaxed for testing purposes
Parent topic: Using sample handlers: wpf7