Search in sources :

Example 11 with UIData

use of javax.faces.component.UIData in project TNTConcept by autentia.

the class TagBean method deleteOrganization.

public String deleteOrganization() {
    final UIData table = (UIData) FacesUtils.getComponent("tag:organizations");
    final Organization toDelete = (Organization) table.getRowData();
    tag.getOrganizationTags().remove(toDelete);
    return NavigationResults.EDIT;
}
Also used : Organization(com.autentia.tnt.businessobject.Organization) UIData(javax.faces.component.UIData)

Example 12 with UIData

use of javax.faces.component.UIData in project TNTConcept by autentia.

the class TagBean method deletePosition.

public String deletePosition() {
    final UIData table = (UIData) FacesUtils.getComponent("tag:positions");
    final Position toDelete = (Position) table.getRowData();
    tag.getPositionTags().remove(toDelete);
    return NavigationResults.EDIT;
}
Also used : Position(com.autentia.tnt.businessobject.Position) UIData(javax.faces.component.UIData)

Example 13 with UIData

use of javax.faces.component.UIData in project TNTConcept by autentia.

the class TagBean method deletePositionTags.

/**
 * Delete selected instance of the one-to-many field
 *
 * @return forward to the same page
 */
public String deletePositionTags() {
    UIData table = (UIData) FacesUtils.getComponent("tag:positionTags");
    tag.getPositionTags().remove(table.getRowData());
    return null;
}
Also used : UIData(javax.faces.component.UIData)

Example 14 with UIData

use of javax.faces.component.UIData in project TNTConcept by autentia.

the class TagBean method deleteDepartmentTags.

/**
 * Delete selected instance of the one-to-many field
 *
 * @return forward to the same page
 */
public String deleteDepartmentTags() {
    UIData table = (UIData) FacesUtils.getComponent("tag:departmentTags");
    tag.getDepartmentTags().remove(table.getRowData());
    return null;
}
Also used : UIData(javax.faces.component.UIData)

Example 15 with UIData

use of javax.faces.component.UIData in project TNTConcept by autentia.

the class TagBean method deleteContact.

public String deleteContact() {
    final UIData table = (UIData) FacesUtils.getComponent("tag:contacts");
    final Contact toDelete = (Contact) table.getRowData();
    tag.getContactTags().remove(toDelete);
    return NavigationResults.EDIT;
}
Also used : UIData(javax.faces.component.UIData) Contact(com.autentia.tnt.businessobject.Contact)

Aggregations

UIData (javax.faces.component.UIData)46 UIComponent (javax.faces.component.UIComponent)6 Tag (com.autentia.tnt.businessobject.Tag)3 Position (com.autentia.tnt.businessobject.Position)2 User (com.autentia.tnt.businessobject.User)2 Paginator (com.liferay.faces.alloy.component.paginator.Paginator)2 SearchExpressionHint (org.primefaces.expression.SearchExpressionHint)2 ActivityFile (com.autentia.tnt.businessobject.ActivityFile)1 CommissioningFile (com.autentia.tnt.businessobject.CommissioningFile)1 CommissioningPaymentData (com.autentia.tnt.businessobject.CommissioningPaymentData)1 Contact (com.autentia.tnt.businessobject.Contact)1 ContactInfo (com.autentia.tnt.businessobject.ContactInfo)1 Department (com.autentia.tnt.businessobject.Department)1 Interaction (com.autentia.tnt.businessobject.Interaction)1 Organization (com.autentia.tnt.businessobject.Organization)1 Locale (java.util.Locale)1 Matcher (java.util.regex.Matcher)1 FacesException (javax.faces.FacesException)1 UIColumn (javax.faces.component.UIColumn)1 UIInput (javax.faces.component.UIInput)1