@Override
protected ModelFacade<String> createFormComponent(AttributeDefinition attribute, final IModel<String> model) {
PopupSettings popupSettings =
new PopupSettings("popuppagemap").setHeight(300).setWidth(600).setLeft(50).setTop(50);
Link<OAuthData> pageLink =
new Link<OAuthData>("popupLink", new OAuthPageModel(
new Model<OAuthData>(attribute.getOAuthConfiguration()))) {
@Override
public void onClick() {
OAuthData oauth = getModelObject();
String redirectURL = buildRedirectURL(getRequest());