What is the best way to prevent the call to onRowClick
on a column with an output link in a datatable that targets a new window?
<rich:dataTable id="dt" value="#{bean.cars} var="_car"> <a:support event="onRowClick" action="#{action.navigateToCarDetails(_car.id)}"/> <rich:column> <f:facet name="header"&quo... <p>When clicking on the row, it should navigate to the Car details page. Clicking on the Select column's row should update the selected car without navigating to the detail page, thanks to the <code>onclick="Event.stop(event)"
function.However, when clicking on the outputLink box to open a new window and show the manufacturer's webpage, it also updates the original page to the car details. How can this be prevented? (I have tried adding an
onclick
event stop similar to the select column, but it not only stops theonrowclick
event but also blocks the link to the manufacturer's webpage)