on 2005 Aug 04 11:45 AM
Hi all,
I ve created an IVIEW with a tabstrip and 4 tabstrip items.
And i ve some input fields and buttons in each tabstrip items.
What happens is.. when i am entering data and clicking the button.. the page gets refreshed and showing the content of the first tabstrip item which is the default selection.
I was trying to get the control of the tabstrip in my event handling method of the button in my jspdynpage and set the selection of tabstrip item to current tabstrip item. but still the iview gets refreshed and showing the first tabstrip item.
Please help me to solve this problem.
Thanks & Regards,
Siva
Hi Siva,
<b>Try to store the index of the selected tab in some bean object. Then in your jsp file retreive it and set the selection of tabstrip to this index.</b> You have to do this in your jsp file, because even if you set it in your event handler, it will be overwritten when the jsp file is rendered. So do it in your jsp file.
Hope this helps.
Ranjith
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ranjith,
I am not able to get the control of the tabstrip in my event handler method.
i tried in two ways to get the index of the currently selected tabstrip item
method 1:
TabStrip myTabStrip = (TabStrip) getComponentByName("myTabStrip");
if(myTabStrip!=null){
TabStripItem tabStripItem = myTabStrip.getItem(2);
index = tabStripItem .getIndex();
}
Method 2:
TabStripItem myTabStripItem = (TabStripItem) getComponentByName("myTabStripItem2");
if(myTabStripItem!=null){
index = myTabStripItem .getIndex();
}
Can u help me out to fix the problem.
Thanks and Regards,
Siva
Both the case its not working... its taking the default value of class variable index that's 0.
User | Count |
---|---|
71 | |
10 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.