GWT MVP - retriving custom event parameters problem

Posted by parag on Stack Overflow See other posts from Stack Overflow or by parag
Published on 2010-04-19T11:53:00Z Indexed on 2010/04/19 20:23 UTC
Read the original article Hit count: 365

Filed under:
|

Hi, I am developing a GWT application with presenter, dispatcher and Gin. I have a presenter which is retrieving an ArrayList<JobPosting> from server and firing a ManageJobsEvent.

dispatcher.execute(new GetJobPostings(userId), new 
DisplayCallback<GetJobPostingsResult>(display) { 
                        @Override 
                        protected void handleFailure(Throwable e) { 
                                e.printStackTrace(); 
                                Window.alert(SERVER_ERROR); 
                        } 
                        @Override 
                        protected void handleSuccess(GetJobPostingsResult value) { 
                                eventBus.fireEvent(new ManageJobsEvent(value.getUserId(), 
value.getJobPostings())); 
                        } 
                }); 

I get the callback to onPlaceRequest(PlaceRequest request) of my another presenter but how do i get the ArrayList<JobPostings> set in the event.

© Stack Overflow or respective owner

Related posts about gwt

Related posts about mvp