code: public static void generateJSEventHandlers(ResponseWriter rw, UIComponent component) throws IOException {
  		Map<String, Object> attributes = component.getAttributes();
  		String[] eventHandlers = {"onclick", "onblur", "onmouseover"};
          for (String event:eventHandlers) {
          	String handler = A.asString(attributes.get(event));
          	if (null != handler) {
          		rw.writeAttribute(event, handler, event);
          	}
          }
  	}
docs: Generates the standard Javascript event handlers.
  @param rw The response writer
  @param component the current component
  @throws IOException thrown if something goes wrong when writing the HTML code