Search in sources :

Example 21 with HtmlDataTable

use of javax.faces.component.html.HtmlDataTable in project gdmatrix by gdmatrix.

the class AdminSurveyBean method getNewAnswersDataTable.

public HtmlDataTable getNewAnswersDataTable() {
    if (newAnswersDataTable == null) {
        newAnswersDataTable = new HtmlDataTable();
        newAnswersDataTable.setValue(new ArrayList());
    }
    return newAnswersDataTable;
}
Also used : HtmlDataTable(javax.faces.component.html.HtmlDataTable) ArrayList(java.util.ArrayList)

Example 22 with HtmlDataTable

use of javax.faces.component.html.HtmlDataTable in project liferay-faces-alloy by liferay.

the class ColumnRenderer method encodeEnd.

@Override
public void encodeEnd(FacesContext facesContext, UIComponent uiComponent) throws IOException {
    ResponseWriter responseWriter = facesContext.getResponseWriter();
    UIComponent parent = uiComponent.getParent();
    if (!((parent instanceof HtmlDataTable) || (parent instanceof HtmlPanelGrid))) {
        responseWriter.endElement("div");
    }
}
Also used : HtmlDataTable(javax.faces.component.html.HtmlDataTable) ResponseWriter(javax.faces.context.ResponseWriter) UIComponent(javax.faces.component.UIComponent) HtmlPanelGrid(javax.faces.component.html.HtmlPanelGrid)

Example 23 with HtmlDataTable

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

the class BookBean method letterClicked.

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

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

the class MagazineBean method letterClicked.

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

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

the class OfferBean method letterClicked.

/**
 * Handle an ABC pager letter click: filter objects by specified starting letter
 */
public void letterClicked() {
    if (letter != null) {
        UIComponent comp = FacesUtils.getComponent("offers:list");
        HtmlDataTable tabla = (HtmlDataTable) comp;
        tabla.setFirst(0);
        search.setTitle(letter + "%");
    } else {
        search.unsetTitle();
    }
}
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