0 Replies Latest reply on Jun 7, 2008 4:56 AM by Srinivas Chamarthi

    Handling transient entity in delete processing

    Srinivas Chamarthi Newbie


      I am trying to list iterms from a table and using delete image, want to remove the entity. Below is my view part.But it is not deleting row from db but saying Handling transient entity in delete processing.

      I know I am not passing something to remove the entity. Could any one help me how to pass the id so that it can remove the row from db ?

      Thanks for your help in advance.

            <ui:repeat value="#{advertisements.resultList}" var="advertisement" >
                     <s:link id="advertisementId" action="#{advertisementHome.remove(advertisement.id)}" >
                     <h:graphicImage styleClass="deleteImg" alt="delete" align="left" value="/img/deleteImage.gif"/>