Java Code Examples for org.apache.wicket.markup.html.panel.EmptyPanel#setOutputMarkupId()
The following examples show how to use
org.apache.wicket.markup.html.panel.EmptyPanel#setOutputMarkupId() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NoPagingStrategy.java From inception with Apache License 2.0 | 5 votes |
@Override public Component createPositionLabel(String aId, IModel<AnnotatorState> aModel) { EmptyPanel emptyPanel = new EmptyPanel(aId); // Just to avoid errors when re-rendering this is requested in an AJAX request emptyPanel.setOutputMarkupId(true); return emptyPanel; }
Example 2
Source File: SimulationLearningCurvePanel.java From inception with Apache License 2.0 | 4 votes |
public SimulationLearningCurvePanel(String aId, Project aProject, IModel<Recommender> aSelectedRecommenderPanel) { super(aId); project = aProject; selectedRecommenderPanel = aSelectedRecommenderPanel; evaluate = true; Form<Recommender> form = new Form<>(MID_FORM); add(form); final DropDownChoice<RecommenderEvaluationScoreMetricEnum> dropdown = new BootstrapSelect<RecommenderEvaluationScoreMetricEnum>( "select", new Model<RecommenderEvaluationScoreMetricEnum>(DROPDOWN_VALUES.get(0)), new ListModel<RecommenderEvaluationScoreMetricEnum>(DROPDOWN_VALUES)); dropdown.setOutputMarkupId(true); selectedValue = RecommenderEvaluationScoreMetricEnum.Accuracy; dropdown.add(new AjaxFormComponentUpdatingBehavior("change") { private static final long serialVersionUID = -6744838136235652577L; @Override protected void onUpdate(AjaxRequestTarget _target) { selectedValue = dropdown.getModelObject(); if (chartPanel == null) { return; } startEvaluation(_target, form); } }); form.add(dropdown); emptyPanel = new EmptyPanel(MID_CHART_CONTAINER); emptyPanel.setOutputMarkupPlaceholderTag(true); emptyPanel.setMarkupId(OUTPUT_MID_CHART_CONTAINER); emptyPanel.setOutputMarkupId(true); form.add(emptyPanel); // clicking the start button the annotated documents are evaluated and the learning curve // for the selected recommender is plotted in the hCart Panel @SuppressWarnings({ "unchecked", "rawtypes" }) LambdaAjaxButton startButton = new LambdaAjaxButton(MID_SIMULATION_START_BUTTON, (_target, _form) -> startEvaluation(_target, _form ) ); form.add(startButton); }
Example 3
Source File: BasePage.java From wicket-spring-boot with Apache License 2.0 | 4 votes |
private void initPage(){ defaultModal = new EmptyPanel("defaultModal"); defaultModal.setOutputMarkupId(true); add(defaultModal); }