Hi,
I have a display:table with one column - containing a text value. I am trying to add two more columns to it. These two columns contain 'Edit' and 'Delete' links. The delete link calls a JS function on click, which sends an AJAX request to delete the row from the database and subsequently remove it from the display:table. The Edit link opens up a popup div which allows the user to edit the text value in the display table and save, again based on AJAX. I have also specified a requestURI to my action controller in this display:table.
If I include only the delete column (and its associated JS handlers) in my JSP, everything works fine. However, when I also include the 'Edit' functionality (with its popup div and the JS AJAX function), everything stops working. Although the JS functions are called, the request is not submitted to the action controller. It seems to be dropped somewhere.
I am using Display Tag version 1.1.1. I use this with JSTL, YUI (for AJAX calls) with SpringMVC framework.
I have implemented similar functionality with a popup div calling a JS AJAX function to save elsewhere and it works fine. Any ideas on what I am missing here will be greatly appreciated.
Thanks,
sv
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is now resolved, it was due to an error in the original JSP. After debugging some more, I realized that it is unrelated to display tag. Thanks anyway.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have a display:table with one column - containing a text value. I am trying to add two more columns to it. These two columns contain 'Edit' and 'Delete' links. The delete link calls a JS function on click, which sends an AJAX request to delete the row from the database and subsequently remove it from the display:table. The Edit link opens up a popup div which allows the user to edit the text value in the display table and save, again based on AJAX. I have also specified a requestURI to my action controller in this display:table.
If I include only the delete column (and its associated JS handlers) in my JSP, everything works fine. However, when I also include the 'Edit' functionality (with its popup div and the JS AJAX function), everything stops working. Although the JS functions are called, the request is not submitted to the action controller. It seems to be dropped somewhere.
I am using Display Tag version 1.1.1. I use this with JSTL, YUI (for AJAX calls) with SpringMVC framework.
I have implemented similar functionality with a popup div calling a JS AJAX function to save elsewhere and it works fine. Any ideas on what I am missing here will be greatly appreciated.
Thanks,
sv
This is now resolved, it was due to an error in the original JSP. After debugging some more, I realized that it is unrelated to display tag. Thanks anyway.