Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2011
    Posts
    21
    Rep Power
    0

    Default problem on refreshing h:dataTable

    i'm using jsf2
    i have written
    <h:dataTable id="d1" ...>
    ...
    <h:column>
    <f:facet name="header" >
    </f:facet>
    <h:commandButton value="Delete" action="#{otsTableClass.deleteAction}" >
    <f:setPropertyActionListener value="#{loc.operationId}"
    target="#{otsTableClass.rowIndex}" />
    <f:ajax render="d1"/>
    </h:commandButton>

    </h:column>
    </h:dataTable>
    i have button on each row
    when i pressing delete, it's deleting value from dataBase but h:dataTable not refreshing.
    how do i refresh h:dataTable anyone can help?

  2. #2
    Join Date
    Jan 2011
    Posts
    21
    Rep Power
    0

    Default

    witch has more functionality richfaces or primeFaces? because in tomcat i can use primeFaces but when i add richfaces it was error in deployment

  3. #3
    Join Date
    Jan 2011
    Posts
    21
    Rep Power
    0

    Default

    i trying this example
    <html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:p="http://primefaces.prime.com.tr/ui"
    xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
    <title>Facelet Title</title>
    </h:head>
    <h:body>
    <f:view>
    <h:form id="select">
    <h:dataTable value="#{dataTableBean.list}" var="loc">
    <h:column>
    <f:facet name="header" >
    <h:outputText value="Employee No"/>
    </f:facet>
    <h:outputText value="#{loc.empNo}"/>
    </h:column>
    ...
    </h:dataTable>
    </h:panelGrid>
    </h:form>
    </f:view>
    </h:body>
    </html>
    when i suing <h:dataTable> everything is work fine but when i using <p:dataTable> it's diplays nothing, how i must use <p:dataTable>?

  4. #4
    kakamp is offline Member
    Join Date
    Feb 2011
    Posts
    1
    Rep Power
    0

    Default

    the documentation of primeFaces is not free

    <p:dataTable var="loc" value="#{dataTableBean.list}"
    paginator="true" dynamic="true">

    <h:column>
    <f:facet name="header" >
    <hutputText value="Employee No"/>
    </f:facet>
    <hutputText value="#{loc.empNo}"/>
    </h:column>

    </p:dataTable>

  5. #5
    Join Date
    Jan 2011
    Posts
    21
    Rep Power
    0

    Default

    i insert it but empty table was displayed
    Last edited by irakli_java_dev; 03-23-2011 at 06:28 AM.

Similar Threads

  1. problem with delete row from <h:dataTable>
    By irakli_java_dev in forum JavaServer Faces (JSF)
    Replies: 1
    Last Post: 01-21-2011, 05:36 AM
  2. Problem with refreshing
    By misiom1 in forum New To Java
    Replies: 7
    Last Post: 01-15-2011, 12:37 PM
  3. Filtering data in a JSF dataTable
    By Iori Yagami in forum JavaServer Faces (JSF)
    Replies: 1
    Last Post: 03-17-2010, 11:17 PM
  4. JSF datatable with calendar component
    By thilak in forum JavaServer Faces (JSF)
    Replies: 3
    Last Post: 06-25-2009, 07:53 AM
  5. Row id in datatable
    By nc_newie in forum JavaServer Faces (JSF)
    Replies: 0
    Last Post: 06-26-2008, 11:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •