Search in sources :

Example 6 with UIData

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;
}
Also used : Tag(com.autentia.tnt.businessobject.Tag) UIData(javax.faces.component.UIData)

Example 7 with UIData

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;
}
Also used : UIData(javax.faces.component.UIData)

Example 8 with UIData

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;
}
Also used : UIData(javax.faces.component.UIData)

Example 9 with UIData

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;
}
Also used : UIData(javax.faces.component.UIData)

Example 10 with UIData

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;
}
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