use of javax.faces.component.UIData in project TNTConcept by autentia.
the class CommissioningBean method deleteFile.
public String deleteFile() {
UIData table = (UIData) FacesUtils.getComponent("commissioning:list");
CommissioningFile toDelete = (CommissioningFile) table.getRowData();
commissioning.getFiles().remove(toDelete);
return null;
}
use of javax.faces.component.UIData in project TNTConcept by autentia.
the class ContactBean method deleteOwner.
public String deleteOwner() {
final UIData table = (UIData) FacesUtils.getComponent("contact:owners");
final User toDelete = (User) table.getRowData();
contact.removeOwner(toDelete);
if (contact.getOwners().isEmpty()) {
FacesUtils.addWarningMessage("contact:ownersList", "editContact.emptyOwners", null);
}
return NavigationResults.EDIT;
}
use of javax.faces.component.UIData in project TNTConcept by autentia.
the class OfferBean method editInteractions.
/**
* Create a new empty instance of the one-to-many field
*
* @return forward to the same page
*/
public String editInteractions() {
UIData table = (UIData) FacesUtils.getComponent("offer:interactions");
InteractionBean iB = (InteractionBean) FacesUtils.getBean("interactionBean");
Interaction interactionSelectedInOfferEdit = (Interaction) table.getRowData();
if (interactionSelectedInOfferEdit.getId() != null) {
Interaction interaction = InteractionManager.getDefault().getEntityById(interactionSelectedInOfferEdit.getId());
iB.setInteractionFromOffer(interaction);
iB.setSelectedOrganization(interaction.getProject().getClient());
} else {
iB.setInteractionFromOffer(interactionSelectedInOfferEdit);
}
return NavigationResults.OFFER_CREATE_INTERACTION;
}
use of javax.faces.component.UIData in project TNTConcept by autentia.
the class DocumentBean method deleteCategories.
/**
* Delete selected instance of the one-to-many field
*
* @return forward to the same page
*/
public String deleteCategories() {
UIData table = (UIData) FacesUtils.getComponent("editDocument:categories");
document.getCategories().remove(table.getRowData());
return null;
}
use of javax.faces.component.UIData in project TNTConcept by autentia.
the class OrganizationBean method deleteDepartment.
public String deleteDepartment() {
final UIData table = (UIData) FacesUtils.getComponent("organization:departments");
final Department toDelete = (Department) table.getRowData();
organization.getDepartments().remove(toDelete);
return NavigationResults.EDIT;
}
Aggregations