<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Castle Monorail &#8211; NVelocity View Engine</title>
	<atom:link href="http://justinramel.com/wp-404.php/2006/06/22/monorail-nvelocity-view-engine/feed/?404;http://justinramel.com:80/2006/06/22/monorail-nvelocity-view-engine/feed/" rel="self" type="application/rss+xml" />
	<link>http://justinramel.com/2006/06/22/monorail-nvelocity-view-engine/</link>
	<description>A list of stuff I should remember but never do</description>
	<lastBuildDate>Wed, 16 Sep 2009 23:25:54 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Chris Ovenden</title>
		<link>http://justinramel.com/2006/06/22/monorail-nvelocity-view-engine/comment-page-1/#comment-93</link>
		<dc:creator>Chris Ovenden</dc:creator>
		<pubDate>Thu, 02 Aug 2007 16:52:21 +0000</pubDate>
		<guid isPermaLink="false">https://justinram.wordpress.com/2006/06/22/monorail-nvelocity-view-engine/#comment-93</guid>
		<description>Simpler:

$Flash.error</description>
		<content:encoded><![CDATA[<p>Simpler:</p>
<p>$Flash.error</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://justinramel.com/2006/06/22/monorail-nvelocity-view-engine/comment-page-1/#comment-92</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 11 Jan 2007 19:10:59 +0000</pubDate>
		<guid isPermaLink="false">https://justinram.wordpress.com/2006/06/22/monorail-nvelocity-view-engine/#comment-92</guid>
		<description>Controller:

Flash[&quot;error&quot;] = &quot;Oops an occurred!&quot;;


NVelocity view:

$Flash.get_Item(&quot;error&quot;)

Hope that helps!</description>
		<content:encoded><![CDATA[<p>Controller:</p>
<p>Flash["error"] = &#8220;Oops an occurred!&#8221;;</p>
<p>NVelocity view:</p>
<p>$Flash.get_Item(&#8221;error&#8221;)</p>
<p>Hope that helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Stackhouse</title>
		<link>http://justinramel.com/2006/06/22/monorail-nvelocity-view-engine/comment-page-1/#comment-91</link>
		<dc:creator>Robert Stackhouse</dc:creator>
		<pubDate>Thu, 11 Jan 2007 17:42:13 +0000</pubDate>
		<guid isPermaLink="false">https://justinram.wordpress.com/2006/06/22/monorail-nvelocity-view-engine/#comment-91</guid>
		<description>Another question for you.  How does one access the Flash from the view using NVelocity?</description>
		<content:encoded><![CDATA[<p>Another question for you.  How does one access the Flash from the view using NVelocity?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: robert</title>
		<link>http://justinramel.com/2006/06/22/monorail-nvelocity-view-engine/comment-page-1/#comment-90</link>
		<dc:creator>robert</dc:creator>
		<pubDate>Fri, 10 Nov 2006 15:09:40 +0000</pubDate>
		<guid isPermaLink="false">https://justinram.wordpress.com/2006/06/22/monorail-nvelocity-view-engine/#comment-90</guid>
		<description>An excellent suggestion.  I have created a base controller class that has a view helper attribute that loads the imageRoot from the web.config file now.  Thanks for your help.</description>
		<content:encoded><![CDATA[<p>An excellent suggestion.  I have created a base controller class that has a view helper attribute that loads the imageRoot from the web.config file now.  Thanks for your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: justinram</title>
		<link>http://justinramel.com/2006/06/22/monorail-nvelocity-view-engine/comment-page-1/#comment-89</link>
		<dc:creator>justinram</dc:creator>
		<pubDate>Fri, 10 Nov 2006 10:52:52 +0000</pubDate>
		<guid isPermaLink="false">https://justinram.wordpress.com/2006/06/22/monorail-nvelocity-view-engine/#comment-89</guid>
		<description>Robert you can have a Application controller which you then inherit from you other controllers:

using System;
using Castle.MonoRail.Framework;
using Castle.MonoRail.ActiveRecordSupport;
using PS.Helpers;

namespace PS.Controllers
{
  [Layout(&quot;application&quot;)]
  [Helper(typeof(ViewHelper), &quot;ViewHelper&quot;)]
	public abstract class ApplicationController : ARSmartDispatcherController
	{

	}
}

namespace PS.Controllers
{
  using System;
  using System.Collections.Generic;

  using Castle.ActiveRecord;
  using Castle.ActiveRecord.Framework;
  using Castle.MonoRail.Framework;
  using Castle.MonoRail.Framework.Helpers;

  using Models;

  [Rescue(&quot;Error&quot;)]
  [DefaultAction(&quot;Index&quot;)]
  public class PropertySearchController : ApplicationController
  {
  }
}

You may also want to look at helpers if you need access in your views:

using System;
using System.Collections.Generic;
using System.Text;
using Castle.MonoRail.Framework.Helpers;
using Uon.Web.Util;

namespace PS.Helpers
{
  using System.Collections;
  using System.IO;

  class ViewHelper : AbstractHelper
	{
    public string getHeader()
    {
    }
}

Hope that helps. Stick with Monorail it&#039;s a cracking framework!</description>
		<content:encoded><![CDATA[<p>Robert you can have a Application controller which you then inherit from you other controllers:</p>
<p>using System;<br />
using Castle.MonoRail.Framework;<br />
using Castle.MonoRail.ActiveRecordSupport;<br />
using PS.Helpers;</p>
<p>namespace PS.Controllers<br />
{<br />
  [Layout("application")]<br />
  [Helper(typeof(ViewHelper), "ViewHelper")]<br />
	public abstract class ApplicationController : ARSmartDispatcherController<br />
	{</p>
<p>	}<br />
}</p>
<p>namespace PS.Controllers<br />
{<br />
  using System;<br />
  using System.Collections.Generic;</p>
<p>  using Castle.ActiveRecord;<br />
  using Castle.ActiveRecord.Framework;<br />
  using Castle.MonoRail.Framework;<br />
  using Castle.MonoRail.Framework.Helpers;</p>
<p>  using Models;</p>
<p>  [Rescue("Error")]<br />
  [DefaultAction("Index")]<br />
  public class PropertySearchController : ApplicationController<br />
  {<br />
  }<br />
}</p>
<p>You may also want to look at helpers if you need access in your views:</p>
<p>using System;<br />
using System.Collections.Generic;<br />
using System.Text;<br />
using Castle.MonoRail.Framework.Helpers;<br />
using Uon.Web.Util;</p>
<p>namespace PS.Helpers<br />
{<br />
  using System.Collections;<br />
  using System.IO;</p>
<p>  class ViewHelper : AbstractHelper<br />
	{<br />
    public string getHeader()<br />
    {<br />
    }<br />
}</p>
<p>Hope that helps. Stick with Monorail it&#8217;s a cracking framework!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: robert</title>
		<link>http://justinramel.com/2006/06/22/monorail-nvelocity-view-engine/comment-page-1/#comment-88</link>
		<dc:creator>robert</dc:creator>
		<pubDate>Thu, 09 Nov 2006 18:51:10 +0000</pubDate>
		<guid isPermaLink="false">https://justinram.wordpress.com/2006/06/22/monorail-nvelocity-view-engine/#comment-88</guid>
		<description>My question is where is $siteRoot created and stored.  I would like to create a similar variable named $imageRoot that would be accessible to all controllers in an application just as $siteRoot is without having to use the ResourceAttribute.  Forgive me if the answer is obvious, I am new to MonoRail.</description>
		<content:encoded><![CDATA[<p>My question is where is $siteRoot created and stored.  I would like to create a similar variable named $imageRoot that would be accessible to all controllers in an application just as $siteRoot is without having to use the ResourceAttribute.  Forgive me if the answer is obvious, I am new to MonoRail.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: justinram</title>
		<link>http://justinramel.com/2006/06/22/monorail-nvelocity-view-engine/comment-page-1/#comment-86</link>
		<dc:creator>justinram</dc:creator>
		<pubDate>Mon, 26 Jun 2006 10:33:43 +0000</pubDate>
		<guid isPermaLink="false">https://justinram.wordpress.com/2006/06/22/monorail-nvelocity-view-engine/#comment-86</guid>
		<description>That&#039;s great thanks for that. It&#039;s difficult to find the most up to date info on Monorail it seems as if the Wiki pages haven’t quite caught up to the source. If I remember correctly I actually got the $DictHelper.CreateDict from one of your posts on the mailing list.

Do you have any tips on where to look for the latest information?</description>
		<content:encoded><![CDATA[<p>That&#8217;s great thanks for that. It&#8217;s difficult to find the most up to date info on Monorail it seems as if the Wiki pages haven’t quite caught up to the source. If I remember correctly I actually got the $DictHelper.CreateDict from one of your posts on the mailing list.</p>
<p>Do you have any tips on where to look for the latest information?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hammett</title>
		<link>http://justinramel.com/2006/06/22/monorail-nvelocity-view-engine/comment-page-1/#comment-87</link>
		<dc:creator>hammett</dc:creator>
		<pubDate>Thu, 22 Jun 2006 13:48:27 +0000</pubDate>
		<guid isPermaLink="false">https://justinram.wordpress.com/2006/06/22/monorail-nvelocity-view-engine/#comment-87</guid>
		<description>As a matter of fact you can use the following to create dictionaries:

$HtmlHelper.SubmitButton(&quot;Login&quot;, &quot;%{id=&#039;btnLogin&#039;}&quot;)</description>
		<content:encoded><![CDATA[<p>As a matter of fact you can use the following to create dictionaries:</p>
<p>$HtmlHelper.SubmitButton(&#8221;Login&#8221;, &#8220;%{id=&#8217;btnLogin&#8217;}&#8221;)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
