I want to get selected value of p:column of p:datatable by using javascript(jquery). Do you think is that possible ? I tried several ways but I could not succeed. Any help will be great.
Regards
Here is the sample Code :
<p:dataTable id="attachmentsTable" var="dataRow" value="#{taslakFaturaBean.attachments}" style="width:980px; text-align:center;">
<p:column headerText="ID">
#{dataRow.AttachID}
</p:column>
<p:column headerText="Dosya Tarihi">
#{dataRow.AttachDate}
</p:column>
<p:column headerText="Dosya">
<p:commandButton id="downloadLink" value="İndir" icon="ui-icon-arrowthichk-s" rendered="#{not empty dataRow.AttachData}" ajax="false">
</p:commandButton>
</p:column>
I want to get selected p:column's AttachId when I click downloadLink commondButton by javascript.