Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7671807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:08:34+00:00 2026-05-31T16:08:34+00:00

I am new new to GWT. I have designed the Gui using GWT designer.

  • 0

I am new new to GWT.

I have designed the Gui using GWT designer.
I my GUI I have tabPanel with 4 tabs.

private TabPanel getWorkplacePanel() {
    if (WorkplacePanel == null) {
        WorkplacePanel = new TabPanel();

        WorkplacePanel.setStyleName("Workpalce-MyWorkPlace");
        WorkplacePanel.add(getMyWorkPlacePanel(), "My Workplace", false);

        WorkplacePanel.add(getBrowsePanel(), "Browse", false);
        WorkplacePanel.add(getSearchPanel(), "Search", false);
        WorkplacePanel.add(getTaskPanel(), "Tasks", false);
        WorkplacePanel.setSize("1450px", "750px");

    }
    return WorkplacePanel;
}

In every Tabs I have composite widgets. For Example on Browse Tab i have 2 composite tree ans table.

i want to click on the tabBrowse which is calling RPC.i know RPC call

But How to add click listener on the very particular tab as each Tab is calling different RPC.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T16:08:35+00:00Added an answer on May 31, 2026 at 4:08 pm

    The TabPanel in GWT implements HasSelectionHandlers and HasBeforeSelectionHandlers. So you need to add a selection handler to your TabPanel. In the OnSelection method you can then figure out which Tab Item (i.e. Widget) has been selected using the Widget’s index. You can then either do a type check or use some custom type identifier (if you need to) to figure out which tab item has been selected (e.g. Browse, Search etc):

    WorkplacePanel.addSelectionHandler(new SelectionHandler<Integer>(){
      public void onSelection(SelectionEvent<Integer> event){
       int tabId = event.getSelectedItem();
       Widget tabWidget = tabpanel.getWidget(tabId);
     }
    });
    

    The above code is from This thread which might help you further.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone have experience writing a Facebook application using GWT with GAE? I'm new
I'm relatively new to gwt and I have a problem using JsArrayInteger. Here is
Does anyone have a working example of using the new GWT constructs for RequestFactory
I have a new project where I am using GWT-Views like Composite, etc. I
Using GWT I have a Java class: public class Pojo { private String name;
I am new to GWT. I have developed a GWT application in version-1.6.4 and
I have produced a new Maven Project from gae-archetype-gwt from within IntelliJ, and everything
I'm new to GWT and therefore have a lot of code and see how
I am new to GWT. i have below line of code. SomeClientServiceAsync someService =
I'm new to GWT and trying to understand it, but have encountered with a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.