rowSelect事件在iPad上的浏览器中不起作用

时间:2014-05-08 19:39:36

标签: jsf primefaces datatable

为什么rowSelect事件在iPad中不起作用?

<h:form id="formA">
    <p:spacer width="10" />
    <p:dataTable
        currentPageReportTemplate="Records {startRecord} to {endRecord} from {totalRecords} - Total pages: {totalPages}"
        id="customers" paginator="true"
        paginatorPosition="bottom"
        paginatorTemplate="{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown} {CurrentPageReport}"
        rowKey="#{customer.id}"
        rows="15"
        rowsPerPageTemplate="10,15,20"
        selectionMode="single"
        value="#{customersBB.customers}"
        var="customer">

        <p:ajax event="rowSelect" listener="#{customersBB.selectCustomer}"
            update=":formB" />

        <p:column headerText="id">
            <h:outputText value="#{customer.id}" />
        </p:column>
        <p:column headerText="name">
            <h:outputText value="#{customer.name}" />
        </p:column>

        <p:column>
            <p:dataTable value="#{customer.purchases}" var="purchase">
                <p:columnGroup type="header">
                    <p:row>
                        <p:column headerText="product" />
                        <p:column headerText="price" />
                    </p:row>
                </p:columnGroup>
                <p:column>
                    <h:outputText value="#{purchase.productName}" />
                </p:column>
                <p:column>
                    <h:outputText value="#{purchase.price}" />
                </p:column>
            </p:dataTable>
        </p:column>
    </p:dataTable>
</h:form>

我没有发现我的问题

0 个答案:

没有答案