Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_Related Related Topics sp_TopicIcon
Table empty after server-side redirect
09/06/2010
21:10
Avatar
aoathout
Member
Members
Forum Posts: 5
Member Since:
09/06/2010
sp_UserOfflineSmall Offline

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.

09/06/2010
21:46
Avatar
bodyjar
Member
Members
Forum Posts: 6
Member Since:
09/06/2010
sp_UserOfflineSmall Offline

Is your redirect is a javascript browser back or a http redirect (3xx) ?

09/06/2010
22:26
Avatar
aoathout
Member
Members
Forum Posts: 5
Member Since:
09/06/2010
sp_UserOfflineSmall Offline

bodyjar said:Is your redirect is a javascript browser back or a http redirect (3xx) ?


It is a http redirect. The grails redirect call uses HttpServletReponse.sendRedirect() behind the scenes.

09/06/2010
22:40
Avatar
aoathout
Member
Members
Forum Posts: 5
Member Since:
09/06/2010
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information