Search in sources :

Example 41 with UIData

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

the class TagBean method deleteDepartment.

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

Example 42 with UIData

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

the class CommissioningBean method deleteCollaborator.

// private List<String> commissioningPaymentDeletedName = new ArrayList<String>(0);
public String deleteCollaborator() {
    UIData table = (UIData) FacesUtils.getComponent("commissioning:collaborators");
    CommissioningPaymentData toDelete = (CommissioningPaymentData) table.getRowData();
    commissioning.getCollaboratorsPaymentData().remove(toDelete);
    return NavigationResults.EDIT;
}
Also used : CommissioningPaymentData(com.autentia.tnt.businessobject.CommissioningPaymentData) UIData(javax.faces.component.UIData)

Example 43 with UIData

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

the class ActivityBean method deleteFile.

public String deleteFile() {
    UIData table = (UIData) FacesUtils.getComponent("activity:tabExternalActivity:list");
    ActivityFile toDelete = (ActivityFile) table.getRowData();
    externalActivity.getFiles().remove(toDelete);
    return null;
}
Also used : ActivityFile(com.autentia.tnt.businessobject.ActivityFile) UIData(javax.faces.component.UIData)

Example 44 with UIData

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

the class DepartmentBean method deletePosition.

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

Example 45 with UIData

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

the class BillBean method deleteBreakDown.

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

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