private void initUI() { History.addValueChangeHandler(this); addDomHandler(this, ClickEvent.getType()); GWTUtils.setUidToElement(UID_CAPTION_CLICK, elCaption); GWTUtils.setUidToElement(UID_LOGIN, elLogin); GWTUtils.setUidToElement(UID_LOGOUT, elLogout); JSONObject json = JSONHelper.getJsonFromElement(Actions.JSON_DATA_EL_ID); String loggedInUser = null; if (json != null) { loggedInUser = JSONHelper.getString(json, "user"); } setCurrentUser(loggedInUser); }