Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Client side eventing with HTMLB in a jsp file

Hi All,

Can u give me the solution to work with client side eventing with HTMLB with a jsp page but not with a dynpage.



Former Member
Former Member replied

Hi sireesha,

Check this.

<%@ taglib uri="tagLib" prefix="hbj" %>

<%@ page import="com.sapportals.htmlb.enum.EventTrigger,com.sapportals.htmlb.event.Event" %>

<hbj:content id="myContext" >

<hbj:page title="PageTitle">

<script language="Javascript">

function checkinput(){

var funcName = htmlb_formid+"_getHtmlbElementId";

func = window[funcName];

var inputfield1 = eval(func("inf1"));

var input1 = inputfield1.getValue();

if (input1==""){

alert("Enter mandatory fields");





<hbj:textView id="tv1" text="Name"/>

<hbj:inputField id="inf1"




<% inf1.setClientEvent(EventTrigger.ON_BLUR, "checkinput()"); %>



<hbj:textView id="tv2" text="City"/>

<hbj:inputField id="inf2" type="String"/>

<hbj:button id="b1" text ="submit" onClick="onSubmitclicked"/>





Harini S

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question