Example usage for org.apache.wicket.ajax AjaxRequestTarget add

List of usage examples for org.apache.wicket.ajax AjaxRequestTarget add

Introduction

In this page you can find the example usage for org.apache.wicket.ajax AjaxRequestTarget add.

Prototype

void add(final Component component, final String markupId);

Source Link

Document

Adds a component to the list of components to be rendered

Usage

From source file:at.molindo.esi4j.example.web.HomePage.java

License:Apache License

private void updateSearch(AjaxRequestTarget target) {
    _searchService.refresh();/*from   w  w w .  j  ava 2s .  com*/
    _searchResponseModel.detach();

    if (target != null) {
        target.add(_container, _facetsContainer);
    }
}

From source file:com.evolveum.midpoint.web.component.assignment.AssignmentTablePanel.java

License:Apache License

private void deleteAssignmentConfirmedPerformed(AjaxRequestTarget target, List<AssignmentEditorDto> toDelete) {
    List<AssignmentEditorDto> assignments = assignmentModel.getObject();

    for (AssignmentEditorDto assignment : toDelete) {
        if (UserDtoStatus.ADD.equals(assignment.getStatus())) {
            assignments.remove(assignment);
        } else {/*from  ww w.j a va  2 s  . c  om*/
            assignment.setStatus(UserDtoStatus.DELETE);
            assignment.setSelected(false);
        }
    }

    target.add(getPageBase().getFeedbackPanel(), get(ID_ASSIGNMENTS));
}

From source file:com.evolveum.midpoint.web.component.assignment.AutzActionsTablePanel.java

License:Apache License

private void deleteAuthorizationConfirmedPerformed(AjaxRequestTarget target,
        List<AutzActionsTableDto> toDelete) {
    List<AutzActionsTableDto> auths = getModel().getObject();
    auths.removeAll(toDelete);//from  w w w . j  av  a 2 s  . c o m

    target.add(getPageBase().getFeedbackPanel(), get(ID_AUTZACTIONS));
}