p:dataTable with instant row selection not rendering

UI Components for JSF
Post Reply
kquizak
Posts: 2
Joined: 05 Feb 2010, 13:23

07 Feb 2010, 17:19

primefaces-2.0.0-SNAPSHOT.jar Build 62 does not work for dataTable( at least for me)

Code: Select all

     <h:form prependId="false">
                        <h1><h:outputText value="List"/></h1>
                        <p:dataTable value="#{customerMBean.customers}" var="item" paginator="true" rows="10"  selectionMode="single" >
    ...
    </p:dataTable>
                        <p:commandButton value="ajax" update="ddd" />
                        <h:outputText id="ddd" value="Client: #{customer.name}"/>
this generates the following:

Code: Select all

    <p> </p>
    <form id="j_idt6" enctype="application/x-www-form-urlencoded" action="/CustomerApp-war/list.jsf" method="post" name="j_idt6">
    <input type="hidden" value="j_idt6" name="j_idt6"/>
    <h1>List</h1>
    <script type="text/javascript">
    </script>
    <div id="j_idt10">
    <div id="j_idt10_container">
    <table id="j_idt10_table" style="display: none;">...
    </div>
    <input id="j_idt10_selectedRows" type="hidden" name="j_idt10_selectedRows"/>
    <input id="j_idt10_currentPage" type="hidden" value="1" name="j_idt10_currentPage"/>
    </div>
    <span id="j_idt47">
    </span>
    <span id="ddd">Client: </span>
    <input id="javax.faces.ViewState" type="hidden" autocomplete="off" value="-655770999569829588:-8875772902349934753" name="javax.faces.ViewState"/>
    </form>
    </body>
there is a style="display: none;" for the table;Removing this in firebug reveals a no css(primefaces) for the table and also there is no paginator (...there are 10 rows displayed)
Florin POP
LE: hmm nor build #51 works... I use sgesv3 build 74.2 table was rendered before but selection didn't worked (the casting error), I'll try tomcat later ... maybe is the AS or the hot redploy feature of netbeans+glassfish
ps:is the configuration in web.xml still mandatory? (somewhere i understood that primefaces will follow the servlet 3.0 sprec)

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 57 guests