Skip to Content
author's profile photo Former Member
Former Member

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

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Dec 20, 2004 at 09:57 AM

    Hi Ritu,

    quite easy one, you didn't implement the event handler.

    Within the corresponding JSPDynPage, a method "myTabStripItem2OnSelect" or "onMyTabStripItem2OnSelect" is expected (derived from onSelect="myTabStripItem2OnSelect").

    You should work through the JSPDynPage tutorials.

    And: You haven't been very responsive in your posts until now. If someone helps you, it is not more than kind to reply if this worked or not or whatsoever is the situation (see Call an iView from another iView...Please help..Urgent for example).

    Also, there is a points contribution system on SDN - just click the yellow star at helping answers and choose the corresponding amount of points to award.

    Hope it helps & thanks in advance

    Detlev

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.