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}"/>
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>
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)