List of usage examples for org.apache.wicket.ajax AjaxRequestTarget add
void add(Component... components);
From source file:au.com.scds.isis.viewer.wicket.ui.components.entity.properties.MyEntityPropertiesForm.java
License:Apache License
private void requestRepaintPanel(final AjaxRequestTarget target) { if (target != null) { target.add(owningPanel); // TODO: is it necessary to add these too? target.add(editButton, okButton, cancelButton, feedback); }/*from www.j av a 2 s . c om*/ }
From source file:au.org.theark.admin.web.component.activitymonitor.ActivityMonitorContainerPanel.java
License:Open Source License
/** * @param id/*from w w w . ja v a2 s . c o m*/ */ public ActivityMonitorContainerPanel(String id) { super(id); form = new Form<ActivityMonitorVO>("form", new CompoundPropertyModel<ActivityMonitorVO>(new ActivityMonitorVO())); form.add(initialiseFeedBackPanel()); form.add(initialiseSearchResults()); refresh = new AjaxButton("refresh") { private static final long serialVersionUID = 1L; @Override protected void onError(AjaxRequestTarget target, Form<?> form) { log.error("Error on refresh click"); } @Override protected void onSubmit(AjaxRequestTarget target, Form<?> form) { target.add(searchResultsPanel); } }; refresh.setDefaultFormProcessing(false); form.add(refresh); add(form); }
From source file:au.org.theark.admin.web.component.function.form.DetailForm.java
License:Open Source License
protected void onSave(Form<AdminVO> containerForm, AjaxRequestTarget target) { // Save or update iAdminService.createOrUpdateArkFunction(containerForm.getModelObject()); onSavePostProcess(target);//from w w w. j a v a2s. c o m this.info("Ark Function: " + containerForm.getModelObject().getArkFunction().getName() + " was created/updated successfully."); target.add(feedBackPanel); }
From source file:au.org.theark.admin.web.component.function.form.DetailForm.java
License:Open Source License
protected void processErrors(AjaxRequestTarget target) { target.add(feedBackPanel); }
From source file:au.org.theark.admin.web.component.function.form.SearchForm.java
License:Open Source License
protected void onSearch(AjaxRequestTarget target) { target.add(feedbackPanel); long count = iAdminService.getArkFunctionCount(containerForm.getModelObject().getArkFunction()); if (count == 0L) { this.info("There are no records that matched your query. Please modify your filter"); target.add(feedbackPanel);/*from w w w . j a v a2s . c o m*/ } arkCrudContainerVo.getSearchResultPanelContainer().setVisible(true); target.add(arkCrudContainerVo.getSearchResultPanelContainer()); }
From source file:au.org.theark.admin.web.component.function.form.SearchForm.java
License:Open Source License
protected void onNew(AjaxRequestTarget target) { target.add(feedbackPanel); containerForm.setModelObject(new AdminVO()); preProcessDetailPanel(target);/*from w ww.j a v a2s . c om*/ // Refresh base container form to remove any feedBack messages target.add(containerForm); }
From source file:au.org.theark.admin.web.component.function.SearchResultsPanel.java
License:Open Source License
private AjaxLink<ArkFunction> buildLink(final ArkFunction arkFunction) { ArkBusyAjaxLink<ArkFunction> link = new ArkBusyAjaxLink<ArkFunction>("link") { private static final long serialVersionUID = 1L; @Override//from w w w .ja v a 2s . c o m public void onClick(AjaxRequestTarget target) { Long id = arkFunction.getId(); ArkFunction ArkFunction = iAdminService.getArkFunction(id); containerForm.getModelObject().setArkFunction(ArkFunction); ArkCRUDHelper.preProcessDetailPanelOnSearchResults(target, arkCrudContainerVo); // Refresh base container form to remove any feedBack messages target.add(containerForm); } }; // Add the label for the link Label linkLabel = new Label("arkFunction.name", arkFunction.getName()); link.add(linkLabel); return link; }
From source file:au.org.theark.admin.web.component.module.form.DetailForm.java
License:Open Source License
protected void onSave(Form<AdminVO> containerForm, AjaxRequestTarget target) { // Save or update iAdminService.createOrUpdateArkModule(containerForm.getModelObject()); onSavePostProcess(target);/*from w ww.j a va 2 s . c om*/ this.info("Ark Module: " + containerForm.getModelObject().getArkModule().getName() + " was created/updated successfully."); target.add(feedBackPanel); }
From source file:au.org.theark.admin.web.component.module.form.DetailForm.java
License:Open Source License
protected void onDeleteConfirmed(AjaxRequestTarget target, String selectionO) { // Delete//w w w . jav a 2s . co m iAdminService.deleteArkModule(containerForm.getModelObject()); this.info("Ark Module: " + containerForm.getModelObject().getArkModule().getName() + " was deleted successfully."); target.add(feedBackPanel); editCancelProcess(target); }
From source file:au.org.theark.admin.web.component.module.form.SearchForm.java
License:Open Source License
protected void onSearch(AjaxRequestTarget target) { target.add(feedbackPanel); long count = iAdminService.getArkModuleCount(containerForm.getModelObject().getArkModule()); if (count == 0L) { this.info("There are no records that matched your query. Please modify your filter"); target.add(feedbackPanel);/*from w w w .ja va 2 s.com*/ } arkCrudContainerVo.getSearchResultPanelContainer().setVisible(true); target.add(arkCrudContainerVo.getSearchResultPanelContainer()); }