jsf - p:dataTable (row selection) selection and pe:inputNumber not working -


i have <p:datatable > updated button , filled. data displayed correctly. problem when click/select row, no response; while being clicked, row highlighted, now-> no highlight. have done type of design many times time <p:datatable> behaving weirdly. cannot find root of problem.

my xhtml snippet table :

<p:datatable id="tblsales" rowindexvar="rowsn"              paginator="true" value="#{invsalemb.dummylist}"              var="saleobj" selectionmode="single"              selection="#{invsalemb.dummysaleobj}"              rowkey="#{saleobj.item.itemtypeid}">      <p:column headertext="#">         <h:outputlabel value="#{rowsn+1}" />     </p:column>     <p:column headertext="name">         <h:outputlabel value="#{saleobj.item.itemtypename}" />     </p:column>     <p:column headertext="count">         <h:outputlabel value="#{saleobj.count}" />     </p:column>     <p:column headertext="unit price">         <h:outputlabel value="#{saleobj.unitprice}" />     </p:column>     <p:column headertext="total price">         <h:outputlabel value="#{saleobj.total}" />     </p:column> </p:datatable> 

my backing bean @viewscoped.

and component not responding update trigger <pe:inputnumber> , value component 'double'. changed <pe:inputnumber> <p:inputtext> , worked , displayed accurate data.

<pe:inputnumber id="totalcost" disabled="true" value="#{invsalemb.totcost}" /> 

the datatable , pe:inputnumber on same form.

what have changed between "before" (was working) , "now" (not working)?. sure "#{saleobj.item.itemtypeid}" unique each element of table? more code of page useful.

for pe:inputnumber work remember include xmlns:pe="http://primefaces.org/ui/extensions" in html tag.


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -