6 Replies Latest reply on Dec 17, 2013 10:56 AM by dagj

    seam 2.3 richfaces 4. Datatable with database with edit delete popup

    bhaskardhone
           

      I am using seam 2.3 and richfaces 4. Using that I am able to show data in datatable which is stored in database. But for edit and delete. I am trying to use example like

        http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=dataTable&sample=dataTableEdit&skin=blueSkyJboss richfaces

      I am unable to do edit with pop up. selected row data is not coming in popup window.

      Please help and suggest how to pass parameter for popup and use that to retrive data for editing .

      Employee.java

      view plaincopy to clipboardprint?

       

      1. package org.domain.imonitortestseam.entity; 
      2.  
      3. // Generated Aug 28, 2013 4:01:44 PM by Hibernate Tools 3.4.0.CR1 
      4.  
      5. import java.math.BigDecimal; 
      6. import javax.persistence.Column; 
      7. import javax.persistence.Entity; 
      8. import javax.persistence.Id; 
      9. import javax.persistence.Table; 
      10. import javax.validation.constraints.NotNull; 
      11. import javax.validation.constraints.Size; 
      12.  
      13. /**
      14. * Employee generated by hbm2java
      15. */ 
      16. @Entity 
      17. @Table(name = "EMPLOYEE", schema = "MOBILITY_PROJ"
      18. public class Employee implements java.io.Serializable { 
      19.  
      20.     private BigDecimal empid; 
      21.     private String firstname; 
      22.     private String lastname; 
      23.     private String username; 
      24.     private String password; 
      25.  
      26.     public Employee() { 
      27.     } 
      28.  
      29.     public Employee(BigDecimal empid, String firstname, String lastname) { 
      30.         this.empid = empid; 
      31.         this.firstname = firstname; 
      32.         this.lastname = lastname; 
      33.     } 
      34.  
      35.     public Employee(BigDecimal empid, String firstname, String lastname, 
      36.             String username, String password) { 
      37.         this.empid = empid; 
      38.         this.firstname = firstname; 
      39.         this.lastname = lastname; 
      40.         this.username = username; 
      41.         this.password = password; 
      42.     } 
      43.  
      44.     @Id 
      45.     @Column(name = "EMPID", unique = true, nullable = false, precision = 22, scale = 0
      46.     @NotNull 
      47.     public BigDecimal getEmpid() { 
      48.         return this.empid; 
      49.     } 
      50.  
      51.     public void setEmpid(BigDecimal empid) { 
      52.         this.empid = empid; 
      53.     } 
      54.  
      55.     @Column(name = "FIRSTNAME", nullable = false, length = 100
      56.     @NotNull 
      57.     @Size(max = 100
      58.     public String getFirstname() { 
      59.         return this.firstname; 
      60.     } 
      61.  
      62.     public void setFirstname(String firstname) { 
      63.         this.firstname = firstname; 
      64.     } 
      65.  
      66.     @Column(name = "LASTNAME", nullable = false, length = 100
      67.     @NotNull 
      68.     @Size(max = 100
      69.     public String getLastname() { 
      70.         return this.lastname; 
      71.     } 
      72.  
      73.     public void setLastname(String lastname) { 
      74.         this.lastname = lastname; 
      75.     } 
      76.  
      77.     @Column(name = "USERNAME", length = 100
      78.     @Size(max = 100
      79.     public String getUsername() { 
      80.         return this.username; 
      81.     } 
      82.  
      83.     public void setUsername(String username) { 
      84.         this.username = username; 
      85.     } 
      86.  
      87.     @Column(name = "PASSWORD", length = 100
      88.     @Size(max = 100
      89.     public String getPassword() { 
      90.         return this.password; 
      91.     } 
      92.  
      93.     public void setPassword(String password) { 
      94.         this.password = password; 
      95.     } 
      96.  


      EmployeeHome.java

       

      view plaincopy to clipboardprint?

       

      1. package org.domain.imonitortestseam.session; 
      2.  
      3. import org.domain.imonitortestseam.entity.*; 
      4. import java.math.BigDecimal; 
      5. import org.jboss.seam.annotations.Name; 
      6. import org.jboss.seam.framework.EntityHome; 
      7.  
      8. @Name("employeeHome"
      9. public class EmployeeHome extends EntityHome<Employee> { 
      10.  
      11.     public void setEmployeeEmpid(BigDecimal id) { 
      12.         setId(id); 
      13.     } 
      14.  
      15.     public BigDecimal getEmployeeEmpid() { 
      16.         return (BigDecimal) getId(); 
      17.     } 
      18.  
      19.     @Override 
      20.     protected Employee createInstance() { 
      21.         Employee employee = new Employee(); 
      22.         return employee; 
      23.     } 
      24.  
      25.     public void load() { 
      26.         if (isIdDefined()) { 
      27.             wire(); 
      28.         } 
      29.     } 
      30.  
      31.     public void wire() { 
      32.         getInstance(); 
      33.     } 
      34.  
      35.     public boolean isWired() { 
      36.         return true
      37.     } 
      38.  
      39.     public Employee getDefinedInstance() { 
      40.         return isIdDefined() ? getInstance() : null
      41.     } 
      42.  



      EmployeeList.java

       

      view plaincopy to clipboardprint?

       

      1. package org.domain.imonitortestseam.session; 
      2.  
      3. import org.domain.imonitortestseam.entity.*; 
      4. import org.jboss.seam.annotations.Name; 
      5. import org.jboss.seam.framework.EntityQuery; 
      6. import java.util.Arrays; 
      7.  
      8. @Name("employeeList"
      9. public class EmployeeList extends EntityQuery<Employee> { 
      10.  
      11.     private static final String EJBQL = "select employee from Employee employee"
      12.  
      13.     private static final String[] RESTRICTIONS = { 
      14.             "lower(employee.firstname) like lower(concat(#{employeeList.employee.firstname},'%'))", 
      15.             "lower(employee.lastname) like lower(concat(#{employeeList.employee.lastname},'%'))", 
      16.             "lower(employee.username) like lower(concat(#{employeeList.employee.username},'%'))", 
      17.             "lower(employee.password) like lower(concat(#{employeeList.employee.password},'%'))", }; 
      18.  
      19.     private Employee employee = new Employee(); 
      20.  
      21.     public EmployeeList() { 
      22.         setEjbql(EJBQL); 
      23.         setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS)); 
      24.         setMaxResults(25); 
      25.     } 
      26.  
      27.     public Employee getEmployee() { 
      28.         return employee; 
      29.     } 


      xhtmlpage


       

      view plaincopy to clipboardprint?

       

      1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
      2. <html xmlns="http://www.w3.org/1999/xhtml
      3.       xmlns:h="http://java.sun.com/jsf/html
      4.       xmlns:a4j="http://richfaces.org/a4j
      5.       xmlns:rich="http://richfaces.org/rich
      6.       xmlns:f="http://java.sun.com/jsf/core
      7.       xmlns:ui="http://java.sun.com/jsf/facelets">  
      8.  
      9. <h:head></h:head>  
      10. <body> 
      11.     <rich:panel> 
      12.         <f:facet name="header"> 
      13.         Write your own custom rich components with built-in AJAX support 
      14.         </f:facet> 
      15.             <a4j:status onstart="#{rich:component('statPane')}.show()" 
      16.         onstop="#{rich:component('statPane')}.hide()" /> 
      17.         <h:form id="form"> 
      18.         <rich:dataTable value="#{employeeList.resultList}" var="_employee" 
      19.             iterationStatusVar="it" id="employeeList" rows="15"
      20.              
      21.             <rich:column> 
      22.                 <f:facet name="header">ID</f:facet> 
      23.                 <h:outputText value="#{_employee.empid}" /> 
      24.             </rich:column> 
      25.             <rich:column> 
      26.                 <f:facet name="First Name">First Name</f:facet> 
      27.                 <h:outputText value="#{_employee.firstname}" /> 
      28.             </rich:column> 
      29.             <rich:column> 
      30.                 <f:facet name="header">Last Name</f:facet> 
      31.                 <h:outputText value="#{_employee.lastname}" /> 
      32.             </rich:column> 
      33.             <rich:column> 
      34.                 <f:facet name="header">User Name</f:facet> 
      35.                 <h:outputText value="#{_employee.username}" /> 
      36.             </rich:column> 
      37.             <rich:column> 
      38.                 <f:facet name="header">Password</f:facet> 
      39.                 <h:outputText value="#{_employee.password}" /> 
      40.             </rich:column> 
      41.             <rich:column> 
      42.                 <a4j:commandLink styleClass="no-decor" execute="@this" 
      43.                     render="@none" oncomplete="#{rich:component('confirmPane')}.show()"
      44.                     <h:graphicImage value="/images/icons/delete.gif" /> 
      45.                     <a4j:param value="#{_employee.empid}" name="employeeEmpid" 
      46.                          /> 
      47.                 </a4j:commandLink> 
      48.                  
      49.     <a4j:commandLink render="editGrid" execute="@form"
      50.     <h:graphicImage value="/images/icons/edit.gif" /> 
      51.     <a4j:param value="#{_employee.empid}" name="employeeEmpid" assignTo="#{employeeHome.instance.empid}" /> 
      52.          
      53.     <rich:componentControl target="popup" operation="show" /> 
      54.     </a4j:commandLink> 
      55.  
      56.                  
      57.             </rich:column> 
      58.              
      59.         </rich:dataTable> 
      60.  
      61.     <rich:popupPanel id="statPane" autosized="true"
      62.         <h:graphicImage value="/images/ai.gif" /> 
      63.         Please wait... 
      64.     </rich:popupPanel> 
      65.     <rich:popupPanel header="Edit Car Details" id="editEmployee" domElementAttachment="parent" width="400" height="170"
      66.             <f:facet name="controls"> 
      67.             <h:outputLink value="#" onclick="#{rich:component('editEmployee')}.hide(); return false;"
      68.                 X 
      69.             </h:outputLink> 
      70.         </f:facet> 
      71.             <h:panelGrid columns="3" id="editGrid"
      72.                 <h:outputText value="ID" /> 
      73.                 <h:outputText value="#{employeeHome.instance.empid}" /> 
      74.                 <h:panelGroup /> 
      75.                 <h:outputText value="first namel" /> 
      76.                 <h:outputText value="#{employeeHome.instance.firstname}" /> 
      77.                 <h:panelGroup /> 
      78.                 <h:outputText value="last name" /> 
      79.                 <h:outputText value="#{employeeHome.instance.lastname}" /> 
      80.                 <h:panelGroup /> 
      81.                 <h:outputText value="user name" /> 
      82.                 <h:outputText value="#{employeeHome.instance.username}" /> 
      83.                 <h:panelGroup />           
      84.             </h:panelGrid> 
      85.             <a4j:commandButton value="Store" action="#{carsBean.store}" 
      86.                 render="table" execute="editPane" 
      87.                 oncomplete="if (#{facesContext.maximumSeverity==null}) {#{rich:component('editPane')}.hide();}" /> 
      88.             <a4j:commandButton value="Cancel" 
      89.                 onclick="#{rich:component('editPane')}.hide(); return false;" /> 
      90.     </rich:popupPanel> 
      91.     </h:form> 
      92.     </rich:panel> 
      93.      
      94. </body>  
      95. </html> 




      Thanks
        • 1. Re: seam 2.3 richfaces 4. Datatable with database with edit delete popup
          bleathem

          <a4j:commandLink render="editGrid" execute="@form">

           

          Is your render target is not displayed at the time?  Dry rendering a target wrapper around your popup.  Also, you'll likely want to use the domElementAttachment of the popupPanel.

          • 2. Re: seam 2.3 richfaces 4. Datatable with database with edit delete popup
            bhaskardhone

            Hi ,

            Actually I am just trying to impliment live demo sample available for richfaces4 .http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=dataTable&sample=dataTableEdit&skin=blueSkyJboss richfaces  Data table editing sample , with seam and oracle database.

            my render target will displayed once after data is render in editgride.with domElementAttachment of the popupPanel.

            • 3. Re: seam 2.3 richfaces 4. Datatable with database with edit delete popup
              bleathem

              Bhaskar Dhone wrote:

               

              Actually I am just trying to impliment live demo sample available for richfaces4 .http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=dataTable&sample=dataTableEdit&skin=blueSkyJboss richfaces  Data table editing sample , with seam and oracle database.

              my render target will displayed once after data is render in editgride.with domElementAttachment of the popupPanel.

              Sorry, missed that.

               

              Do you get any server errors, or any errors in your browser console?

              • 4. Re: seam 2.3 richfaces 4. Datatable with database with edit delete popup
                bhaskardhone

                no such error browser or console Able to see data in datatable from database but nothing happening on click to edit link.

                • 5. Re: seam 2.3 richfaces 4. Datatable with database with edit delete popup
                  bleathem

                  Well, given that the showcase example works, I'd start with that.  Slowly introduce changes to align the working showcase with your use case, and see if you can isolate the change that causes it to break.

                  • 6. Re: seam 2.3 richfaces 4. Datatable with database with edit delete popup
                    dagj

                    hi, i've the same trouble using oracle database, richface 4.3 and seam 2.3, if someone know the solution or if Bhaskar Dhone could resolve this trouble plase let it here....

                     

                    [javax.enterprise.resource.webcontainer.jsf.lifecycle] (http-localhost-127.0.0.1-8080-5) #{ListSelectBean.elimina}: java.lang.NullPointerException: javax.faces.FacesException: #{ListSelectBean.elimina}: java.lang.NullPointerException

                      at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118) [jsf-impl-2.1.7-jbossorg-2.jar:]

                      at javax.faces.component.UICommand.broadcast(UICommand.java:315) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]

                      at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]

                      at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]

                      at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81) [jsf-impl-2.1.7-jbossorg-2.jar:]

                      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.1.7-jbossorg-2.jar:]

                      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl-2.1.7-jbossorg-2.jar:]

                      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) [jboss-seam.jar:2.3.0.Final]

                      at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60) [jboss-seam.jar:2.3.0.Final]

                      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.0.Final]

                      at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40) [jboss-seam.jar:2.3.0.Final]

                      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.0.Final]

                      at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90) [jboss-seam.jar:2.3.0.Final]

                      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.0.Final]

                      at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) [jboss-seam.jar:2.3.0.Final]

                      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.0.Final]

                      at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) [jboss-seam.jar:2.3.0.Final]

                      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.0.Final]

                      at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53) [jboss-seam.jar:2.3.0.Final]

                      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.0.Final]

                      at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) [jboss-seam.jar:2.3.0.Final]

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:397) [jbossweb-7.0.13.Final.jar:]

                      at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]

                      at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

                      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]

                      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

                      at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_45]

                    Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException

                      at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]

                      at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) [jsf-impl-2.1.7-jbossorg-2.jar:]

                      ... 38 more

                    Caused by: java.lang.NullPointerException

                      at org.domain.fraudtrack2.session.ListSelectBean.elimina(ListSelectBean.java:51)

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_45]

                      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.7.0_45]

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.7.0_45]

                      at java.lang.reflect.Method.invoke(Unknown Source) [rt.jar:1.7.0_45]

                      at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam.jar:2.3.0.Final]

                      at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32) [jboss-seam.jar:2.3.0.Final]

                      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) [jboss-seam.jar:2.3.0.Final]

                      at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) [jboss-seam.jar:2.3.0.Final]

                      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam.jar:2.3.0.Final]

                      at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:97) [jboss-seam.jar:2.3.0.Final]

                      at org.jboss.seam.util.Work.workInTransaction(Work.java:61) [jboss-seam.jar:2.3.0.Final]

                      at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:91) [jboss-seam.jar:2.3.0.Final]

                      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam.jar:2.3.0.Final]

                      at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) [jboss-seam.jar:2.3.0.Final]

                      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam.jar:2.3.0.Final]

                      at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) [jboss-seam.jar:2.3.0.Final]

                      at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:186) [jboss-seam.jar:2.3.0.Final]

                      at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:104) [jboss-seam.jar:2.3.0.Final]

                      at org.domain.fraudtrack2.session.ListSelectBean_$$_javassist_seam_3.elimina(ListSelectBean_$$_javassist_seam_3.java)

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_45]

                      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.7.0_45]

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.7.0_45]

                      at java.lang.reflect.Method.invoke(Unknown Source) [rt.jar:1.7.0_45]

                      at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:335) [jboss-el.jar:1.0_02.CR6]

                      at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:348) [jboss-el.jar:1.0_02.CR6]

                      at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58) [jboss-el.jar:1.0_02.CR6]

                      at org.jboss.el.parser.AstValue.invoke(AstValue.java:96) [jboss-el.jar:1.0_02.CR6]

                      at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276) [jboss-el.jar:1.0_02.CR6]

                      at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105) [jsf-impl-2.1.7-jbossorg-2.jar:]

                      at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]

                      ... 39 more

                     

                    That's the error i see when i try to delete, "ListSelectBean" is my bean and "elimina" my remove function.