Note that there are some explanatory texts on larger screens.

plurals
  1. PODatatable not displaying any data but its fine using a pannel grid
    primarykey
    data
    text
    <p>i am currently using a pannel grid to display some data retrived from a database, this is working fine, the layout is not perfect but it displays all of the correct data, however i am wanting to use a datatable for looks more than anything, i have tried to use the outputText from the pannel grid but when i run the page it just says no data found, but on the same page the same code displays the data in the pannel grid</p> <p>what am i doing wrong ?</p> <p>this is the code for the working pannel grid</p> <p> </p> <pre><code> &lt;!-- heading --&gt; &lt;f:facet name="header"&gt; User Details &lt;/f:facet&gt; &lt;h:outputText value="#{bundle.ViewUserdetailsLabel_id}"/&gt; &lt;!-- adding in a small effect here that will fade a message when a user hovers over the id number or username --&gt; &lt;h:outputLink id="id1" value="#"&gt; &lt;h:outputText id="id" value="#{userdetailsController.selected.id}" title="#{bundle.ViewUserdetailsTitle_id}"/&gt; &lt;/h:outputLink&gt; &lt;p:tooltip for="id" value="This is your I.D. Number" showEffect="fade" hideEffect="fade" /&gt; &lt;h:outputText value="#{bundle.ViewUserdetailsLabel_username}"/&gt; &lt;h:outputLink id="username1" value="#"&gt; &lt;h:outputText id="username" value="#{userdetailsController.selected.username}" title="#{bundle.ViewUserdetailsTitle_username}"/&gt; &lt;/h:outputLink&gt; &lt;p:tooltip for="username" value="Your registered username, this can be changed" showEffect="fade" hideEffect="fade" /&gt; &lt;/p:panelGrid&gt; </code></pre> <p>and here is the not working datatable</p> <p></p> <pre><code> &lt;p:dataTable&gt; &lt;p:column &gt; &lt;f:facet name="header"&gt; &lt;h:outputText value="{bundle.ViewUserdetailsLabel_id}"/&gt; &lt;/f:facet&gt; &lt;h:outputText value="{userdetailsController.selected.id}" /&gt; &lt;/p:column&gt; &lt;p:column headerText="username" &gt; &lt;f:facet name="header"&gt; &lt;h:outputText value="{bundle.ListUserdetailsTitle_username}"/&gt; &lt;/f:facet&gt; &lt;h:outputText value="{userdetailsController.selected.username}" /&gt; &lt;/p:column&gt; &lt;/p:dataTable&gt; </code></pre> <p>as you can see the outputText values are the same so it should work right ?</p> <p>thanks</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload