on 12-20-2004 7:05 AM
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
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 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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Detlev,
Thank you for your reply. I tried the solution you suggested but I am unable to still figure out what exactly as I supposed to write inside the required method.
How would I refer to the components there?
Would you please let me know of some sample of the same please.
Actually, I have just started working with all this and I know I still have a long to go.
I would also like to apologize for the past as written as your reply. I would try not to repeat it.
Thanks and Warm Regards,
Ritu R Hunjan
Hi Ritu,
see https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/basics of java iview development especially page 21/22 and around.
Hope it helps,
and to make apologize work, you still can press the yellow buttons, also in the old thread(s)
Detlev
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.