- Common ways to obtain TextParamPanel
private void myMethod () {TextParamPanel t =
IModel paramValue;String str;String str2;new TextParamPanel("<changeme>", paramValue, new ResourceModel(str, str2), true)
- Smart code suggestions by Codota
}
@Override protected void onUpdate(AjaxRequestTarget target) { final String value = dropDownChoice.getModelObject().toString(); repoDirectoryComponent.setVisible( DropDownModel.DIRECTORY_CONFIG.equals(value)); pgPanel.setVisible(DropDownModel.PG_CONFIG.equals(value)); repoNamePanel.setVisible(DropDownModel.PG_CONFIG.equals(value)); target.add(settingsPanel); } });
TextParamPanel tp = new TextParamPanel(componentId, model, new ResourceModel(paramLabel, paramLabel), required); tp.setVisible(false); parameterPanel = tp; } else if ("namespace".equals(paramName)) {
repoNamePanel.setOutputMarkupId(true); repoNamePanel.getFormComponent().setOutputMarkupId(true); repoNamePanel.setVisible( DropDownModel.PG_CONFIG.equals(dropDownChoice.getModelObject().toString())); settingsPanel.add(repoNamePanel);