Author Topic: Struts 2 jQuery tabs and paramquery issue  (Read 288 times)

nsymons

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 11
    • View Profile
Struts 2 jQuery tabs and paramquery issue
« on: September 17, 2024, 12:45:09 am »
We are currently utilizing Struts v2.5.33 and pqGrid v7.3.0. When we are working within the tab and attempt to call a modal that contains a grid it throws an error. The tabs and modal open when we comment out the line $grid = $("#gridSelector").pqGrid(obj); within the modal. So we know the tabs and modal work, but once paramquery is introduced it fails. We have the same modal work on other pages without the struts tabs functionality. The error in the browser is as follows that points to the call of the rendering of the tab that contains the modal and paramquery:

VM158:59 Uncaught SyntaxError: Unexpected token ';'
    at eval (<anonymous>)
    at Function.globalEval (jquery-2.2.4.min.js:2:2640)
    at ua (jquery-2.2.4.min.js:3:13257)
    at n.fn.init.append (jquery-2.2.4.min.js:3:14539)
    at n.fn.init.<anonymous> (jquery-2.2.4.min.js:3:15641)
    at K (jquery-2.2.4.min.js:2:30342)
    at n.fn.init.html (jquery-2.2.4.min.js:3:15322)
    at <anonymous>:23:30

Has this been seen before or has a possible solution within paramquery?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Struts 2 jQuery tabs and paramquery issue
« Reply #1 on: September 17, 2024, 06:47:21 am »
This has not been seen before.

Could you please share a small test case on jsfiddle reproducing the issue so that I can check what's going on.

necatiozbek

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Struts 2 jQuery tabs and paramquery issue
« Reply #2 on: September 17, 2024, 07:53:25 pm »
Maybe it can give you an idea. I had a similar problem with Bootstrap Modal. After showing the modal (onshow event), I defined the grid and loaded the data. The problem was solved.