Search in sources :

Example 1 with HtmlDataTable

use of javax.faces.component.html.HtmlDataTable in project TNTConcept by autentia.

the class ContractTypeBean method letterClicked.

/**
 * Handle an ABC pager letter click: filter objects by specified starting letter
 */
public void letterClicked() {
    if (letter != null) {
        UIComponent comp = FacesUtils.getComponent("contractTypes:list");
        HtmlDataTable tabla = (HtmlDataTable) comp;
        tabla.setFirst(0);
        search.setName(letter + "%");
    } else {
        search.unsetName();
    }
}
Also used : HtmlDataTable(javax.faces.component.html.HtmlDataTable) UIComponent(javax.faces.component.UIComponent)

Example 2 with HtmlDataTable

use of javax.faces.component.html.HtmlDataTable in project TNTConcept by autentia.

the class UserBean method letterClicked.

/**
 * Handle an ABC pager letter click: filter objects by specified starting letter
 */
public void letterClicked() {
    if (letter != null) {
        UIComponent comp = FacesUtils.getComponent("users:list");
        HtmlDataTable tabla = (HtmlDataTable) comp;
        tabla.setFirst(0);
        search.setName(letter + "%");
    } else {
        search.unsetName();
    }
}
Also used : HtmlDataTable(javax.faces.component.html.HtmlDataTable) UIComponent(javax.faces.component.UIComponent)

Example 3 with HtmlDataTable

use of javax.faces.component.html.HtmlDataTable in project TNTConcept by autentia.

the class WorkingAgreementBean method letterClicked.

/**
 * Handle an ABC pager letter click: filter objects by specified starting letter
 */
public void letterClicked() {
    if (letter != null) {
        UIComponent comp = FacesUtils.getComponent("workingAgreements:list");
        HtmlDataTable tabla = (HtmlDataTable) comp;
        tabla.setFirst(0);
        search.setName(letter + "%");
    } else {
        search.unsetName();
    }
}
Also used : HtmlDataTable(javax.faces.component.html.HtmlDataTable) UIComponent(javax.faces.component.UIComponent)

Example 4 with HtmlDataTable

use of javax.faces.component.html.HtmlDataTable in project TNTConcept by autentia.

the class AccountEntryBean method letterClicked.

/**
 * Handle an ABC pager letter click: filter objects by specified starting
 * letter
 */
public void letterClicked() {
    if (letter != null) {
        UIComponent comp = FacesUtils.getComponent("accountEntrys:list");
        HtmlDataTable tabla = (HtmlDataTable) comp;
        tabla.setFirst(0);
        search.setConcept(letter + "%");
    } else {
        search.unsetConcept();
    }
}
Also used : HtmlDataTable(javax.faces.component.html.HtmlDataTable) UIComponent(javax.faces.component.UIComponent)

Example 5 with HtmlDataTable

use of javax.faces.component.html.HtmlDataTable in project TNTConcept by autentia.

the class ProjectBean method letterClicked.

/**
 * Handle an ABC pager letter click: filter objects by specified starting letter
 */
public void letterClicked() {
    if (letter != null) {
        UIComponent comp = FacesUtils.getComponent("projects:list");
        HtmlDataTable tabla = (HtmlDataTable) comp;
        tabla.setFirst(0);
        search.setName(letter + "%");
    } else {
        search.unsetName();
    }
}
Also used : HtmlDataTable(javax.faces.component.html.HtmlDataTable) UIComponent(javax.faces.component.UIComponent)

Aggregations

HtmlDataTable (javax.faces.component.html.HtmlDataTable)35 UIComponent (javax.faces.component.UIComponent)33 HtmlPanelGrid (javax.faces.component.html.HtmlPanelGrid)2 ResponseWriter (javax.faces.context.ResponseWriter)2 Column (com.liferay.faces.alloy.component.column.Column)1 IOException (java.io.IOException)1 ArrayList (java.util.ArrayList)1 Map (java.util.Map)1 FileTypeMap (javax.activation.FileTypeMap)1 UISelectItems (javax.faces.component.UISelectItems)1 MimeTypeMap (org.santfeliu.util.MimeTypeMap)1