? profileRestClient.readProfile()
: new UserTO();
editProfileFrag = new Fragment("editProfile", "editProfileFrag", this);
final AjaxLink editProfileLink = new IndicatingAjaxLink("link") {
private static final long serialVersionUID = -7978723352517770644L;
@Override
public void onClick(final AjaxRequestTarget target) {
editProfileModalWin.setPageCreator(new ModalWindow.PageCreator() {
@Override
public Page createPage() {
return new UserRequestModalPage(BasePage.this.getPageReference(), editProfileModalWin,
userTO, UserModalPage.Mode.SELF);
}
});
editProfileModalWin.show(target);
}
};
editProfileLink.add(new Label("linkTitle", getString("editProfile")));
Panel panel = new LinkPanel("editProfile", new ResourceModel("editProfile"));
panel.add(editProfileLink);
editProfileFrag.add(panel);
}