Search in sources :

Example 31 with HtmlDataTable

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

the class UserCategoryBean method letterClicked.

/**
 * Handle an ABC pager letter click: filter objects by specified starting letter
 */
public void letterClicked() {
    if (letter != null) {
        UIComponent comp = FacesUtils.getComponent("userCategorys: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 32 with HtmlDataTable

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

the class BillBean method letterClicked.

/**
 * Handle an ABC pager letter click: filter objects by specified starting letter
 */
public void letterClicked() {
    if (letter != null) {
        UIComponent comp = FacesUtils.getComponent("bills: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 33 with HtmlDataTable

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

the class AccountBean method letterClicked.

/**
 * Handle an ABC pager letter click: filter objects by specified starting letter
 */
public void letterClicked() {
    if (letter != null) {
        UIComponent comp = FacesUtils.getComponent("accounts: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 34 with HtmlDataTable

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

the class AccountEntryTypeBean method letterClicked.

/**
 * Handle an ABC pager letter click: filter objects by specified starting letter
 */
public void letterClicked() {
    if (letter != null) {
        UIComponent comp = FacesUtils.getComponent("accountEntryTypes: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 35 with HtmlDataTable

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

the class IdeaBean method letterClicked.

/**
 * Handle an ABC pager letter click: filter objects by specified starting letter
 */
public void letterClicked() {
    if (letter != null) {
        UIComponent comp = FacesUtils.getComponent("ideas: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