How to handle button events in a tableview?

I am adding a button to the cell in a tableview but I can’t get the tableview to ignore the cell touch and respond to the button event. Is there a trick to this like in the scrollview?? [import]uid: 58885 topic_id: 23416 reply_id: 323416[/import]

Do you have a snippet you could post up showing how your going about this ? [import]uid: 84637 topic_id: 23416 reply_id: 93832[/import]

-- onEvent listener for the tableView  
local function onRowTouch( event )  
 local row = event.target  
 local rowGroup = event.view  
   
 if event.phase == "press" then  
 if not row.isCategory then rowGroup.alpha = 0.5; end  
   
 elseif event.phase == "swipeLeft" then  
 print( "Swiped left." )  
   
 elseif event.phase == "swipeRight" then  
 print( "Swiped right." )  
   
 elseif event.phase == "release" then  
   
 if not row.isCategory then  
 -- reRender property tells row to refresh if still onScreen when content moves  
 row.reRender = true  
 --print( "You touched row #" .. event.index )  
  
 end  
 end  
   
 return true  
end  
  
   
 --Iterate thru the Films and populate the film list  
 for filmRow in db:nrows("SELECT \* FROM films") do  
 local function onRowRender( event )  
 local lstGroup = event.view  
 local row = event.target  
 local index = event.index  
 local id = event.id  
  
...  
 --Create the actual fav button   
 local favBtn = widget.newButton{  
 id = "btn004",  
 default = "images/clearBtn.png",  
 over = "images/clearBtn.png",  
 left = display.screenOriginX+4,  
 top =1,  
 width = 84, height = 51,  
 onEvent = favClick  
 }  
 lstGroup:insert(favBtn)  
 end  

The favClick event never happens, the onRowTouch event always occurs [import]uid: 58885 topic_id: 23416 reply_id: 93834[/import]

Do I handle it the same way I handle buttons in a scrollview? I don’t see the docs mentioning this. [import]uid: 58885 topic_id: 23416 reply_id: 94251[/import]