use of javax.faces.component.UIData in project TNTConcept by autentia.
the class ContactBean method deleteTag.
// public void setTags(Set<Tag> tags) {
// contact.setTags(tags);
// }
public String deleteTag() {
final UIData table = (UIData) FacesUtils.getComponent("contact:tags");
final Tag toDelete = (Tag) table.getRowData();
contact.removeTag(toDelete);
return NavigationResults.EDIT;
}
use of javax.faces.component.UIData in project TNTConcept by autentia.
the class OfferBean method deleteRoles.
/**
* Delete selected instance of the one-to-many field
*
* @return forward to the same page
*/
public String deleteRoles() {
UIData table = (UIData) FacesUtils.getComponent("offer:roles");
offer.getRoles().remove(table.getRowData());
return null;
}
use of javax.faces.component.UIData in project TNTConcept by autentia.
the class OfferBean method deleteInteractions.
/**
* Delete selected instance of the one-to-many field
*
* @return forward to the same page
*/
public String deleteInteractions() {
UIData table = (UIData) FacesUtils.getComponent("offer:interactions");
offer.getInteractions().remove(table.getRowData());
Integer idActual = offer.getId();
save();
offer = OfferManager.getDefault().getEntityById(idActual);
return null;
}
use of javax.faces.component.UIData in project TNTConcept by autentia.
the class OfferBean method deleteCosts.
/**
* Delete selected instance of the one-to-many field
*
* @return forward to the same page
*/
public String deleteCosts() {
UIData table = (UIData) FacesUtils.getComponent("offer:costs");
offer.getCosts().remove(table.getRowData());
return null;
}
use of javax.faces.component.UIData in project TNTConcept by autentia.
the class TagBean method deleteContactTags.
/**
* Delete selected instance of the one-to-many field
*
* @return forward to the same page
*/
public String deleteContactTags() {
UIData table = (UIData) FacesUtils.getComponent("tag:contactTags");
tag.getContactTags().remove(table.getRowData());
return null;
}
Aggregations