I have a pop-up display a table with some columns (Name, ID) of Accounts for example, I want to display additional information of the selected account when I click on specific row.
I used something like this, but I must click on a column not row , and does not get the correct data.
<apex:actionFunction name="readCell" action="{!readCellMethod}">
<apex:param name="rowID" value="" assignTo="{!clickedRowId}"/>
</apex:actionFunction>
<apex:pageBlockTable value="{!account}" var="acc">
<apex:column headerValue="ID" value="{!acc.Id}" />
<apex:column headerValue="Name" value="{!acc.Name}" onclick="readCell('{!acc.Id}')"/>
</apex:pageBlockTable>