public ConversationControl(ConversationMainPanel aConversationMainPanel) {
myConversationMainPanel = aConversationMainPanel;
myConversationService = (ConversationServiceAsync)mapService(GWT.create(ConversationService.class), "conversationport");
final RemoteEventServiceFactory theRemoteEventHandlerFactory = RemoteEventServiceFactory.getInstance();
myRemoteEventService = theRemoteEventHandlerFactory.getRemoteEventService();
theRemoteEventHandlerFactory.requestClientHandler(new DefaultAsyncCallback<ClientHandler>() {
public void onSuccess(ClientHandler aClientHandler) {
//create an event execution service (that is only necessary when user-specific events or user-specific EventFilters
// must dynamically changeable at the server-side).
theRemoteEventHandlerFactory.registerClientSpecificHandler((ServiceDefTarget)myConversationService, aClientHandler);
//custom logic for the UI control
initUILogic();
}
});