1. A method for configuring a portlet for detecting events, the method comprising: generating within a configuration of the portlet, a handler for an event, the event indicating a change in a web portal environment, wherein the handler includes an identifier of the event and a description of the event; and generating a response within the handler for the event, the response indicating an action to be taken by the portlet in response to the event.