Discussion Group

Syndicate content
Development discussion and project notification for Spark view engine
Updated: 6 min 4 sec ago

Binding

Tue, 07/27/2010 - 05:08
Robert, would you mind posting the core details of the "binding"
feature you demo'ed yesterday? I think this a "killer feature" that is
going to make spark indispensable going forward.

Precompiling views and C# compiler version

Tue, 07/27/2010 - 03:48
The BatchCompiler that is a facade to CSharpCodeProvider (CodeProvider
system in general because of VB support) is very dependent on
system.codedom in app/web config. When no such config is present the
BatchCompiler should at least be doing some funky guess work as to how
the CSharpCodeProvider should be configured (maybe the root cause is

Re: Visual Studio intellisense

Tue, 07/27/2010 - 03:00
Not sure if everyone on the list knows yet, but I'll be doing a first demo
of the SparkSense beta in the mvcconf.com talk I'm doing later today.
Details here:
[link]
<[link]>I

Re: Visual Studio intellisense

Tue, 07/27/2010 - 02:28
Awesome! looking forward to the beta version!

Re: SparkViewEngine spontaneous NullReferenceException while rendering view

Tue, 07/27/2010 - 02:28
Hi Rob,

I'll try to reproduce it in an isolated project and mail it to you.

Regards,
Ruud

Re: SparkViewEngine spontaneous NullReferenceException while rendering view

Tue, 07/27/2010 - 00:29
Hi Ruud,
I'll try look into this when I get a chance - the next two weeks are pretty
much out for me though. If you could email me directly, a small zip file
with just enough in it to reproduce the error, that'll speed things up. I
can run the stress test my end, but I'll need some example failing code

Re: SparkViewEngine spontaneous NullReferenceException while rendering view

Tue, 07/27/2010 - 00:14
No one got any suggestions?
For the time being i've created a workaround by catching the "Error
executing child request" exception in Application_Error() and redirect
to the same page again (adding a counter to prevent infinite loop).
This works and prevents the user from ever seeing the error, but it's

Re: Castle MonoRail problems - missing ValidationHelper

Mon, 07/26/2010 - 16:17
I found the deprecated classes on the MonoRail's git repository, you
can find too or download it: [link]
(add these 2 files to Castle.MonoRail.Views.Spark project, optionally
into Helpers folder)

I think that these helpers can be improved and the Spark upgrade for

Castle MonoRail problems - missing ValidationHelper

Mon, 07/26/2010 - 14:26
I'm studying Spark VE since some time and tried to run it in my
MonoRail project. I got some problems, and one of them is about
ValidationHelper class. Searching in google I found it:
[link]

In recent changes, ValidationHelper and HtmlHelper were removed from

Re: Non-ascii characters

Mon, 07/26/2010 - 03:50
There you go! Great that you found the culprit! ;)
-Asbjørn

SparkViewEngine spontaneous NullReferenceException while rendering view

Sun, 07/25/2010 - 16:06
We are using the latest stable release of SparkViewEngine for
[link].
There is a problem that occurs -sometimes- while rendering the
homepage.
When you look at the homepage it will usually render perfectly fine,
but i noticed some exceptions in the EventLog from people visiting the

Re: Non-ascii characters

Sun, 07/25/2010 - 14:14
Visual Studio will let you change the encoding of XML files (or,
really, any file) on the fly. The encoding and line-ending menues are
under the file menu.
Sent from my iPhone

Re: Non-ascii characters

Sun, 07/25/2010 - 06:18
I've found the problem and a temporary solution.

I'm using VS 2010 without the spark addin. Nothing special about my
setup. Windows 7 64bit.
The problem is that VS saves my .spark files in ANSI encoding and not
utf8. I've checked with another project where we don't use spark and
there the aspx files get saved in utf8.

Re: Non-ascii characters

Sun, 07/25/2010 - 06:18
Sorry for being blunt, but this is the worst recommendation I've read in a
while. Using HTML entities is not the preferred solution to this problem,
which is a symptom of an underlying issue that instead should be resolved.
.NET uses UTF-16 as its internal representation of strings, which handle

Re: Non-ascii characters

Sat, 07/24/2010 - 08:29
When using non-ascii characters in HTML, you should ALWAYS use entity
references as opposed to trying to encode the character in the native
code set. Character encodings are a messy business full of
contradicting assumptions and defaults, and your characters could
easily be getting reinterpreted as a different encoding somewhere

Non-ascii characters

Sat, 07/24/2010 - 01:36
Hi

I've been trying to include some non-ascii characters in my views,
without much success.
I'm trying to write the norwegian characters æ,ø,å but they show up
with other symbols.

I've tried to change the encoding in my browsers, and set the charset
but nothing helps, which leads me to think that it is spark that

Re: Newbie question about re-compiling views

Thu, 07/22/2010 - 20:53
I have the same problem, but on windows.
A possible solution is listed here,[link]
spark-dev/browse_thread/thread /dbee06a0d1b2766f
and it works for me so far. I manually load the assemblies at app
start. Not a good solution, but it works.

Henning

Re: Content Element Order

Thu, 07/22/2010 - 16:56
That use of macros was nice to see as I've barely considered them as a
tool so far. But I think that implementation still has the same issue
of the nested masters being rendered after the view resulting in the
wrong reference order.

It maybe could be resolved by adding a top master so that all

Re: Dynamically set the view base type for a partial view?

Thu, 07/22/2010 - 16:40
Hi all, thanks for the responses - in the end I had to inject some
<var PROPERTYNAME="VALUE" /> tags into the code to get the customised
results I needed. It's not ideal, but it works.

Guillaume, you're right, partials don't translate to classes, like the
Web Forms view engine partial representations, they just get injected

Re: Dynamically set the view base type for a partial view?

Tue, 07/20/2010 - 19:11
This would probably work if you called the partial with
Html.RenderPartial("_partial") and not with the inline <partial/> syntax.