Forum
21:10
09/06/2010
I'm using jqgrid with Grails and everything looks great when the page initially shows (http://someserver/item/list). When I navigate to a different page (http://someserver/item/edit/1) and submit my values the Controller saves info to the database and issues a redirect back to my list page. Once the redirect happens my table is still visible but there is no data in the table. The grid is never calling my service to load the new json data. Has anybody ran into this before? Is there any workaround? I should also state that after the redirect, if I do a manual browser refresh my table is still empty.
22:40
09/06/2010
Ok, I just got this working. I thought is was related to sitemesh and artifacts being included from the main template layout. But it came down to the 'url' and 'editurl' options on the grid not pointing to a full path. During initial render I was using just the action name of the grails controller ('itemList') which worked great. but after redirect things broke. When I changed to 'url' and 'editurl' to use the grails createLink tag url=${createLink(action: 'itemList')} things worked after the redirect.
Most Users Ever Online: 715
Currently Online:
26 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66