View Full Version : [CLOSED] Issue with ExtPartial

May 17, 2013, 2:37 AM
I am having issue with ExtPartial. Looks like a bug in your code.

Just turn on sourceFormatting="true" in your web.config of examples explorer, and run the following example :

Look at "Load View as Items". Nothing loads! It only happens when u use ExtPartial in AddTo and Item=true mode.

I had to debug your source code to figure this out. Looks like the following :

private static Regex ItemsContainer_RE = new Regex("<ext\\.net\\.container>.+?items:\\[(.*)\\].+</ext\\.net\\.container>", RegexOptions.Compiled | RegexOptions.Singleline);

The above Regex does'nt match the multi line script string that is generated with additional spaces, etc. after source formatting and hence the issue.

May 17, 2013, 5:35 AM
Hi @amitpareek,

So, is it not reproducible without the soureFomatting="true" option?

If so, then yes, this setting is problematic. We will look what we can do. For now, we recommend to turn this setting down.

May 17, 2013, 5:58 AM
You should be able to reproduce the issue with sourceFormatting="true".

If its false, all works well. As I mentioned in my 1st post, the Regex you use, does'nt match the formatted string.

May 18, 2013, 5:51 AM
Thanks for the report, fixed in SVN