Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2011
    Rep Power

    Default problem with delete row from <h:dataTable>

    hi all
    i have such code
    <h:dataTable value="#{otsTableClass.list}" var="loc" border="1" styleClass="text" captionClass="label" >
    <f:facet name="header" >
    <h:outputText value="#"/>
    <h:outputText value="#{loc.rowNum}"/>
    with class
    public class OtsTableClass implements Serializable {
    private List<OtsTableBodyClass> list;
    and it works fine, but i need add delete button as table column
    and i add
    in jsf

    <f:facet name="header">Action</f:facet>

    <h:commandLink value="Delete" action="#{otsTableClass.deleteAction(loc)}" />

    in class file
    public String deleteAction(OtsTableBodyClass order) {

    return null;

    when i compile this appares following exception
    Error Parsing: #{otsTableClass.deleteAction(loc)}

    anyone can tell how to add delete buttom as column to delete intended him row?

  2. #2
    Join Date
    Jan 2011
    Rep Power

Similar Threads

  1. JSF datatable with calendar component
    By thilak in forum JavaServer Faces (JSF)
    Replies: 3
    Last Post: 06-25-2009, 08:53 AM
  2. Replies: 2
    Last Post: 04-20-2009, 09:00 AM
  3. Replies: 1
    Last Post: 03-01-2009, 05:47 PM
  4. Row id in datatable
    By nc_newie in forum JavaServer Faces (JSF)
    Replies: 0
    Last Post: 06-26-2008, 12:32 PM
  5. problem when I try to delete a file
    By tommy in forum Advanced Java
    Replies: 2
    Last Post: 07-31-2007, 03:44 PM

Posting Permissions

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