Question

<s:tabbedPanel > enable and disable tabs on button click in struts2

Asked by: pothireddysunil

Hi Can i get some code how to enable and disable a tab in struts tabbed panel.

I have three tabs in tabbed panel ..default show will have two tabds showed before button click and after button click the first and third will be visible ,disabling the second tab..


 <s:tabbedPanel id="test2" theme="simple" cssStyle="width: 500px; height: 300px;" doLayout="true" closeButton="pane"  useSelectedTabCookie="true">
                       <s:div id="one" label="test1" theme="ajax" >
                           I'm a Tab!!!
                       </s:div >
                       <s:div  id="two" label="test2"  theme="ajax" disabled="trie" >
                           I'm the other Tab!!!
                       </s:div >
                       <s:div  id="three" label="test2"  theme="ajax" disabled="true" >
                           I'm the other Tab!!!
                       </s:div ></s:tabbedPanel>

 <s:submit onclick="enabledisable()" />

Please i need this urgent...

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-06-28 at 21:22:01ID24529062
Topic

Jakarta Struts

Participating Experts
1
Points
500
Comments
10

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. struts 2 and ajax problem
    I am new to ajax and struts 2. I have my existing struts 2 application running. Now I add a simple ajax call to my welcome page. In my welcome.jsp: I have: <s:url id="ajaxCallUrl" value="registration_handleAjax.action"> </s:url> <div id=&quo...
  2. Trying to integrate Dynamic Drive's Ajax Tabs into a Word…
    Okay - here's the short story is - I'm running a website with wordpress here: nodfactor.com I've skinned it in a Revolution Theme that allows it to be a little more than just a blog, it ends up being more of a CMS. (here: http://www.revolutiontheme.com/themes/revolution-p...
  3. Issue with Ajax dojo in Struts 2
    Here I am giving the Ajax code snippet of my jsp.. which is not working Struts 2 but working webwork 2.2.4 environment.. ** *** JAVA SCRIPT PART ******* <script type="text/javascript"> var id; function assignValues(id) { alert("OID :"+ id); dojo....
  4. Struts PopUp
    Hi , I am working in struts , I have a parent window which has a popup. when i click on Add button the PopUp window should open and it has some id and lables need to be populated. when i click on 'select' button in popup window it has to close and those values should tranfe...
  5. Theme Switcher that changes themes for the entire site
    Please take a look at this page: http://travelnursecpa.com/FAQ.html. How do I code it so that when you select one of the radio buttons it applies the theme change to every page in the site? And must the script and html for the change be on the homepage? Thanks! John
  6. onclick
    hi I would like to use onclick to post a value to a textbox without using a javascript function is it possible? thanks

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: pothireddysunilPosted on 2009-06-29 at 08:51:38ID: 24737311

Please need urgent help....

 

by: VenabiliPosted on 2009-06-29 at 10:14:08ID: 24738072

Two things:
1. Having a div with the same IDas the tabbed pane is a recipe for disaster (see below how it is changed)
2. Depending on what version you are using, something like the code below shoould do it.
And after this:

 <s:submit onclick="enableTab('two')"/>
for example (or whatever you want to do... not quite sure why you need submits at all - I would do something like:
<input type="button" onclick="enableTab('two')" value="Tab2" /> (and you can add a few more invocation inside - disabling 2 and enabling 1 and 3 for example

<script type="text/javascript">
   function enableTab(param) {
      var tabContainer = dojo.widget.byId('test2');
      tabContainer.enableTab(param);
   }
    
   
   function disableTab(param) {
      var tabContainer = dojo.widget.byId('test2');
      tabContainer.disableTab(param);
   }
</script>
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:

Select allOpen in new window

 

by: pothireddysunilPosted on 2009-06-30 at 10:36:08ID: 24747572

thank you Venabil for the quick responce.I have requirement for displaying values in two tabs as default and on submit - calling an action  which is called as refresh will enable the thrid tab ,disabling the second tab.

I have developed the sample code putting two button ..but it is not working please help..


also i found the code here  http://yueguc.javaeye.com/blog/314303 ..but it is not working for me..

<script type="text/javascript">
            function enableTab(param) {
                var tabContainer = dojo.widget.byId('test2');
                tabContainer.enableTab(param);
            }
    
            function disableTab(param) {
                var tabContainer = dojo.widget.byId('test2');
                tabContainer.disableTab(param);
        </script>
    </head>
    <body>
<input type="button" onclick="enableTab('one')" value="Enable Tab 2 using widget" />
<input type="button" onclick="disableTab('three')" value="Disable Tab 2 using widget" />
        <s:tabbedPanel id="test" >
            <s:div id="one" label="Current Clinician" theme="ajax">
                <display:table  name="loaddata1" id="row1" >
                    <display:column property="tvShow" title="TV Show" />
                    <display:column property="userName" title="User Name" />
                    <display:column property="emailId" title="Email Id" />
                </display:table>
 
 
            </s:div>
 
            <s:div id="two"  theme="ajax" label="Other Clinician">
                <display:table  name="loaddata2" id="row2">
                    <display:column property="tvShow" title="TV Show" />
                    <display:column property="userName" title="User Name" />
                    <display:column property="emailId" title="Email Id" />
                </display:table>
            </s:div>
 
            <s:div id="three"  theme="ajax" label="All Patient Information" disabled="true">
                <display:table  name="loaddata3" id="row3">
                    <display:column property="tvShow" title="TV Show" />
                    <display:column property="userName" title="User Name" />
                    <display:column property="emailId" title="Email Id" />
                </display:table>
            </s:div>
 
        </s:tabbedPanel>
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:

Select allOpen in new window

 

by: VenabiliPosted on 2009-06-30 at 15:18:20ID: 24750153

That was an example usage - you need to get the invocations correctly
Let's see first if the approach works - what happens if you change
<input type="button" onclick="enableTab('one')" value="Enable Tab 2 using widget" />
to
<input type="button" onclick="enableTab('one');disableTab('two');disableTab('three')" value="Enable Tab 2 using widget" />
and you click the button?

 

by: pothireddysunilPosted on 2009-07-01 at 06:31:25ID: 24754100

Venabili ,i tried the code change.I did'nt notice any error nor anything in Mozilla.But in IE i found error ..it shows at the line declared for the <s:tabbed panel>
I'm attaching the code what i have till now...

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@taglib uri="/WEB-INF/displaytag.tld" prefix="display" %>
<html>
    <head>
        <s:head theme="ajax" />
      
        <script type="text/javascript">
 
function comm_direct_change(checked){
     document.getElementById('direct').style.display = checked?"block":"none";
}
 
            function enableTab(param) {
                var tabContainer = dojo.widget.byId('test2');
                tabContainer.enableTab(param);
            }
    
            function disableTab(param) {
                var tabContainer = dojo.widget.byId('test2');
                tabContainer.disableTab(param);
            }
        </script>
         <style type="text/css">
            div#direct{
                display: none;
                visibility:hidden;
            }
        </style>
    </head>
    <body>
  <input type="button" onclick="enableTab('one');disableTab('two');disableTab('three')" value="Enable Tab 2 using widget" />
  <s:tabbedPanel id="test" name="test12" closeButton="true" selectedTab="true">
            <s:div id="one" label="Current Clinician" theme="ajax" >
                 <input type="checkbox" onclick="comm_direct_change(this.checked)">Show
                <display:table  name="loaddata1" id="row1" >
                    <div   id="direct" >  <display:column property="tvShow" title="TV Show" />    </div>
                    <display:column property="userName" title="User Name" />
                    <display:column property="emailId" title="Email Id" />
                </display:table>
 
 
            </s:div>
 
            <s:div id="two"  theme="ajax" label="Other Clinician">
                <display:table  name="loaddata2" id="row2">
                    <display:column property="tvShow" title="TV Show" />
                    <display:column property="userName" title="User Name" />
                    <display:column property="emailId" title="Email Id" />
                </display:table>
            </s:div>
 
            <s:div id="three"  theme="ajax" label="All Patient Information" disabled="true">
                <display:table  name="loaddata3" id="row3">
                    <display:column property="tvShow" title="TV Show" />
                    <display:column property="userName" title="User Name" />
                    <display:column property="emailId" title="Email Id" />
                </display:table>
            </s:div>
 
        </s:tabbedPanel>
 
 
 
</html>
 
 
 
struts action class
 
 
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package example;
 
import com.opensymphony.xwork2.ActionSupport;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;
 
/**
 *
 * @author D074710
 */
public class tabbeddemo extends ActionSupport {
 
    private List loaddata1 = null;
    private List loaddata2 = null;
    private List loaddata3 = null;
 
    public String execute() throws Exception {
      this.setLoaddata1(this.LoadData1());
       this.setLoaddata2(this.LoadData2());
        this.setLoaddata3(this.LoadData3());
        return SUCCESS;
    }
 
    public String setterLoadData1() {
        this.setLoaddata1(this.LoadData1());
        return SUCCESS;
    }
 
    public String setterLoadData2() throws ClassNotFoundException, SQLException {
        this.setLoaddata2(this.LoadData2());
        return SUCCESS;
    }
 
    public String setterLoadData3() {
        this.setLoaddata3(this.LoadData3());
        return SUCCESS;
    }
 
    public List LoadData1() {
        List actorList = new ArrayList();
        actorList.add(new ActorData("The Office1", "Michael Scott", "michael.scott@dundermifflin.com"));
        actorList.add(new ActorData("The Office1", "Dwight Schrute", "dwight.schrute@dundermifflin.com"));
        actorList.add(new ActorData("The Office1", "Jim Halpert", "jim.halpert@dundermifflin.com"));
        actorList.add(new ActorData("The Office1", "Pam Beesly", "pam.beesly@dundermifflin.com"));
        actorList.add(new ActorData("The Office1", "Andy Bernad", "andy.bernad@dundermifflin.com"));
        actorList.add(new ActorData("The Office1", "Angela Martin", "angela.martin@dundermifflin.com"));
        actorList.add(new ActorData("Friends1", "Rachel Green", "rachel.green@friends.com"));
        actorList.add(new ActorData("Friends1", "Monica Geller", "monica.geller@friends.com"));
        actorList.add(new ActorData("Friends1", "Phoebe Buffay", "phoebe.buffay@friends.com"));
        actorList.add(new ActorData("Friends1", "Joey Tribbiani", "joey.tribbiani@friends.com"));
        actorList.add(new ActorData("Friends1", "Chandler Bing", "chandler.bing@friends.com"));
        actorList.add(new ActorData("Friends1", "Ross Geller", "ross.geller@friends.com"));
        return actorList;
    }
 
  public List LoadData2() {
        List actorList = new ArrayList();
        actorList.add(new ActorData("The Office2", "Michael Scott", "michael.scott@dundermifflin.com"));
        actorList.add(new ActorData("The Office2", "Dwight Schrute", "dwight.schrute@dundermifflin.com"));
        actorList.add(new ActorData("The Office2", "Jim Halpert", "jim.halpert@dundermifflin.com"));
        actorList.add(new ActorData("The Office2", "Pam Beesly", "pam.beesly@dundermifflin.com"));
        actorList.add(new ActorData("The Office2", "Andy Bernad", "andy.bernad@dundermifflin.com"));
        actorList.add(new ActorData("The Office2", "Angela Martin", "angela.martin@dundermifflin.com"));
        actorList.add(new ActorData("Friends2", "Rachel Green", "rachel.green@friends.com"));
        actorList.add(new ActorData("Friends2", "Monica Geller", "monica.geller@friends.com"));
        actorList.add(new ActorData("Friends2", "Phoebe Buffay", "phoebe.buffay@friends.com"));
        actorList.add(new ActorData("Friends2", "Joey Tribbiani", "joey.tribbiani@friends.com"));
        actorList.add(new ActorData("Friends2", "Chandler Bing", "chandler.bing@friends.com"));
        actorList.add(new ActorData("Friends2", "Ross Geller", "ross.geller@friends.com"));
        return actorList;
    } 
 /*
 public List LoadData2()  throws ClassNotFoundException, SQLException, SQLException {
        List dataList = new ArrayList();
        StringBuffer eQuery = new StringBuffer();
        String clinicianId = "1117161";
        String s1 = "SELECT e.clinicianname,e.epinumber,e.Site_ID, e.clinician_id,e.client_id,e.nickname,e.gds,e.symptoms,e.harm,e.function,e.social,e.sa, e.alliance,e.gds_assess_num1,e.fdate,e.recentdate,e.assess_num,e.changescore,e.gdstarget,e.benchmarkscore,e.testid,e.status,g.resource_id FROM episodes e ,groupclinicians g where e.clinician_id =" + clinicianId;
        String s2 = " group by e.epinumber order by e.benchmarkscore,e.gds desc";
        eQuery.append(s1);
        eQuery.append(s2);
         System.out.println("The Clinician Query"+eQuery );
 
        ResultSet rsMainQuery = graphUtil.getResultSet(eQuery.toString());
      //  ResultSet rsmainQuery1 = rsMainQuery;
        DisplayData LoadData;
        DateFormat df = new SimpleDateFormat("MM/dd/yyyy");
        while (rsMainQuery.next()) {
            LoadData = new DisplayData();
            LoadData.setClinicianname(rsMainQuery.getString("clinicianname"));
        //    System.out.println(""+rsMainQuery.getString("clinicianname"));
            LoadData.setClinicianid(((int) rsMainQuery.getDouble("clinician_id")));
          //   System.out.println(""+rsMainQuery.getString("clinician_id"));
            LoadData.setClientid(((int) rsMainQuery.getDouble("client_id")));
          //   System.out.println(""+rsMainQuery.getString("client_id"));
            LoadData.setNickname(rsMainQuery.getString("nickname"));
           ///  System.out.println(""+rsMainQuery.getString("clinicianname"));
           //   System.out.println(""+rsMainQuery.getString("clinicianname"));
            LoadData.setGdsscore((rsMainQuery.getDouble("gds")));
           //  System.out.println(""+rsMainQuery.getString("clinicianname"));
            LoadData.setRecentdate(df.format(rsMainQuery.getDate("recentdate")));
            // System.out.println(""+rsMainQuery.getString("clinicianname"));
            LoadData.setSymptoms((rsMainQuery.getDouble("symptoms")));
          //   System.out.println(""+rsMainQuery.getString("clinicianname"));
            LoadData.setHarm((rsMainQuery.getDouble("harm")));
           //  System.out.println(""+rsMainQuery.getString("clinicianname"));
            LoadData.setFunction1((rsMainQuery.getDouble("function")));
            LoadData.setSocial((rsMainQuery.getDouble("social")));
            LoadData.setSa((rsMainQuery.getDouble("sa")));
            LoadData.setAlliance((rsMainQuery.getDouble("alliance")));
            LoadData.setGdsassessnum1((rsMainQuery.getDouble("gds_assess_num1")));
            LoadData.setAssessnum((rsMainQuery.getDouble("assess_num")));
            LoadData.setChangescore((rsMainQuery.getDouble("changescore")));
            LoadData.setGdstarget((rsMainQuery.getDouble("gdstarget")));
            LoadData.setBenchmarkscore((rsMainQuery.getDouble("benchmarkscore")));
            LoadData.setTestid((rsMainQuery.getDouble("testid")));
            LoadData.setStatus((rsMainQuery.getString("status")));
            LoadData.setEpinum((int)rsMainQuery.getDouble("epinumber"));
            System.out.println("the Clinician Load data is done" );
            dataList.add(LoadData);
 
        }
 
 
        return dataList;
    }
*/
 
    public List LoadData3() {
        List actorList = new ArrayList();
        actorList.add(new ActorData("The Office3", "Michael Scott", "michael.scott@dundermifflin.com"));
        actorList.add(new ActorData("The Office3", "Dwight Schrute", "dwight.schrute@dundermifflin.com"));
        actorList.add(new ActorData("The Office3", "Jim Halpert", "jim.halpert@dundermifflin.com"));
        actorList.add(new ActorData("The Office3", "Pam Beesly", "pam.beesly@dundermifflin.com"));
        actorList.add(new ActorData("The Office3", "Andy Bernad", "andy.bernad@dundermifflin.com"));
        actorList.add(new ActorData("The Office3", "Angela Martin", "angela.martin@dundermifflin.com"));
        actorList.add(new ActorData("Friends3", "Rachel Green", "rachel.green@friends.com"));
        actorList.add(new ActorData("Friends3", "Monica Geller", "monica.geller@friends.com"));
        actorList.add(new ActorData("Friends3", "Phoebe Buffay", "phoebe.buffay@friends.com"));
        actorList.add(new ActorData("Friends3", "Joey Tribbiani", "joey.tribbiani@friends.com"));
        actorList.add(new ActorData("Friends3", "Chandler Bing", "chandler.bing@friends.com"));
        actorList.add(new ActorData("Friends3", "Ross Geller", "ross.geller@friends.com"));
        return actorList;
    }
 
    /**
     * @return the loaddata1
     */
    public List getLoaddata1() {
        return loaddata1;
    }
 
    /**
     * @param loaddata1 the loaddata1 to set
     */
    public void setLoaddata1(List loaddata1) {
        this.loaddata1 = loaddata1;
    }
 
    /**
     * @return the loaddata2
     */
    public List getLoaddata2() {
        return loaddata2;
    }
 
    /**
     * @param loaddata2 the loaddata2 to set
     */
    public void setLoaddata2(List loaddata2) {
        this.loaddata2 = loaddata2;
    }
 
    /**
     * @return the loaddata3
     */
    public List getLoaddata3() {
        return loaddata3;
    }
 
    /**
     * @param loaddata3 the loaddata3 to set
     */
    public void setLoaddata3(List loaddata3) {
        this.loaddata3 = loaddata3;
    }
}
 
 
Actor data
 
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package example;
 
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
 
/**
 *
 * @author eswar@vaannila.com
 */
public class ActorData implements Serializable  {
 
    private String tvShow;
    private String userName;
    private String emailId;
 
    public ActorData()
    {
        
    }
    
    public ActorData(String tvShow, String userName, String emailId)
    {
        this.tvShow = tvShow;
        this.userName = userName;
        this.emailId = emailId;
    }
 
 
 
    /**
     * @return the tvShow
     */
    public String getTvShow() {
        return tvShow;
    }
 
    /**
     * @return the userName
     */
    public String getUserName() {
        return userName;
    }
 
    /**
     * @return the emailId
     */
    public String getEmailId() {
        return emailId;
    }
  
}
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:

Select allOpen in new window

 

by: VenabiliPosted on 2009-07-01 at 07:13:50ID: 24754516

You changed the if of your pane from test2 to test at one point. The JS is still searching test (I cannot see which line you have this error on and when exactly it happens but I guess this is it). Either fix the JS methods, or your tabbedPane ID.

 

by: pothireddysunilPosted on 2009-07-01 at 10:45:44ID: 24756551

Friend i changed the  tabbedpanel id to test and tried to execute it.But still nothing happens...
It shows error at the <s:tabbedpanel >  id ..i have changed id to test but still no luck

 

by: VenabiliPosted on 2009-07-01 at 12:22:42ID: 24757283

And what is the ID here:
var tabContainer = dojo.widget.byId('test2'); ?
If the tabbedPane ID is test, this one should also be test.

WHEN exactly do you see the error? On loading? When you press the button? When the temperature goes over 30 degrees Celsius? (the last one was a joke - do not get offended please)

Oh and change:
selectedTab="true">
to the ID of the panel that you need to be selected initially :) You do not have a panel with id true. I suspect that this is the error that you see

 

by: pothireddysunilPosted on 2009-07-01 at 16:31:40ID: 24759200

I got this working ..but i have to change the tabbed panel to dojo tabbed panel  
sx.tabbedpanel.

i have one request here....how can i get the selected tabs in the tabcontainer.

 

by: VenabiliPosted on 2009-07-02 at 03:08:27ID: 24761766

Yeah - you need them dojo type.
Get it from where? And isn't this a separate question basically? :)

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...