Code: Select all
<p:dataTable emptyMessage="" id="mailsTable" dynamic="true" value="#{mailBean.mails}" binding="#{mailBean.mailsTable}" var="mails">
<p:column>
<h:outputText value="#{mails}" />
</p:column>
<p:column>
<p:commandLink id="removeMail" value="Delete" process="@this"
update="mailsTable" ajax="true" actionListener="#{mailBean.removeMail}"/>
</p:column>
</p:dataTable>
Your advices are welcome ...
P.S. i am using 2.0.1 version of primefaces and i do not add "<p:resources/>" to head tag...Also i am using facelets for templating...Up till now all other components have worked fine ...
Furthermore, firebug always displays an error message which is "elTable.tBodies is undefined" and when my List<String> mails is null(or empty), datatable always displays a message as emptyMessage===>Loading...