Hi,
Whenever I get an exception from java backend for the call to display the grid, the error is not getting rendered on screen anywhere.
I tried with
- returning ERROR from action.
- throwing an exception in action
- "errorText" and "errorElementId" attributes of <sjg;grid> tag
- subscribing to an error topic via onErrorTopics="some_grid_error"
I verified that I am throwing 500 error back to user via firebug.
I tried to look around.. but..
a. No unit tests are present for the jqgrid related project in struts2-jquery plugin.
b. The grid demo also covers the "good" cases not the "error" cases.
Can anyone help?
Here is my grid block..
<sjg:grid
id="gridtable"
formIds="searchVtaForm"
dataType="json"
href="%{remoteurl}"
reloadTopics="reloadGridTable"
caption="New Launch Issues"
pager="true"
gridModel="gridForSearchVta"
rowList="10,15,20"
rowNum="15"
rownumbers="true"
width="1154"
altRows="true"
viewrecords="true"
errorElementId="incident_grid_errors"
onErrorTopics="gridError"
errorText="Some error has happened :-("
>
<sjg:gridColumn ..../>
<sjg:gridColumn ..../>
<sjg:gridColumn ..../>
</sjg:grid>
$.subscribe('gridError', function(event, data) {
alert('GRid load error : ' +
event.originalEvent.id); });