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 6666581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:50:36+00:00 2026-05-26T02:50:36+00:00

I am using MVP architecture and am trying to track the click event on

  • 0

I am using MVP architecture and am trying to track the click event on a GWT cellTAble.

1.I have one ConfigureViewImpl class which has ConfigurePlace as a Place.

2.ValidationViewImpl class which has ValidationPlace as a Place.

I have One table in ConfigueViewImpl.On the click of one of its columns , another place(ValidationPlace) should arrive in order to navigate to other page.But I have to track the click event of the particular row.
For this I am trying to pass the Bean but without any sucess.

    final CellTable<UserBean> configGrid= new CellTable<UserBean>(5,(Resources) GWT.create(TableResources.class));
    final SingleSelectionModel<UserBean> selectionModel = new SingleSelectionModel<UserBean>();
    claimsGrid.setSelectionModel(selectionModel,
            DefaultSelectionEventManager.<UserBean> createDefaultManager());


    Column<UserBean, String> action = new Column<UserBean, String>(new ButtonCell()) {
        @Override
        public String getValue(UserBean object) {
            // Get the value from the selection model.
            return"images/edit.png";
        }

    };  
    configGrid.addColumn(action,"Action");
    action.setFieldUpdater(new FieldUpdater<UserBean, String>() {

        public void update(int index, UserBean object, String value) {
        //need to pass the bean 'object'
                     listener.goTo(new ValidationPlace());
        }
    }); 

I need to pass ‘UserBean object’ as an argument to ValidationPlace() but GWT is not allowing to pass the bean parameters as it allows only String as tokens.Is there a way through which I can track the click event and pass the info to next page.Any suggestions appreciated.Thanks in advance.

  • 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-26T02:50:37+00:00Added an answer on May 26, 2026 at 2:50 am

    You’re almost there – you simply need to pass your beans into your place and then generate a token from those.

    Something like this

    public class ValidationPlace extends Place {
    
        private final UserBean userBean;
    
        public ValidationPlace(UserBean userBean) {
    
            this.userBean = userBean;
        }
    
        public UserBean getUserBean() {
    
            return userBean;
        }
    
        public static class Tokenizer implements PlaceTokenizer<ValidationPlace> {
    
            @Override
            public String getToken(ValidationPlace place) {
    
                return "name=" + userBean.getName();
            }
    
            @Override
            public ValidationPlace getPlace(String token) {
    
                // parse token into user bean and return new place
                return new ValidationPlace(createFromToken(token));
            }
        }
    }
    
    public static final UserBean createFromToken(String token) {
        Map<String, String> params = simpleParse(token);
        return new UserBean(params.get("name"), params.get("xyz"), ...);
    }
    
    
    public static final Map<String, String> simpleParse(String token) {
    
        Map<String, String> map = new HashMap<String, String>();
        if (token != null) {
            String[] params = token.split("&");
            for (String param : params) {
                String[] keyValues = param.split("=");
                if (keyValues.length > 1) {
                    map.put(keyValues[0], keyValues[1]);
                }
            }
        }
        return map;
    }
    

    The parameter parsing is very naive and doesn’t handle escaping, &., = etc but generally suffices.

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

Sidebar

Related Questions

I'm trying to build and GWT MVP application using Guice and Gin. I added
Currently we are using GWT Platform with MVP architecture for our UI development. I
I have some doubts, i m developing a web application in GWT using MVP
I am using an MVP architecture (or at least an approximation of one) and
I'm using MVP pattern, so I have a View that has almost no logic
I have a GWT App and I am using GWT MVP with Places /
I have a GWT MVP application using Activities and Places. This is inspired by
If I am using the MVP pattern with GWT, as in the GWT architecture
I am learning GWT and i have read at multiple places that using MVP
So i am writing my first Java application using MVP pattern. One of MVPs

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.