@Override protected void onUpdate(AjaxRequestTarget target) { layerChoice.setChoices(new Model<ArrayList<String>>( getLayerNames(workspaceChoice.getConvertedInput()))); layerChoice.modelChanged(); target.addComponent(layerChoice); } });
@Override protected void onUpdate(AjaxRequestTarget target) { layerChoice.setChoices( new Model<ArrayList<String>>( getLayerNames(rootChoice.getConvertedInput()))); layerChoice.modelChanged(); target.add(layerChoice); } });
@Override protected void onUpdate(AjaxRequestTarget target) { layerChoice.setChoices(new Model<ArrayList<String>>( getLayerNames(workspaceChoice.getConvertedInput()))); layerChoice.modelChanged(); target.addComponent(layerChoice); } });
form.add(layerChoice = new DropDownChoice<String>("layer", getLayerNames(rule.getWorkspace()))); layerChoice.setRequired(true); layerChoice.setOutputMarkupId(true);
form.add(layerChoice = new DropDownChoice<String>("layer", getLayerNames(rule.getWorkspace()))); layerChoice.setRequired(true); layerChoice.setOutputMarkupId(true);
layerContainer.add(layerAndLabel = new WebMarkupContainer("layerAndLabel")); layerAndLabel.add( layerChoice = new DropDownChoice<String>("layer", getLayerNames(rule.getRoot()))); layerAndLabel.setVisible(!rule.isGlobalGroupRule()); layerChoice.setRequired(true);