aspose file tools
The moose likes JSF and the fly likes Command link with Javascript in Datatable Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Command link with Javascript in Datatable" Watch "Command link with Javascript in Datatable" New topic
Author

Command link with Javascript in Datatable

Bala Muruganand
Greenhorn

Joined: May 03, 2008
Posts: 1
I am using a datatable wherein the first column contains a h:commandLink in every row. On click of the command link I need to display a java script alert message 'with values present in the rows displayed' in the javascript. Primaryly a confirmation message before the value is deleted

Although I had done with addition of the command link with javascript. I am not able to display the dynamic value in the confirmation javascript message.

Can anyone help me with this ?
Darth Heizenberg
Greenhorn

Joined: May 29, 2003
Posts: 6


This is how I've achieved this using RichFaces. I imagine it should be pretty similar with a standard datatable tag too.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Command link with Javascript in Datatable
 
Similar Threads
regarding refreshing the parent window
How to identify which commandLink was clicked? [SOLVED]
Send Ajax request to refresh dataTable
command link inside the <hx:commandExRowAction>
Error while displaying validation message for inputText generated dynamically in rich:dataTable