use of javax.faces.component.UIData in project TNTConcept by autentia.
the class TagBean method deleteOrganizationTags.
/**
* Delete selected instance of the one-to-many field
*
* @return forward to the same page
*/
public String deleteOrganizationTags() {
UIData table = (UIData) FacesUtils.getComponent("tag:organizationTags");
tag.getOrganizationTags().remove(table.getRowData());
return null;
}
use of javax.faces.component.UIData in project TNTConcept by autentia.
the class DocumentBean method deleteVersions.
/**
* Delete selected instance of the one-to-many field
*
* @return forward to the same page
*/
public String deleteVersions() {
UIData table = (UIData) FacesUtils.getComponent("editDocument:versions");
document.getVersions().remove(table.getRowData());
return null;
}
use of javax.faces.component.UIData in project TNTConcept by autentia.
the class CommissioningBean method deleteReviser.
public String deleteReviser() {
final UIData table = (UIData) FacesUtils.getComponent("commissioning:revisers");
final User toDelete = (User) table.getRowData();
commissioning.getRevisers().remove(toDelete);
return NavigationResults.EDIT;
}
use of javax.faces.component.UIData in project TNTConcept by autentia.
the class OrganizationBean method deleteTag.
public String deleteTag() {
final UIData table = (UIData) FacesUtils.getComponent("organization:tags");
final Tag toDelete = (Tag) table.getRowData();
organization.getTags().remove(toDelete);
return NavigationResults.EDIT;
}
use of javax.faces.component.UIData in project TNTConcept by autentia.
the class OrganizationBean method searchContacts.
/**
* Method to navigate to organization's contacts
*
* @return OrganizationBean#OUTCOME_SEARCH_CONTACTS
*/
public String searchContacts() {
// Remove ourself from session to avoid Hibernate errors
FacesUtils.removeFromSession("organizationBean");
// Set an active search in contactBean to show only contacts related to
// this organization
UIData list = (UIData) FacesUtils.getComponent("organizations:list");
Organization org = (Organization) list.getRowData();
ContactBean contactBean = (ContactBean) FacesUtils.getBean("contactBean");
// TODO
contactBean.getSearch().setOrganization(org);
return OUTCOME_SEARCH_CONTACTS;
}
Aggregations