Java Code Examples for org.apache.wicket.markup.html.form.TextField.setOutputMarkupId()

The following are Jave code examples for showing how to use setOutputMarkupId() of the org.apache.wicket.markup.html.form.TextField class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: engerek   File: TextPopupPanel.java   Source Code and License Vote up 6 votes
private void initLayout() {
    final TextField input = initTextField();

    input.add(new AjaxFormComponentUpdatingBehavior("blur") {

        @Override
        protected void onUpdate(AjaxRequestTarget target) {
            //nothing to do, just update model data
        }
    });
    input.add(new Behavior() {

        @Override
        public void bind(Component component) {
            super.bind(component);

            component.add(AttributeModifier.replace("onkeydown",
                    Model.of("if(event.keyCode == 13) {event.preventDefault();}")));
        }
    });
    input.setOutputMarkupId(true);
    add(input);
}
 
Example 2
Project: Unicorn   File: EventTypeAliasPanel.java   Source Code and License Vote up 6 votes
private void buildEventTypeAliasInput() {
	final TextField<String> eventTypeAliasInput = new TextField<String>("eventTypeAliasInput", new PropertyModel<String>(this, "alias"));
	eventTypeAliasInput.setOutputMarkupId(true);

	final OnChangeAjaxBehavior onChangeAjaxBehavior = new OnChangeAjaxBehavior() {
		private static final long serialVersionUID = -1427433442511094442L;

		@Override
		protected void onUpdate(final AjaxRequestTarget target) {
			// TODO: make sure that alias does not already exist somewhere
			EventTypeAliasPanel.this.element.setAlias(EventTypeAliasPanel.this.alias);
			target.add(EventTypeAliasPanel.this.panel.getAttributeTreePanel().getAttributeTreeTable());
		}
	};
	eventTypeAliasInput.add(onChangeAjaxBehavior);

	this.layoutForm.add(eventTypeAliasInput);
}
 
Example 3
Project: artifactory   File: HttpRepoAdvancedPanel.java   Source Code and License Vote up 6 votes
private void addCacheFields() {
    WebMarkupContainer cacheBorder = new WebMarkupContainer("cacheBorder");
    cacheBorder.add(new TitledBorderBehavior("fieldset-border", "Cache"));
    add(cacheBorder);

    // unusedArtifactsCleanupPeriodHours
    final TextField<Integer> unusedCleanupTextField = new TextField<>("unusedArtifactsCleanupPeriodHours",
            Integer.class);
    unusedCleanupTextField.add(new MinimumValidator<>(0)).setRequired(true);
    unusedCleanupTextField.setOutputMarkupId(true);
    cacheBorder.add(unusedCleanupTextField);
    cacheBorder.add(new SchemaHelpBubble("unusedArtifactsCleanupPeriodHours.help"));

    addDurationField(cacheBorder, "retrievalCachePeriodSecs");
    addDurationField(cacheBorder, "assumedOfflinePeriodSecs");
    addDurationField(cacheBorder, "missedRetrievalCachePeriodSecs");
}
 
Example 4
Project: directory-fortress-commander   File: GroupDetailPanel.java   Source Code and License Vote up 6 votes
private void addGroupDetailFields()
{
    add( new Label( "groupAssignmentsLabel", "Group Detail" ) );
    TextField name = new TextField( "name" );
    add( name );
    name.setRequired( false );
    TextField protocol = new TextField( "protocol" );
    add( protocol );
    TextField description = new TextField( "description" );
    description.setRequired( false );
    add( description );
    protocol.setRequired( true );
    memberPropsCB = new ComboBox<>( "memberProps", new PropertyModel<String>( this,
        "memberPropsSelection" ), new ArrayList<String>() );
    memberPropsCB.setOutputMarkupId( true );
    add( memberPropsCB );
    memberAssignTF = new TextField( "memberAssign", new PropertyModel( this, "memberAssign" ) );
    memberAssignTF.setOutputMarkupId( true );
    add( memberAssignTF );
    addUserSearchModal();
    createDataTable( null );
}
 
Example 5
Project: engerek   File: MyPasswordQuestionsPanel.java   Source Code and License Vote up 5 votes
public void initLayout() {
	// final Label question = new Label (F_QUESTION, mod.getPwdQuestion());
	final Label question = new Label(F_QUESTION, new PropertyModel<PasswordQuestionsDto>(mod,
			PasswordQuestionsDto.F_MY_QUESTIONS__QUESTIONITSELF));
	question.setOutputMarkupId(true);
	add(question);

	final TextField<String> answer = new TextField<String>(F_ANSWER, new PropertyModel(mod,
			SecurityQuestionAnswerDTO.F_PASSWORD_QUESTION_ANSWER));
	answer.setRequired(true);
	answer.setOutputMarkupId(true);
	add(answer);

}
 
Example 6
Project: Unicorn   File: UploadPanel.java   Source Code and License Vote up 5 votes
private void addCategoryTextField() {
	final TextField<String> categoryTextField = new TextField<String>("categoryTextField", new Model<String>());
	categoryTextField.setOutputMarkupId(true);
	categoryTextField.add(new AjaxFormComponentUpdatingBehavior("onchange") {
		private static final long serialVersionUID = 1L;

		@Override
		protected void onUpdate(final AjaxRequestTarget target) {
			category = categoryTextField.getModelObject();
		}
	});
	layoutForm.add(categoryTextField);
}
 
Example 7
Project: Unicorn   File: UploadPanel.java   Source Code and License Vote up 5 votes
private void addNameTextField() {
	final TextField<String> nameTextField = new TextField<String>("nameTextField", new Model<String>());
	nameTextField.setOutputMarkupId(true);
	nameTextField.add(new AjaxFormComponentUpdatingBehavior("onchange") {
		private static final long serialVersionUID = 1L;

		@Override
		protected void onUpdate(final AjaxRequestTarget target) {
			name = nameTextField.getModelObject();
		}
	});
	layoutForm.add(nameTextField);
}
 
Example 8
Project: artifactory   File: IvySettingsRepoSelectorPanel.java   Source Code and License Vote up 5 votes
private void addResolverFields(RepoType repoType) {
    add(new Label("resolverNameLabel", getResolverLabel(repoType)));
    TextField<String> resolverTextField =
            new TextField<>("resolverName", new PropertyModel<String>(this, "resolverName"));
    resolverTextField.setOutputMarkupId(true);
    add(resolverTextField);
    add(new HelpBubble("resolverName.help", new ResourceModel("resolverName.help")));
}
 
Example 9
Project: artifactory   File: ArchiveSearchPanel.java   Source Code and License Vote up 5 votes
@Override
protected void addSearchComponents(Form form) {
    searchControls = new ArchiveSearchControls();
    searchControls.setPath("*"); //default to any path
    getDataProvider().setGroupParam(new SortParam("searchResult.entryName", true));

    TextField pathText = new TextField("path", new PropertyModel<String>(searchControls, "path"));
    pathText.setOutputMarkupId(true);
    setPersistent(pathText);
    form.add(pathText);
    form.add(new HelpBubble("path.help", new ResourceModel("path.help")));

    TextField nameText = new TextField("name", new PropertyModel<String>(searchControls, "name"));
    nameText.setOutputMarkupId(true);
    setPersistent(nameText);
    form.add(nameText);
    form.add(new HelpBubble("name.help", new ResourceModel("name.help")));

    form.add(new StyledCheckbox("searchClassResourcesOnly",
            new PropertyModel<Boolean>(this, "searchClassResourcesOnly")));
    form.add(new HelpBubble("searchClassResourcesOnly.help", new ResourceModel("searchClassResourcesOnly.help")));

    form.add(new StyledCheckbox("excludeInnerClasses",
            new PropertyModel<Boolean>(this, "excludeInnerClasses")));
    form.add(new HelpBubble("excludeInnerClassesHelp", "Mark to exclude inner classes from the list of results."));

    //Group entry names which are similar but have different character cases
    getDataProvider().setGroupRenderer("searchResult.entry",
            new ChoiceRenderer<ActionableSearchResult<ArchiveSearchResult>>("searchResult.entryName",
                    "searchResult.lowerCaseEntryName"));
}
 
Example 10
Project: artifactory   File: GavcSearchPanel.java   Source Code and License Vote up 5 votes
@Override
protected void addSearchComponents(Form form) {
    add(new CssClass("gavc-panel"));
    searchControls = new GavcSearchControls();

    TextField groupIdField = new TextField<>("groupIdField",
            new PropertyModel<String>(searchControls, "groupId"));
    groupIdField.setOutputMarkupId(true);
    setPersistent(groupIdField);
    form.add(groupIdField);
    form.add(new HelpBubble("groupIdHelp", "The Group ID of the artifact. * and ? are accepted."));

    TextField artifactIdField = new TextField<>("artifactIdField",
            new PropertyModel<String>(searchControls, "artifactId"));
    artifactIdField.setOutputMarkupId(true);
    setPersistent(artifactIdField);
    form.add(artifactIdField);
    form.add(new HelpBubble("artifactIdHelp", "The Artifact ID of the artifact. * and ? are accepted."));

    TextField versionField = new TextField<>("versionField",
            new PropertyModel<String>(searchControls, "version"));
    setPersistent(versionField);
    versionField.setOutputMarkupId(true);
    form.add(versionField);
    form.add(new HelpBubble("versionHelp", "The version of the artifact. * and ? are accepted."));

    TextField classifierField = new TextField<>("classifierField",
            new PropertyModel<String>(searchControls, "classifier"));
    classifierField.setOutputMarkupId(true);
    setPersistent(classifierField);
    form.add(classifierField);
    form.add(new HelpBubble("classifierHelp", "The classifier of the artifact. * and ? are accepted."));
}
 
Example 11
Project: artifactory   File: BintraySearchPanel.java   Source Code and License Vote up 5 votes
private void addSearchControl(Form form) {
    TextField<String> searchControl = new TextField<>("query",
            new PropertyModel<String>(searchControls, "query"));
    searchControl.setOutputMarkupId(true);
    form.add(searchControl);

}
 
Example 12
Project: artifactory   File: ArtifactSearchPanel.java   Source Code and License Vote up 5 votes
@Override
protected void addSearchComponents(Form form) {
    searchControls = new ArtifactSearchControls();

    TextField searchControl = new TextField<>("query", new PropertyModel<String>(searchControls, "query"));
    searchControl.setOutputMarkupId(true);
    form.add(searchControl);

    form.add(new HelpBubble("searchHelp", "Artifact name. * and ? are accepted."));
}
 
Example 13
Project: artifactory   File: ChecksumSearchPanel.java   Source Code and License Vote up 5 votes
@Override
protected void addSearchComponents(Form form) {
    searchControls = new ChecksumSearchControls();

    TextField searchControl = new TextField<>("query", new PropertyModel<String>(this, "query"));
    searchControl.setOutputMarkupId(true);
    form.add(searchControl);
    form.add(new HelpBubble("searchHelp", "Artifact SHA-1 or MD5 checksum."));
}
 
Example 14
Project: artifactory   File: CustomizingPanel.java   Source Code and License Vote up 5 votes
public CustomizingPanel(String id, IModel model) {
    super(id, model);
    add(new CssClass("general-settings-panel"));

    fileUploadLogo = new LogoFileUploadForm("logoPath", this);
    add(fileUploadLogo);

    TextField<String> urlLogo = new TextField<>("logo");
    urlLogo.add(new UriValidator("http", "https"));
    urlLogo.add(new UrlChangedBehavior());
    urlLogo.setOutputMarkupId(true);
    fileUploadLogo.add(urlLogo);

    TextField<String> footer = new TextField<>("footer");

    fileUploadLogo.add(new ResetLink("reset", fileUploadLogo));
    footer.add(StringValidator.maximumLength(MAX_FOOTER_LENGTH));
    footer.add(new AttributeModifier("maxlength", MAX_FOOTER_LENGTH));
    footer.setOutputMarkupId(true);
    add(footer);

    fileUploadLogo.add(new SchemaHelpBubble(("logo.help")));
    fileUploadLogo.add(new HelpBubble("logoFile.help", "Upload a logo image file."));
    add(new SchemaHelpBubble("footer.help"));

    fileUploadLogo.add(new PreviewLogoPanel("logoPreview"));
}
 
Example 15
Project: artifactory   File: MoveAndCopyPathPanel.java   Source Code and License Vote up 5 votes
public MoveAndCopyPathPanel(String id, IModel targetRepoModel, final MoveAndCopyBasePanel.OperationType opType) {
    super(id);
    this.opType = opType;
    init();
    add(new CssClass("advanced-search-panel"));

    TextField targetPathField = new TextField<>("targetPath", targetRepoModel);
    targetPathField.setOutputMarkupId(true);
    setPersistent(targetPathField);
    targetPathField.setEnabled(true);
    add(targetPathField);

    setVisible(false);
}
 
Example 16
Project: directory-fortress-commander   File: RoleAdminDetailPanel.java   Source Code and License Vote up 5 votes
public RoleAdminDetailPanel( String id, final IModel roleModel )
{
    super( id, roleModel );

    permouCB = new ComboBox<>( GlobalIds.OS_P, new PropertyModel<String>( this, PERMOU_SELECTION ), permous );
    permouCB.setOutputMarkupId( true );
    add( permouCB );
    addPermOUSearchModal();

    userouCB = new ComboBox<>( GlobalIds.OS_U, new PropertyModel<String>( this, USEROU_SELECTION ), userous );
    userouCB.setOutputMarkupId( true );
    add( userouCB );
    addUserOUSearchModal();

    beginRangeTF = new TextField( GlobalIds.BEGIN_RANGE );
    beginRangeTF.setRequired( false );
    beginRangeTF.setOutputMarkupId( true );
    add( beginRangeTF );
    addBeginRoleSearchModal();

    CheckBox beginInclusiveCB = new CheckBox( GlobalIds.BEGIN_INCLUSIVE );
    beginInclusiveCB.setRequired( false );
    add( beginInclusiveCB );

    endRangeTF = new TextField( GlobalIds.END_RANGE );
    endRangeTF.setRequired( false );
    endRangeTF.setOutputMarkupId( true );
    add( endRangeTF );
    addEndRoleSearchModal();

    CheckBox endInclusiveCB = new CheckBox( GlobalIds.END_INCLUSIVE );
    endInclusiveCB.setRequired( false );
    add( endInclusiveCB );

    setOutputMarkupId( true );
}
 
Example 17
Project: engerek   File: QNameEditorPanel.java   Source Code and License Vote up 4 votes
private void initLayout(String localPartLabelKey, String localPartTooltipKey,
	String namespaceLabelKey, String namespaceTooltipKey, boolean markLocalPartAsRequired, boolean markNamespaceAsRequired){

      Label localPartLabel = new Label(ID_LOCAL_PART_LABEL, getString(localPartLabelKey));
      localPartLabel.setOutputMarkupId(true);
      localPartLabel.setOutputMarkupPlaceholderTag(true);
      add(localPartLabel);

WebMarkupContainer localPartRequired = new WebMarkupContainer(ID_LOCAL_PART_REQUIRED);
localPartRequired.setVisible(markLocalPartAsRequired);
add(localPartRequired);

      Label namespaceLabel = new Label(ID_NAMESPACE_LABEL, getString(namespaceLabelKey));
      namespaceLabel.setOutputMarkupId(true);
      namespaceLabel.setOutputMarkupPlaceholderTag(true);
      add(namespaceLabel);

WebMarkupContainer namespaceRequired = new WebMarkupContainer(ID_NAMESPACE_REQUIRED);
namespaceRequired.setVisible(markNamespaceAsRequired);
add(namespaceRequired);

TextField localPart = new TextField<>(ID_LOCAL_PART, localpartModel);
      localPart.setOutputMarkupId(true);
      localPart.setOutputMarkupPlaceholderTag(true);
      localPart.setRequired(isLocalPartRequired());
localPart.add(new UpdateBehavior());
      add(localPart);

      DropDownChoice namespace = new DropDownChoice<>(ID_NAMESPACE, namespaceModel, prepareNamespaceList());
      namespace.setOutputMarkupId(true);
      namespace.setOutputMarkupPlaceholderTag(true);
      namespace.setNullValid(false);
      namespace.setRequired(isNamespaceRequired());
namespace.add(new UpdateBehavior());
      add(namespace);

      Label localPartTooltip = new Label(ID_T_LOCAL_PART);
      localPartTooltip.add(new AttributeAppender("data-original-title", getString(localPartTooltipKey)));
      localPartTooltip.add(new InfoTooltipBehavior());
      localPartTooltip.setOutputMarkupPlaceholderTag(true);
      add(localPartTooltip);

      Label namespaceTooltip = new Label(ID_T_NAMESPACE);
      namespaceTooltip.add(new AttributeAppender("data-original-title", getString(namespaceTooltipKey)));
      namespaceTooltip.add(new InfoTooltipBehavior());
      namespaceTooltip.setOutputMarkupPlaceholderTag(true);
      add(namespaceTooltip);
  }
 
Example 18
Project: artifactory   File: LoginPanel.java   Source Code and License Vote up 4 votes
public LoginPanel(String string, Form form) {
    super(string);

    Label defaultCredentialsLabel = new Label("defaultCredentials", " (default: admin/password)");
    try {
        UserInfo userInfo = userGroupService.findUser("admin");
        defaultCredentialsLabel.setVisible(neverLoggedIn(userInfo) && defaultAdminPassword(userInfo));
    } catch (Exception ignored) {
        defaultCredentialsLabel.setVisible(false);
    }
    add(defaultCredentialsLabel);

    // add username
    TextField username = new TextField("username");
    username.setRequired(true);
    username.setMarkupId("username");
    username.setOutputMarkupId(true);
    username.add(new AttributeModifier("autocomplete", new AbstractReadOnlyModel<String>() {
        @Override
        public String getObject() {
            return ConstantValues.useUserNameAutoCompleteOnLogin.getString();
        }
    }));

    add(username);

    // add password
    PasswordTextField password = new PasswordTextField("password");
    password.setRequired(false);
    password.setMarkupId("password");
    password.setOutputMarkupId(true);
    add(password);

    // add login link
    TitledPageLink ssoLoginLink = new TitledPageLink("ssoLogin", "SSO Login", null) {
        @Override
        protected CharSequence getURL() {
            return addons.addonByType(SamlAddon.class).getSamlLoginIdentityProviderUrl();
        }

        @Override
        public boolean isEnabled() {
            return addons.addonByType(SamlAddon.class).isSamlEnabled();
        }

        @Override
        public boolean isVisible() {
            return addons.addonByType(SamlAddon.class).isSamlEnabled();
        }
    };
    add(ssoLoginLink);
    // add login link
    IFormSubmittingComponent loginLink =
            addons.addonByType(WebApplicationAddon.class).getLoginLink("loginLink", form);
    addDefaultButton(loginLink);


    // add remember me checkbox
    StyledCheckbox checkbox = new StyledCheckbox("rememberMe") {
        @Override
        protected String getCheckboxInputName(String defaultName) {
            // set the parameter name to springs' remember me filter default name
            return AbstractRememberMeServices.DEFAULT_PARAMETER;
        }
    };
    checkbox.setSubmitButton((Component) loginLink);
    checkbox.setOutputMarkupPlaceholderTag(true);
    checkbox.setVisible(!ConstantValues.securityDisableRememberMe.getBoolean());
    add(checkbox);

    // add cancel link
    addButton(new TitledPageLink("cancel", "Cancel", ArtifactoryApplication.get().getHomePage()));

    // add forgot password link
    if (isMailServerConfigured()) {
        addButton(new ForgotPasswordLink("forgotPassword"));
    }
}
 
Example 19
Project: artifactory   File: HttpRepoBasicPanel.java   Source Code and License Vote up 4 votes
public HttpRepoBasicPanel(String id, final HttpRepoDescriptor repoDescriptor) {
    super(id);
    add(new CssClass("advanced-remote-repo"));

    HttpRepoGeneralSettingsPanel generalSettings = new HttpRepoGeneralSettingsPanel("generalSettings");
    add(generalSettings);

    // url
    TextField<String> urlField = new TextField<>("url");
    urlField.add(new UriValidator("http", "https"));
    generalSettings.add(urlField);
    generalSettings.add(new SchemaHelpBubble("url.help"));

    final TextField<Integer> maxUniqueSnapshots = new TextField<>("maxUniqueSnapshots", Integer.class);
    maxUniqueSnapshots.setEnabled(repoDescriptor.isHandleSnapshots());
    maxUniqueSnapshots.setRequired(true);
    maxUniqueSnapshots.setOutputMarkupId(true);
    add(maxUniqueSnapshots);
    add(new SchemaHelpBubble("maxUniqueSnapshots.help"));

    // checksumPolicyType
    ChecksumPolicyType[] checksumPolicies = ChecksumPolicyType.values();
    DropDownChoice<ChecksumPolicyType> checksumPoliciesDC = new DropDownChoice<>(
            "checksumPolicyType", Arrays.asList(checksumPolicies));
    checksumPoliciesDC.setChoiceRenderer(new ChecksumPolicyChoiceRenderer());
    add(checksumPoliciesDC);
    add(new SchemaHelpBubble("remoteRepoChecksumPolicyType.help", "checksumPolicyType"));

    // checkboxes
    add(new StyledCheckbox("handleReleases"));
    add(new SchemaHelpBubble("handleReleases.help"));

    StyledCheckbox handleSnapshots = new StyledCheckbox("handleSnapshots");
    handleSnapshots.add(new AjaxFormComponentUpdatingBehavior("onclick") {
        @Override
        protected void onUpdate(AjaxRequestTarget target) {
            maxUniqueSnapshots.setEnabled(repoDescriptor.isHandleSnapshots());
            if (!repoDescriptor.isHandleSnapshots()) {
                maxUniqueSnapshots.setModelObject(0);
            }
            target.add(maxUniqueSnapshots);
        }
    });
    add(handleSnapshots);
    add(new SchemaHelpBubble("handleSnapshots.help"));

    add(new StyledCheckbox("blackedOut"));
    add(new SchemaHelpBubble("blackedOut.help"));

    add(new StyledCheckbox("offline"));
    add(new SchemaHelpBubble("offline.help"));

    add(new StyledCheckbox("shareConfiguration"));
    add(new SchemaHelpBubble("shareConfiguration.help"));
}
 
Example 20
Project: sakai   File: CompanyProfileEdit.java   Source Code and License Vote up 4 votes
public CompanyProfileEdit(String id, CompanyProfile companyProfile) {

		super(id, new Model(companyProfile));

		WebMarkupContainer companyNameContainer = new WebMarkupContainer(
				"companyNameContainer");
		companyNameContainer.add(new Label("companyNameLabel",
				new ResourceModel("profile.business.company.name")));
		TextField companyName = new TextField("companyName",
				new PropertyModel(companyProfile, "companyName"));
		companyName.setOutputMarkupId(true);
		companyNameContainer.add(companyName);
		String companyNameId = companyName.getMarkupId();
		Label companyNameAccessibilityLabel = new Label("companyNameAccessibilityLabel", new ResourceModel("accessibility.profile.companyname.input"));
		companyNameAccessibilityLabel.add(new AttributeAppender("for",new Model(companyNameId)," "));
		companyNameContainer.add(companyNameAccessibilityLabel);

		add(companyNameContainer);

		WebMarkupContainer companyWebAddressContainer = new WebMarkupContainer(
				"companyWebAddressContainer");
		companyWebAddressContainer.add(new Label("companyWebAddressLabel",
				new ResourceModel("profile.business.company.web")));

		TextField companyWebAddress = new TextField("companyWebAddress",
				new PropertyModel(companyProfile, "companyWebAddress")) {

			private static final long serialVersionUID = 1L;

			// add http:// if missing
			@Override
			protected void convertInput() {
				String input = getInput();

				if (StringUtils.isNotBlank(input)
						&& !(input.startsWith("http://") || input
								.startsWith("https://"))) {
					setConvertedInput("http://" + input);
				} else {
					setConvertedInput(StringUtils.isBlank(input) ? null : input);
				}
			}
		};
		companyWebAddress.setOutputMarkupId(true);
		companyWebAddress.add(new UrlValidator());
		companyWebAddressContainer.add(companyWebAddress);
		String companyUrlId = companyWebAddress.getMarkupId();
		Label companyUrlAccessibilityLabel = new Label("companyUrlAccessibilityLabel", new ResourceModel("accessibility.profile.companyurl.input"));
		companyUrlAccessibilityLabel.add(new AttributeAppender("for",new Model(companyUrlId)," "));
		companyWebAddressContainer.add(companyUrlAccessibilityLabel);

		final FeedbackLabel companyWebAddressFeedback = new FeedbackLabel(
				"companyWebAddressFeedback", companyWebAddress);
		companyWebAddressFeedback.setOutputMarkupId(true);
		companyWebAddressContainer.add(companyWebAddressFeedback);
		companyWebAddress.add(new ComponentVisualErrorBehaviour("onblur",
				companyWebAddressFeedback));
		companyWebAddress.add(new AttributeAppender("aria-describedby",new Model(companyWebAddressFeedback.getMarkupId())," "));

		add(companyWebAddressContainer);

		WebMarkupContainer companyDescriptionContainer = new WebMarkupContainer(
				"companyDescriptionContainer");
		companyDescriptionContainer.add(new Label("companyDescriptionLabel",
				new ResourceModel("profile.business.company.description")));
		TextArea companyDescription = new TextArea("companyDescription",
				new PropertyModel(companyProfile, "companyDescription"));
		companyDescription.setOutputMarkupId(true);
		companyDescriptionContainer.add(companyDescription);
		String companyDescriptionId = companyDescription.getMarkupId();
		Label companyDescriptionAccessibilityLabel = new Label("companyDescriptionAccessibilityLabel", new ResourceModel("accessibility.profile.companydescription.input"));
		companyDescriptionAccessibilityLabel.add(new AttributeAppender("for",new Model(companyDescriptionId)," "));
		companyDescriptionContainer.add(companyDescriptionAccessibilityLabel);

		add(companyDescriptionContainer);
	}