Skip to Content
Former Member
Feb 02, 2007 at 05:27 PM

htmlb link setOnClientClick giving NullPointerException


I have a htmlb link tag in a JspDynPage that I'm trying to execute some javacript with when the link is clicked. The problem I'm having is that when I run the component I get a NullPointerException. Here is the code that is failing...

<hbj:link id="link1" text="test link" reference="" tooltip = "This is a test link" target="_blank" >

The error is

Caused by: java.lang.NullPointerException
at com.sapportals.htmlb.event.EventManager.renderJavaScriptFragment(
at com.sapportals.htmlb.event.LinkClickEvent.renderJSFunction(
at com.sapportals.htmlb.unifiedrendering.ie5.LinkRenderer.render(
at com.sapportals.htmlb.rendering.PageContext.render(
at com.sapportals.htmlb.taglib.LinkTag.doEndTag(

I've also try the .setClientEvent(EventTrigger.ON_CLICK,"....") method with simular results.