how can I escape " in NVelocity ?
e.g.
test.message = "136# 1/4" Test Test Test"
if I do <input type="text" id="Test.Description" value="$test.message"/>
it displays : 136# 1/4
if I do <input type="text" id="Test.Description" value=$test.message/>
it displays : 136
if I do <input type="text" id="Test.Description" value='$test.messa...
Hi everybody, I am using Castle ActiveRecord to mapping database.
I have a simple database like this:
And mapping code:
Group:
[ActiveRecord("[Group]")]
public class Group : ActiveRecordBase
{
private long m_ID;
private string m_GroupName;
private string m_Description;
private IList<Contact> m_...
{"Configuration system failed to initialize"}
i get this error while trying to run a windows application i made ,which means that castle windsor couldnt initialize the configuration from the app.config
the funny thing is my test project works and its able to initialize the same app.config but when i moved that to windows application an...
When I call FindAllByProperty it calls OnUpdate in castle Active Record, This causes an stack overflow because I do some duplicating check on OnUpdate an instance. Consider following code. Why it calls OnUpdate? How can stop it?
protected override void OnUpdate()
{
if (FindAllByProperty("Title", this.Title).Length > 1)
throw...
Castle ActiveRecord has BeforeLoad event but I need AfterLoad event too. I know it's possible to use NHibernate's PostLoad event. But how can I do this?
...
Hi all,
I have a custom attribute that accesses the database with nhiberate. The attribute actually inherits from Castle's AbstractValidationAttribute and is used to validate properties against regular expressions. Problem is, these regular expressions are cms managed and stored in the database, and when you change the values in the d...
This call
// this._cfg is an NHibernate Configuration instance
this._sessionFactory = this._cfg.BuildSessionFactory();
Gives me this exception at runtime (NOT at compile time).
Could not load file or assembly 'NHibernate.ByteCode.Castle' or one of its dependencies. The system cannot find the file specified.":"NHibernate.ByteCode.Castl...
Castle Windsor 2.5. This fails. Why? Is it designated beahvior or a bug? Seems sub dependency resolvers are not even queried when resolving top-level services.
class Program
{
class Resolver :ISubDependencyResolver
{
public object Resolve(CreationContext context, ISubDependencyResolver contextHandlerResolver, ComponentModel mod...
I have a reporting MVC application that uses Castle Windsor.
On application start up (in global.asax) all of the types are registered and then each subsequent request to the application resolves the relevant report type and windsor automatically handles the dependencies.
I need to switch one of the dependant types for another depending...
I'm using the NVelocity from the Castle project and according to the velocity specs I should be able to access the loop counter like this:
$foreach.counter
But I can't get it to work so I suspect that it has not been implemented in NVelocity.
Can anyone confirm this?
...
Hi, I am building an object through castle windsor and my constructor accepts an argument of a custom type. How do I pass it to my object.
public class ArgumentClass
{
int value1;
string value2;
}
public interface IInterface
{
}
public class CClass : IInterface
{
public CClass(ArgumentClass arg) { }
}
All my configuration is...
I'm trying to implement ELMAH in my ASP.NET MVC application, but I'm having a problem that caused me to lose hours and hours ... and it's still unsolved. My application is running normally, but when I try and configure ELMAH and them access Home/Index, the application returns me a 404 (Resource not found).
Has anyone had this problem an...
Hi,
Is there anyone out there having a working Castle 2.5 based stack including NHibernate (2.1.2.x), FluentNHibernate, Magnum, NServiceBus, rRhino.Security
up and running built for .Net 4?
thanks in advance & greetings,
chris
...
Hi
I've been using Castle project for the first time and facing a problem in registering a component with the container in a console application.
Following is the castle.config file:
<configuration>
<configSections>
<section name="castle"
type="Castle.Windsor.Configuration.AppDomain.CastleSectionHandler, Castle.Windsor" />...
Hi all,
It's a long time I'm working with NHibernate session through frameworks like Castle ActiveRecord but never understood what is a session exactly and how should manipulate. Can anybody help? Is there any concise resource?
Thanks in Advance
...
How to register two services with one instance of implementation? I used:
_container.Register(Component.For(new [] { typeof(IHomeViewModel), typeof(IPageViewModel) }).
ImplementedBy(typeof(HomeViewModel)).Named("IHomeViewModel").LifeStyle.Singleton)
But upper code registers two instances of HomeViewModel.
...
I would like to register an object with a list parameter, but without using a configuration file.
this is the configuration file that I currently use:
<?xml version="1.0" encoding="utf-8" ?>
<castle>
<components>
<component id="EmailParser"
service="ESImportCommon.Email.IEmailParser, ESImportCommon"
type="ESImportCommon....
Hi,
I have a console application that is using a wrappers class to override the Resolve method of the windsor container. I have registered my services in the app.config file of the calling class. I have a service that requires some parameters to be passed through config file. This functionality is working fine till now. My requirement is...
Hi there,
We're trying to create a proxy on a DbConnection inheritor's instance and we got the following exception. We can't figure what's wrong with our case.
Is there any way to create a proxy on an existing DbConnection's instance?
Thank you very much.
> Castle.DynamicProxy.Tests.ClassProxyWithTargetTestCase: 0 code
Test 'Castle...
hi!
can someone tell me how to do a interceptor implements (behavior) for windsor castle dynamic proxy, the interface the ierrordatainfo?
many thanks.
...