Login Register

question mark

Dojox Grid problem this._arrayOfTopLevelItems has no properties

Hi to all, I'm pretty new to Dojo and I'm experiencing some problems with grids. I need to show data caught from a DB which sends them in JSON format. It's an array containing a number in the first position, and arrays again in the other positions; client side I just group the arrays in bigger ones through some criteria. Each group represents a data store for a single grid.
My problem is that grids show only question marks, instead of data. Through FireBug I had the following error description:

"this._arrayOfTopLevelItems has no properties"
"TypeError"

passing parameters in contentpane's href

I have a tabcontainer with a contentpane, let's call it editTab. Elsewhere I have a js function:

function modify(id) {
var editTab = dijit.byId("editTab");
submitTab.setHref="/edit.html?id=" + id;
submitTab.refresh();
dijit.byId("myTabContainer").selectChild(editTab);
}

Let's I call modify(42); On server side I get the request for edit.html, but with an empty querystring (you know, HttpServletRequest.getQueryString();). Does dojo eat away my parameters? Any way to go by this? Other than xhrPost and setContent?

Syndicate content