Skip to Content
0
Former Member
Dec 20, 2004 at 07:05 AM

Problem related to event handers in Tabstrip..Urgent..Please

15 Views

Hello,

I have screated a tabstrip for demo. The layout is visible but as I click on any tab to view the corresponding details, I get an error related to EventHandlers respectively.

Please refer to the code below:

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

<html>

<body>

<hbj:content id="myContext" >

<hbj:page title="PageTitle">

<hbj:form id="myFormId" method="post">

<hbj:tabStrip

id="myTabStrip1"

bodyHeight="100"

width="200"

horizontalAlignment="CENTER"

verticalAlignment="TOP"

selection="4"

tooltip="Tooltip for myTabStrip1"

>

<hbj:tabStripItem

id="myTabStripItem1"

index="1"

height="80"

width="160"

onSelect="myTabStripItem1OnSelect"

title="Introduction"

tooltip="My Tooltip for Tab 1"

>

<hbj:tabStripItemBody>

<hbj:textView text="This is an iview showing Introduction details" />

</hbj:tabStripItemBody>

</hbj:tabStripItem>

<hbj:tabStripItem

id="myTabStripItem2"

index="2"

height="80"

width="160"

onSelect="myTabStripItem2OnSelect"

title="SAP Portal"

tooltip="My Tooltip for Tab 2"

>

<hbj:tabStripItemBody>

<hbj:textView text="This iView has details on SAP Portal" />

</hbj:tabStripItemBody>

</hbj:tabStripItem>

<hbj:tabStripItem

id="myTabStripItem3"

index="4"

height="80"

width="160"

onSelect="myTabStripItem3OnSelect"

title="SAP R/3"

tooltip="My Tooltip for Tab 3"

>

<hbj:tabStripItemBody>

<hbj:textView text="This iView has details on SAP R/3" />

</hbj:tabStripItemBody>

</hbj:tabStripItem>

</hbj:tabStrip>

</hbj:form>

</hbj:page>

</hbj:content>

</body>

<html>

I would appreciate if anyone would please let me know as to how should I resolve this.

Error (assuming that I have clicked on the second tab SAP Portal):

<b>Portal Runtime Error

An exception occurred while processing a request for :

iView : newTabStrip.default

Component Name : newTabStrip.default

Eventhandler- "myTabStripItem2OnSelect" or "onMyTabStripItem2OnSelect" not found!.

Exception id: 12:26_20/12/04_0053

See the details for the exception ID in the log file</b>

Im working on SP6 and using eclipse for the above.

I believe this error is because the resp event handlers have not been subscribed for the event. But if so, kindly help me to resolve it as I do not understand where should it be subscribed.

Thanks and Warm Regards,

Ritu R Hunjan