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
Grid load problem - getGridModel() doesn't fire after a redirect
21/11/2011
23:05
Avatar
mk-chase
New Member
Members
Forum Posts: 1
Member Since:
21/11/2011
sp_UserOfflineSmall Offline

Hello,

I inherited this struts2/jQuery app and don't have in-depth knowledge of this stuff yet.

I am not sure whether the bug is in jqgrid or in our app, but here's the problem:

Normally an sjgrid executes an action mapped via the url tag

  <s:url id="remoteurl" action="search">
     <s:param name="action">myGrid</s:param>
  </s:url>

  <sjg:grid id="searchGrid"
     dataType="json"
     href="%{remoteurl}"
     gridModel="gridModel" ...

the action prepares a [json] result in a List<Object> gridModel. Then the getGridModel() method is somehow fired by the framework [ajax?] and the grid is filled with data.

After a certain "redirectAction" event a page [without a grid] is displayed. Normally the page is submitted [to save the object loaded into the session] before any other action takes place and there is no problem. However, if any other page is accessed [via menu] before the submit, ALL the grids [we have quite a few] stop firing the getGridModel() method. The actions the grids point to DO execute and prepare the [json] results in the gridModel variable of the action, but the getGridModel() doesn't fire anymore until the user logs out and the session is discarded. The sources of the generated jsp pages with the grids are the same in both cases - when the grids are healthy [display data] or not - it doesn't look like a JS error. I also see the same problem in various browsers [IE8, Chrome].

I wonder if anybody hit something like this before and appreciate any help.

Thanks in advance.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
27 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