Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by S.Sekar on Sep 17, 2008 22:46
open dhtmlx forum
DHTML Initialisation through XML and Smart Rendering

Hi

When I am doing initialisation through XML (ie defining the column count, type etc) along with smart rendering, I get improper XML error.

I checked following

1. If I enable Column definition through JavaScript and perform smart rendering, it is working perfectly ok.
2. If I enable column definition through XML (and do not provide column definition through Javascript) first set of 50 along with header are rendered properly. When I scroll down, I get Invalid XML error. My JSP also throws Java.null.pointer exception. I have set tag for posStart, count, maxRow, tablename (which is internal to our installation). Do I need to handle any other get variable?

<DHTML:DHTMLGridGetXMLFromTempTable count="${param['count']}" direction="${param['direction']}" orderBy="${param['orderBy']}" posStart="${param['posStart']}" maxRow="${param['MaxRow']}" reportName="${param['ReportName']}" tableName="${param['TABLENAME']}" />

Any idea?

Regards
S.Sekar
Answer posted by dhtmlx support on Sep 18, 2008 02:46

You get problems with loading next pages cause your Java exception makes XML invalid, I think. This is obvious. Why you have this exception is better to check on your side - what object was null.
Most common mistake is: You should use head tag just with first load. Do not use it when grid is initialized (for responses on scroll).

Answer posted on Oct 19, 2008 23:35
Hi

Issue is resolved. The problem was exactly what you mentioned. We were trying to include header in update (or second) post also. After fixing it is working ok.

Thanks.

S.Sekar