7 - FlashBinderAttribute was removed as I doesnt work with the new
\r
8 MonoRail design (changed to make the cache support work)
\r
10 - Applied Tim Haines' patch adding TextAreaValue to FormHelper
\r
13 "View components params problem"
\r
15 - Applied Markus Zywitza's patch adding a Fold method to TextHelper.
\r
16 His description "Shortens a text to the specified length (using full words only and
\r
17 adding an ellipsis at the end) and wraps it into a span-element that
\r
18 has the title-property with the full text associated. This is
\r
19 convenient for displaying properties in tables that might have very
\r
20 much content (desription fields etc.) without destroying the table's
\r
21 layout. Due to the title-property of the surrounding span-element, the
\r
22 full text is displayed in the browser while hovering over the
\r
25 - Applied Aaron Jensen's patch fixing MR-288
\r
26 "ApplicationPhysicalPath returns request path instead of / path"
\r
29 "MockServerUtility.MapPath throws NotImplementedException"
\r
31 - Applied Bill Pierce's patch fixing MR-278
\r
32 "Add UrlDecode to IServerUtility"
\r
34 - Applied Bryan Brown's patch fixing MR-273. This one adds a new attribute to
\r
35 the routing configuration node: 'excludeAppPath'
\r
36 "Automatically handle ApplicationPath in the routing module"
\r
38 - Applied goodwill's patch fixing MR-275
\r
39 "DefaultRailsEngineContext triggers RTE on ApplicationPhysicalPath
\r
40 when running under ASPX Dev Server with virtual directory"
\r
42 - Changed the BaseControllerTest vdir to "" instead "/"
\r
44 - Added the Declare(String variable) to IJSGenerator inteface
\r
46 - Applied Tim Haines' patch changing FormHelper to make calls to FormatIfNecessary
\r
48 - Applied chris ortman's patch fixing MR-271
\r
49 "AdditionalSources not loaded when using the viewEngines element"
\r
51 - Applied Ricardo Stuven's patch fixing MR-258
\r
52 "JSON serialization in Ajax calls"
\r
54 - Applied goodwill's patch fixing MR-212
\r
55 "Script Helpers (e.g. $Scriptaculous) installscript function clear flash unexpected"
\r
57 - Applied Georges Benatti's patch
\r
58 adding the attribute matchHostNameAndPath to the routing node on the configuration.
\r
60 If set to 'true', the regular expression is matched against the whole url. Defaults to 'false'
\r
62 - Added ability to customise Next/Prev links in DiggStylePagination.
\r
63 Patch from Markus Zywitza.
\r
65 - Applied Mathias Doenitz's patch fixing MR-265
\r
66 "(Re)enable initialization of Controller.AreaName, Controller.Name and Controller.Action before invoking Controller.Initialize()."
\r
68 - Applied Adam Tybor's patch fixing MR-266
\r
69 "Fix for GetErrorSummary() throwing an KeyNotFoundException for SmartDispatch Controller and Binder"
\r
72 "PropertyBag in WizardStep is null when access via key"
\r
74 - Applied Kyle Marshall's patch fixing MR-261
\r
75 "The default ValidatorRegistry is not overriddable in the monorail configuration"
\r
77 - Add support to BaseControllerTest (well MockRequest actually) for Mocking Url Referer. Patch from Colin Ramsay.
\r
79 - Fix SupportsSection implementation in ViewComponent (was comparing section name equality against StringComparer.InvariantCultureIgnoreCase).
\r
80 Also add a SupportsSection implementation to DiggStylePagination. Patches from Tim Haines.
\r
82 - Small change to DiggStylePagination to allow supplying querystring parameters in the url. Suggested by kalle.stenflo@gmail.com.
\r
84 - Applied Tim Haines' patch adding BindObject overloads that accept the AutoLoadBehavior enum,
\r
85 to the ARSmartDispatcherController
\r
87 - Changes from Lee Henson to add WizardStep support to TestSupport and provide a Generic BaseControllerTest.
\r
89 - Patch from Maruis Marais allowing BuildFormRemoteTag to gracefully degrade when JavaScript is disabled.
\r
91 - Patch from Lee Henson fixing regression introduced in 3783 in Prototype Validator. (Could not use hyphens in element id's).
\r
94 "When Windsor integration is enabled, the ControllerTree is empty"
\r
96 - Apply patches from Tim Haynes.
\r
97 "add a renderIfOnlyOnePage property to the DiggStylePagination View Component"
\r
98 "Add NewRootInstanceIfInvalidKey AutoloadBehaviour to Castle.MonoRail.ActiveRecordSupport"
\r
100 - Applied Goodwill's patch adding PersisteFlashFilter and the fValidate's localization support. Fixed MR-246.
\r
102 - Fixed the use of Scaffolding without Layouts (MR-251).
\r
104 - Added support for eager fetching of lazy collections, in [ARFetch] attribute.
\r
106 - Added support for auto load bevahior configuration when invokling the BindObject in the ARSmartDispatcherController
\r
108 - Added support for different access and naming strategies in the ARDatabind attribute.
\r
110 - Applied Matt Berther's patch adding LoggingExceptionHandler and FilteredExceptionHandler.
\r
112 - Applied chris ortman's patch fixing MR-242
\r
113 "FormHelper.LabelFor does not generate valid HTML when attributes are supplied"
\r
115 - Applied bonskijr's patch fixing MR-234
\r
116 "Under some circunstances ColumnRenderer generates invalid html"
\r
118 - Applied Marc-André's patch fixing MR-238
\r
119 "HtmlHelper.LinkTo: bugs- don't function when existing a area"
\r
121 - Applied Aaron Jensen's patch fixing the Resource Manager usage
\r
122 Changed from ResourceSet to ResourceManager
\r
124 - Applied Lee Henson's patch adding the 'onCreateAdvice'
\r
125 to PrototypeWebValidator
\r
127 - Applied Chris Ortman's patch fixing MR-235
\r
128 "Allow overriding of select generation in FormHelper"
\r
130 - Added Item(string id) overload to Checkboxlist
\r
131 Used to generate a checkbox with the specified id. Useful to label for='id' constructions
\r
133 - Added the Expect property to the ARDataBindAttr. Now it will clear the collections
\r
134 that are declared as expected, if not can be found on the resquest params. (MR-163)
\r
136 - Applied Colin Ramsay's patch fixing MR-232
\r
137 "HtmlHelper.InputButton should create <button> not <input type="button">"
\r
140 "incorrect component configuration results in an 'The container seems to be unavailable
\r
141 in your HttpApplication subclass' exception"
\r
143 - Applied Bart Reyserhove's patch fixing MR-226
\r
144 "ARDataBinder has problems when using generic collections"
\r
146 - Applied Jacob Lewallen's patch adding a new attribute (ViewComponentAttribute) used
\r
147 to name view components. The behavior is changed to strip the 'Component' suffix from the class name as well.
\r
149 - Applied Ernst Naezer's patch fixing MR-191
\r
150 "Add TransformFilter support to MR"
\r
152 - Applied Lee Henson's patch fixing MR-222
\r
153 "Use of IRailsEngineContext.Items"
\r
156 "ARDataBindAttribute does not set the Controllers validator on it's DataBinder"
\r
159 "FormHelper.Select with an interface datasource throws an Object mismatch exception."
\r
161 - Applied chris ortman's patch fixing MR-188
\r
162 "Allow the #component directive to support variables for the component name"
\r
165 "Using a lazy loaded nested object, "Ambiguous match found" exception occures when
\r
166 trying to use FormHelper to render control for the nested objects property."
\r
168 - Applied goodwill's patch fixing MR-213
\r
169 "DiggStylePagination has a typo which prevents the code from build"
\r
171 - Applied Edward Kreis' patch fixing MR-214
\r
172 "ARDataBinding and joined subclasses with derived BelongsTo, HasMany, HasAndBelongsToMany proeprties"
\r
175 "fValidate box message contains <BR/> if being triggered twice"
\r
178 "HtmlHelper.LinkToAttributed bug"
\r
180 - Applied Jacob Lewallen's patch adding an optional attribute to define a view component's name
\r
181 The patch also introduces a IViewComponentTree.
\r
183 - Added 'noaction' parameter to FormHelper.FormTag to prevent action attribute generation
\r
185 - Added Select list from Enum.
\r
188 PropertyBag.Add("colors",Enum.GetValues(typeof(ColorEnum)));
\r
191 $Form.Select("Color", $colors)
\r
193 - Applied Chris Ortman's patch adding MooHelper/JS generation based on it.
\r
195 - Applied Jacob Lewallen's patch adding virtuals to some FormHelper methods
\r
197 - Applied Patrick McEvoy's patch with a new approach to delete cookies
\r
201 SmartDispatcherController.ValidationSummaryPerInstance : IDictionary
\r
202 SmartDispatcherController.GetErrorSummary(object instance) : ErrorSummary
\r
203 SmartDispatcherController.HasValidationError(object instance) : bool
\r
205 Those can be used if DataBinder is configured to validate
\r
207 - Added Controller.RedirectToReferer
\r
209 - Configuration changed, added defaultUrls section (see monorail_configuration_ref.txt)
\r
211 - Added Controller.RenderMailMessage(string templateName, bool doNotApplyLayout) overload
\r
213 - Added static accessor support to NVelocity view engine. Default helpers are
\r
214 the Common System Types in dotnet (i.e. Double, String, Decimal, etc.)
\r
216 In your template: $String.Concat("foo","bar","me","please:",$Double.Epsilon)
\r
219 - Added better ControllerBinder support for indexed property expressions.
\r
220 This allows you to pass DataKeys as your action arguments
\r
222 - Applied Freyr Magnússon's patch fixing MR-206
\r
223 "ARBadaBinder does not resolve primary key for discriminator subclass from parent"
\r
225 - Retrieve target properties on demand for ControllerBinders ActionArgument editor
\r
227 - Added ControllerBinder Extender Control for WebForm views to eliminate the
\r
228 need to add event handlers in the codebehind that call Controller.Send
\r
230 - Brail now has Ruby's like symbols, using @symbol.
\r
231 For instance, component DiggStylePagination, ${ @useInlineStyle : true }
\r
233 - Brail can now accept " inside a ${ }, which used to break the parser previously.
\r
235 - Added IViewComponentContext.RenderView(name, textwriter)
\r
238 "DiggStylePagination.Initialize() doesn't check useInlineStyle parameter"
\r
240 - Added FormHelper.HiddenField("key", value) overload
\r
242 - Added 'valueformat' to SetOperations (affects FormHelper.Select, Checkboxlist)
\r
245 "Exception thrown by AccessibleThrough are not caught by rescues"
\r
247 - Added 'textformat' support to the all FormHelper operations (that create input elements).
\r
249 - Added BrailJS Support, allowing to generate javascript via brail scripts.
\r
250 Note; BrailJS scripts do not need <?brail ?> and any output statements there will be ignored.
\r
251 They are used strictly to create the generator.
\r
253 - Changed Brail extention from Boo to Brail / BrailJS
\r
255 - Added mask support to FormHelper field elements
\r
257 - Added FormHelper.PasswordNumberField
\r
259 - Refactored FormHelper to support other approaches to extract values from instance.
\r
260 Now it supports DataRows, DataRowViews and reflection
\r
262 - Added ColumnRenderer view component
\r
264 - Added DiggStylePagination ViewComponent, based on Alex Henderson work.
\r
265 See http://blog.bittercoder.com/PermaLink,guid,579711a8-0b16-481b-b52b-ebdfa1a7e225.aspx
\r
267 - Added PaginationHelper.CreateCustomPage
\r
269 This is only useful if the application code takes care of slicing (select top and etc)
\r
271 - Added formatting support to SetOperations (affects FormHelper.Select, Checkboxlist)
\r
275 $Form.Select("price", [1..100], "%{textformat='C'}")
\r
277 This will render a select with options like
\r
279 <option value="1">$1.00</option>
\r
280 <option value="2">$2.00</option>
\r
281 <option value="3">$3.00</option>
\r
284 - Added ScriptaculousHelper, deprecated Effects2Helper
\r
286 - Extract Behaviour related operations from AjaxHelper into BehaviourHelper
\r
288 - Added BehaviourHelper
\r
290 - Added UpdatePage and UpdatePageTag ViewComponents. Both allow you to have a "page"
\r
291 which is a JS generator. It evaluates the view component body to generate the JS.
\r
295 #blockcomponent(UpdatePageTag)
\r
296 $page.el('products').style.bgcolor.set('"white"')
\r
300 #blockcomponent(UpdatePage)
\r
301 $page.el('products').style.bgcolor.set('"white"')
\r
304 - Added FormHelper.NumberField() which renders a 'input text' with a javascript that
\r
305 prevents chars other than numbers (and period) from being entered.
\r
307 You can optionally pass an <c>exceptions</c> value through the dictionary.
\r
308 It must be a comma separated list of chars that can be accepted on the field.
\r
310 - Added FormHelper scripts:
\r
312 View must use FormHelper.InstallScripts()
\r
314 - Refactored generation of script blocks
\r
316 - Created stub for UrlForHelper
\r
318 - Helpers are added with a less verbose name
\r
319 FormHelper and Form, AjaxHelper and Ajax are made available to the view
\r
321 - Added AuthenticatedContent ViewComponent that allows context to be
\r
322 render based on the user state (authenticated or anonymous)
\r
324 - Removed CompositeViewEngine as it's useless now that we support multiple view engines
\r
326 - Multiple view engine support:
\r
327 Configuration schema changed, see monorail_configuration_ref.txt for more information
\r
329 - Introduced IViewEngineManager that sits between the controller and the view engines
\r
330 deciding which view engine will be used output the contents
\r
332 - Applied patch by Luke Melia for MR-192:
\r
335 - Introduced IPaginatedPage.HasPage(), useful for Google-like pagination.
\r
337 - PaginationHelper.CreatePagination<T>() now accepts ICollection<T> as a parameter.
\r
339 - New method PaginationHelper.CreatePageLinkWithCurrentQueryString().
\r
340 Creates a page link, copying the current QueryString parameters as well.
\r
342 - Enhanced AbstractHelper.BuildQueryString to support multi-value query strings:
\r
343 IDictionary dict = new Hashtable();
\r
345 dict.Add("selectedItem", new int[] { 2, 4, 99 });
\r
346 string queryString = BuildQueryString(dict);
\r
347 // should result in: "id=5&selectedItem=2&selectedItem=4&selectedItem=99&"
\r
349 - FormHelper.Select() - applied patch from James Sapara allowing firstoptionvalue to be set to
\r
350 something other than null.
\r
352 - Restored property IsPostback checking (For use with WebFormViewEngine).
\r
354 - Restored support for passing additional arguments to a controller
\r
355 via Send and use a dictionary to supply that information.
\r
357 - Applied patch by Andrew Peters fixing MR-182
\r
358 "Adds FormTo and LinkToWithPost methods to HtmlHelper"
\r
361 "Url Tokenizer Bug at Turkish Culture Info"
\r
363 - Properly quote file/directory arguments in Pre/Post Build Events to accomodate
\r
365 Also added some missing files to TestSiteWindsor-vs2005 Project
\r
367 - Removed DetermineIfPostBack due to side effects when using a custom upload approach
\r
368 Also removed PreRequestHandler setting the session as it wasn't really necessary using
\r
369 this event for that. Moved to the handler.
\r
371 - Included abstract Filter class, just as a helper to implement filters
\r
372 with a better interface (instead of IFilter.Process)
\r
374 - Fixed MR-165 "DataBind doesn't bind NullableDateTime"
\r
377 "Scarfold record modification results exception Can't edit without
\r
378 the proper id when validation is failed in the defined validation rule"
\r
381 "ValidateEmail attribute does not work properly in Monorail Scarfold"
\r
383 - Introduced CacheAttribute which can be used on actions to configure
\r
384 the underlying HttpCachePolicy
\r
386 - Modified WizardActionProvider to use ControllerLifecycleExecutor
\r
388 - Modified EngineContextModule a MonoRailHttpHandler to use ControllerLifecycleExecutor
\r
390 - Refactored controller. Extracted process to ControllerLifecycleExecutor
\r
392 - Changed ExecuteEnum.Always to include 'StartRequest'
\r
394 - Added Filter step: StartRequest
\r
396 This step runs on the ResolveRequestCache, and is suitable
\r
397 for authentication. However, a session will not be available.
\r
400 "IRequest/Controller must expose the Http method"
\r
402 Added the following properties to the Controller class:
\r
403 IsPost/IsGet/IsPut/IsHead
\r
405 - Fixed problem with view components reported by Ernst Naezer. The problem
\r
406 is that the view component were cached, and instances shared during
\r
407 template executions.
\r
409 - Introduced smtpPort, smtpUsername, smtpPassword configuration to <monorail> node
\r
411 - Introduced a PageSize property on the IPaginatedPage.
\r
414 Release Candidate 2
\r
415 ===================
\r
417 - Applied patch by Ivan Porto Carrero fixing MR-158
\r
418 "Validation throws errors when using group box."
\r
420 Quoting description:
\r
422 "When validating with the option of using a group box then the valdation routine throws an error.
\r
423 The error is only thrown after the valdation failed for a couple of controls in the form. And when those errors are corrected and the form gets validated again that's when the error occurs
\r
425 "I also added functionality to have a header in the group error box. I also added the possibility to have a separate error label to append to.
\r
426 For this I added 2 properties to the config of the validation library.
\r
427 The first property is boxErrorHeadingClass and the second one is errorSelectorCssClass
\r
429 "In the core script I added 5 lines or so to add this functionality. "
\r
431 - Applied patch by Nick Hemsley fixing MR-157
\r
432 "add fromNameValueCollection method for creating IDictionary instances from (i.e.) Context.Params, or Request.QueryString"
\r
434 Method was renamed to FromNameValueCollection
\r
436 - Introduced ARPagination.CreatePagination<T>(SimpleQuery<T>). Looks like it can be
\r
437 extended later for the non-generic SimpleQuery.
\r
439 - Made all Helpers that install javascript code use the same signature Helper.InstallScripts(). Should we mandate an interface?
\r
441 - Fixed the GenerateJSProxy(string proxyName, string controller), which was passing a null areaName;
\r
443 - Fixed the conflict between the Array.reduce function of Prototype e fValidate scripts (MR-166).
\r
446 Release Candidate 1
\r
447 ===================
\r
449 - ARDataBinder was ovewriting ids on belongs to relations causing
\r
450 NHibernate to throw exception. Fixed and added test cases
\r
452 - Fixed binder problem (MR-161)
\r
454 - Fixed Perfomance issue with Brail and sub views due to cache key normalization issues.
\r
456 - Added logging to Brail, configured using the normal Castle's cofniguration mechansim
\r
458 - Added support to passing parameters from the view to the layout, enabling a captureFor component in the view to be used in the layout
\r
460 - Started refactoring ARScaffold to rely on FormHelper
\r
462 - Small refactor on ARScaffold support to make it work with
\r
464 . The new Binder implementation
\r
466 - Changed MonoRailContainer to save the configuration. On mono
\r
467 a copy is created everytime the config is requested, leading a big problems
\r
470 "Cast exception with configuration"
\r
472 - Added two more events to ExtensionManager: Authorize and Authenticate.
\r
473 That allows authentication/authorization extensions to MonoRail that won't
\r
476 - Applied Jochen Grefe's patch fixing NVelocity-3
\r
477 "#include not working for nvelocity"
\r
479 - Another attempt to MR-152 "Error while initializing MonoRail services"
\r
481 Separated container implementation from module. But it's important that
\r
482 the module subscribe the events, so the container can delegate event invocations
\r
483 to the extension manager
\r
485 - Fixed MR-152 "Error while initializing MonoRail services"
\r
487 - Applied midas's patch fixing MR-113
\r
488 "change collected view name in assembly to lower"
\r
490 - Applied Don Morrison's patch fixing MR-150
\r
491 "Patch to fix problem with ARDataBinder and ARFetcher when dealing with joined subclasses."
\r
493 - Added support for null property handling in Brail.
\r
494 ${objMayBeNull.Name} -- will throw if null
\r
495 ${ IgnoreNull(objMayBeNull).Name } -- will return empty string when null
\r
497 -- Breaking change in Brail. Removed <? ?> as markers for code blocks. This was done to allow handling of xml processing instructions (<?xml ?> for instnace).
\r
498 Use <?brail ?> markers instead.
\r
500 - Applied Marc-André's patch fixing MR-149
\r
501 "[TestSupport] Verb not specified for Get request"
\r
503 - Applied Ernst Naezer's patch that fixes MR-95
\r
504 "Update ProtoType/Scriptaculous js libraries to latest version"
\r
506 Prototype library updated to version 1.5.0_rc1
\r
507 script.aculo.us updated to 1.6.4
\r
509 - Added watir tests for JS proxies (fixes MR-142 "Write test cases for AjaxHelper.GenerateJSProxy()")
\r
511 - Added watir tests for Ajax support
\r
513 - Changed Ajax helper to default to parameters:'value=' + value instead of parameters:value.
\r
514 This old way was causing null keys on the form dictionary and thus being ignored by
\r
518 "Apply Sean's suggestions"
\r
520 Component 'ChildContentComponent' introduced, plus a few test cases for it.
\r
523 "Seems Wizard Controller can't define Area"
\r
526 "Introduce the notion of conditions to WizardStepPage"
\r
528 Introduced IsPreConditionSatisfied to WizardStepPage
\r
531 "Add log support as discussed on the mailing list"
\r
533 - Added Logger property to Controller
\r
535 - Added more logging information to the request lifecycle
\r
537 - Logging support: Important services are now logging what they are doing.
\r
538 Verbose logging happens at Debug Level. Error level is used for exceptions
\r
540 - Refactored: The EngineContextModule was simplified. Now its duty is to
\r
541 instantiate the services and invoke the lifecycle methods. Each service uses
\r
542 its lifecycle methods to reference other services and obtain its configuration
\r
544 - Refactored: replaceable services were moved to Services namespace
\r
546 - Refactored: interfaces meant to be public were moved from Internal
\r
547 namespace to the root
\r
550 "PaginationHelper must support IList<T>"
\r
553 "FormHelper must be able to handle IList<T>"
\r
556 "Change node/section name from monoRail to monorail on configuration file"
\r
558 Now on the configuration, use <monorail> instead of <monoRail>
\r
560 - Included Test site for ActiveRecord support project, watir tests included
\r
562 - Refactored ARDataBinder to support HasMany and HasAndBelongsToMany
\r
564 - Applied Ernst Naezer <enix@ch10.shuis.tudelft.nl>'s patch fixing build
\r
566 - Introduced [AjaxAction] attribute. Any action marked with this attribute
\r
567 can be accessed on client-side scripting using a JavaScript proxy, like
\r
570 $ajaxHelper.getJavascriptFunctions()
\r
571 ## MANDATORY, must come before any call to generateJSProxy
\r
573 $ajaxHelper.generateJSProxy('thisController')
\r
574 ## will declare an object named "thisController", allowing access
\r
575 ## to all [AjaxAction]s on the current controller
\r
577 $ajaxHelper.generateJSProxy('util', 'lists', 'myLists')
\r
578 ## will declare an object named "myLists", allowing access
\r
579 ## to all [AjaxAction]s on the controller named 'lists', in the 'util' area
\r
581 Note that proxies can perform synchronous (blocking) or asynchronous (non-blocking) calls.
\r
582 For asynchronous calls, you must always supply a JavaScript function as an additional
\r
583 last parameter. When that parameter is absent, the proxy will perform a synchronous call.
\r
585 [AjaxAction] public void Sum(int num1, int num2) { RenderText(Convert.ToString(num1 + num2)); }
\r
589 // synchronous call
\r
590 $('result').value = myLists.sum($('num1').value, $('num2').value);
\r
594 // asynchronous call
\r
595 myLists.sum($('num1').value, $('num2').value, function(t) { $('result').value = t.responseText; });
\r
599 $('num1').value = the value of an input with id=num1
\r
600 $('num2').value = the value of an input with id=num2
\r
601 function(t) { ... } = the callback
\r
602 t.responseText = any text that the action could have rendered
\r
604 - Applied Marc-André's patch fixing MR-140
\r
605 "ARDataBindAttribute doesn't use the controller's DataBinder"
\r
607 - Updated AbstractServiceContainer to support adding/removing services.
\r
609 - MonoRails services now accept and IServiceContainer instead of an
\r
610 IServiceProvider to be able to add services if desired.
\r
612 - Small refactor of Controller to to accomodate passing action arguments.
\r
614 - Updated SmartDispatchController to utilize HttpRequest parameters when
\r
615 additional arguments are supplied via a Send.
\r
617 - Applied patch by Freyr Magnússon <freyr.magnusson@gmail.com> fixing MR-139
\r
618 "ExceptionChainingExtension doesn´t handle unhandled exceptions"
\r
620 Which also introduces a new feature:
\r
622 Controllers can request IExceptionProcessor through IServiceProvider
\r
623 and invoke the handlers to process an exception. For example:
\r
625 public void BuyMercedes()
\r
631 catch(Exception ex)
\r
633 IExceptionProcessor exProcessor = (IExceptionProcessor) ServiceProvider.GetService(typeof(IExceptionProcessor));
\r
634 exProcessor.ProcessException(ex);
\r
636 RenderView("CouldNotBuyMercedes");
\r
640 - Changed DataBinder behavior to return empty arrays, instead of null arrays,
\r
641 when the IBindingDataSourceNode is null
\r
643 - Applied patch by Bryan Brown fixing MR-138
\r
644 "patch to fix formhelper.LabelFor to use IDictionary"
\r
646 - Applied Freyr Magnússon's patch fixing MR-137
\r
647 "Databinding through DataBindAttribute does not register errors with SmartDispatcherController"
\r
649 - Applied peter dol's patch fixing MR-136
\r
650 "An overload for ButtonToRemote that accepts htmloptions"
\r
652 - WizardStepPage: added more redirect overloads to allow parameters to be
\r
655 - AR Support: Added support to deal with ICollection<T> containers
\r
657 - Applied Marc-Andre's patch fixing MR-133
\r
658 "TestSupport not working under Mono"
\r
660 - Removed PropertyBag.Clear() in Controller.cs to restore the ability to
\r
661 update the PropertyBag in filters.
\r
663 - Applied Colin Ramsay <castleproject-devel@happyandlost.co.uk> patch making
\r
664 the _selectedViewName field accessible through a public property.
\r
666 - Checked in changes to better support ASP.NET Views
\r
668 - Refactor FormHelper to use a common code to CheckboxList and Select.
\r
669 Added support mentioned in MR-130
\r
671 - Introduced CreateCheckboxList. See preliminary documentation at
\r
672 http://www.castleproject.org/index.php/MonoRail:FormHelper#CheckboxList
\r
674 - Applied Colin Ramsay <castleproject-devel@happyandlost.co.uk> patch adding more
\r
675 asserts to TestSupport.AbstractMRTestCase and refactored some other things
\r
677 - MR-125 testsupport doesn't handle posting to smart dispatcher controller
\r
678 Fixed by Andrei Shires <andrei@internetware.co.uk>
\r
680 - FormHelper: Now it can fill parameters with the values from the Request.Params
\r
682 - FormHelper: fixed Checkbox behavior with databinder by adding a hidden
\r
683 field with the same name but carrying the 'false' value. The false value
\r
684 can be overriden with a key 'falseValue' if you're working with a non-boolean
\r
688 FormHelper.CheckboxField("some.property")
\r
692 <input type="checkbox" id="some_property" name="some.property" value="true" />
\r
693 <input type="hidden" id="some_propertyH" name="some.property" value="false" />
\r
696 FormHelper.CheckboxField("acceptDisclaimer", %{trueValue = 'accept', hiddenValue = 'reject'})
\r
700 <input type="checkbox" id="acceptDisclaimer" name="acceptDisclaimer" value="accept" />
\r
701 <input type="hidden" id="acceptDisclaimerH" name="acceptDisclaimer" value="reject" />
\r
704 - Applied Ernst Naezer's patch to allow MR to throw a descriptive
\r
705 exception message when two helpers are registered using the same key
\r
707 - Added a hack to the WebFormsViewEngine to accomodate different behavior
\r
708 with respect to invoking PageParser.GetCompiledInstance on ASP.NET 2.0
\r
710 - Added support for defaultValue attribute to FormHelper, which specificy
\r
711 what the value should be if the target evaluates to null.
\r
713 - Added indexed properties support to FormHelper
\r
715 When the target is an array you can
\r
717 PropertyBag.Add("roles", Roles.FindAll());
\r
719 FormHelper.TextField("roles[0].Id")
\r
723 <input type="text" id="roles_0_Id" name="roles[0].Id" value="1" />
\r
725 The indexed property can be nested
\r
727 PropertyBag.Add("user", User.Find(1));
\r
729 FormHelper.TextField("user.roles[0].Id")
\r
731 <input type="text" id="user_roles_0_Id" name="user.roles[0].Id" value="1" />
\r
733 - Added RadioField(String target, object valueToSend, [IDictionary attributes]) to FormHelper
\r
735 The radio will be marked with checked="checked" if the value collected
\r
736 from the target matches the valueToSend parameter
\r
738 - Fixed RedirectToAction on WizardStepPage. Now it produces a correct action url.
\r
740 - Changed WizardStepPage.InternalRedirectToStep to simply RedirectToStep
\r
742 - Changed SmartDispatcherController.BuildMethodArguments. Now it tests if the conversion
\r
743 succeeded before setting the value on the array.
\r
745 - Introduced IWizardPageFactory on WindsorExtension, so a Wizard controller doesn't
\r
746 need to reference the IKernel directly
\r
748 - Some optimization on Redirect* methods on Controller class. Now they accept
\r
749 an IDictionary as a parameter specifier (in addition to NameValueCollection).
\r
751 - Refactored ControllerDescriptorBuilder (renamed to ControllerDescriptorProvider)
\r
752 to use child providers to obtain descriptor. Attributes are now descriptors builders
\r
753 and that allows one to come up with custom attributes like
\r
755 public class MyAttribute : Attribute, ILayoutDescriptorBuilder, IHelperDescriptorBuilder
\r
757 public LayoutDescriptor BuildLayoutDescriptor()
\r
759 return new LayoutDescriptor("mylayout");
\r
762 public HelperDescriptor[] BuildHelperDescriptors()
\r
764 return new HelperDescriptor[] { new HelperDescriptor(typeof(MyHelper)) };
\r
768 Kudos to Fabio by coming up with the idea.
\r
770 - ViewComponents: added subsection support
\r
772 (Using nvelocity as example)
\r
774 #blockcomponent(GridComponent)
\r
780 Showing record $startrecord to $total
\r
784 <td>$item.Name</td>
\r
788 <td>No records found</td>
\r
792 On the code you can use
\r
794 public override bool SupportsSection(String name)
\r
796 return name == "header" || name == "item" || name == "footer" ||
\r
800 public override void Render()
\r
802 ICollection source = (ICollection) ComponentParams["source"];
\r
806 Context.RenderSection("header");
\r
808 if (source != null && source.Count != 0)
\r
810 foreach(object item in source)
\r
812 PropertyBag["item"] = item;
\r
814 RenderText("<tr>");
\r
816 Context.RenderSection("item");
\r
818 RenderText("</tr>");
\r
823 RenderText("<tr>");
\r
824 Context.RenderSection("empty");
\r
825 RenderText("</tr>");
\r
828 Context.RenderSection("footer");
\r
833 - ViewComponent on NVelocity: added to support to interpolation on component parameters.
\r
839 PropertyBag.Add("customers", Customer.FindAll());
\r
844 #blockcomponent(GridComponent with "source=$customers")
\r
848 ViewComponent code:
\r
850 public override void Render()
\r
852 IList items = (IList) ComponentParams["source"];
\r
854 foreach(object item in items)
\r
856 Context.ContextVars["item"] = item;
\r
857 // Do something like rendering the body
\r
861 - Configuration changed:
\r
863 . Added <cacheprovider> node
\r
864 . Added <additionalSources> node under <viewEngine>
\r
869 <cacheProvider type="my custom implementation"/>
\r
871 <viewEngine viewPathRoot="views" customEngine="Castle.MonoRail.Framework.Views.NVelocity.NVelocityViewEngine, Castle.MonoRail.Framework.Views.NVelocity">
\r
872 <additionalSources>
\r
873 <assembly name="MyAssembly" namespace="My.Assembly" />
\r
874 </additionalSources>
\r
878 - IViewEngine refactored to use the IViewSourceLoader to locate views
\r
880 - Introduced IViewSourceLoader and IViewSource. The former represents an approach to load
\r
881 views. The default implementation is FileAssemblyViewSourceLoader which first look ups
\r
882 the file system then the configured assemblies for the specified view
\r
884 - ICacheProvider service introduced (available on IServiceProvider implementation).
\r
885 Two implementations available:
\r
887 . DefaultCacheProvider which uses the HttpContext.Cache
\r
888 . WeakReferenceCacheProvider which uses a hashtable with WeakReferences as entries
\r
890 - Warning about Nullables and SmartDispatcher arguments. The behavior has changed a
\r
893 . In the past, if the value for a nullable was not present, that was accepted and
\r
894 the nullable was initialized with HasData=false
\r
895 . Now the value mustn't be present, but the entry must be present
\r
901 public void Transfer(NullableDouble amount)
\r
906 If you invoke it with Controller/Transfer.rails you'll get an exception
\r
908 If you invoke it with Controller/Transfer.rails?amount= then it's ok
\r
910 If you invoke it with Controller/Transfer.rails?amount=10 is obviously ok too.
\r
912 - Removed Obsolete members of ExecuteEnum. If you were using
\r
914 . ExecuteEnum.Before, change to ExecuteEnum.BeforeAction
\r
915 . ExecuteEnum.After, change to ExecuteEnum.AfterAction or ExecuteEnum.AfterRendering
\r
916 . ExecuteEnum.Around, change to ExecuteEnum.Always or combine the flags
\r
918 - Refactored DefaultRailsEngineContext and EngineContextModule. Now EngineContextModule
\r
919 is also a ServiceContainer. When a DefaultRailsEngineContext is created we pass
\r
920 the EngineContextModule as a parent container.
\r
922 This saves us some cycles of registering
\r
923 the services on every single DefaultRailsEngineContext instance.
\r
925 - Added attribute 'checkClientIsConnected' to monoRail configuration check. If
\r
926 'true' the controller class will always check IsClientConnected on
\r
928 - InternalSend (beginning)
\r
929 - Before Staring filter process
\r
930 - Before invoking the view engine
\r
932 The default value is 'false'
\r
936 - Removed AutoLoadUnlessKeyIs and NullIfKeyIs from ARDataBinder. Added enum
\r
937 AutoLoadBehavior to replace them:
\r
939 AutoLoadBehavior.Never (default): Means that no autoload should be perform on the target
\r
940 type nor on nested types.
\r
942 AutoLoadBehavior.Always: Means that autoload should be used for the target type
\r
943 and the nested types (if present). This demands that the primary key be present on the http request
\r
945 AutoLoadBehavior.NewInstanceIfInvalidKey: Means that we should autoload, but if the key is
\r
946 invalid, like null, 0 or an empty string, then just create a new instance of the target type.
\r
948 AutoLoadBehavior.NullIfInvalidKey: Means that we should autoload, but if the key is
\r
949 invalid, like null, 0 or an empty string, then just return null
\r
951 - Added support for AccessibleThrough(Verb.Post, or Verb.Get) to restrict the type of access a controller action requires.
\r
953 - Added suport for InPlaceRenderView for Brail
\r
955 - Added <? ?> tags for Brail, to match the php style.
\r
957 - Added RemoveCookie() method to IResponse
\r
959 - Fixed a bug in Brail's ViewComponents, where a parameter was search using case sensitive search.
\r
961 - Fixed a bug in ARFetch, where if the parameter was an array and the parameters didn't appear, a null reference would be thrown. Now it's returning an empty array.
\r
963 - Updated boo binaries, should fix the problems with the build on machines with only one framework installed.
\r
965 - Fixed a bug in Brail where a new line was required before a method call was recognized
\r
967 - Added support for optional parameters in Brail, using the syntax ?foo will return null if the value was not set (instead of throwing.)
\r
969 - Fixed a bug where Brail would throw on Empty Views.
\r
971 - Added support for AutoLoadUnlessKeyIs in ARDataBinder - will load the object unless the key is a specific value
\r
972 Usages: public void Save([ARDataBinder(AutoLoadUnlessKeyIs=0)] User user)
\r
974 - Added checks for null id when doing data binding.
\r
976 - Removed useless error handling from Brail, now you'll get the normal ASP.Net Yellow Screen Of Death on errors. More consistent with the rest of the framework.
\r
978 - Added support for <?brail ?> tags for Brail, so it can be valid XML documents
\r
980 - Added logging for Brail, so you can see the Boo code the preprocessor is generating.
\r
982 - Added more verbose output to compiler errors in Brail.
\r
984 - Changed the way Brail name the generated class, now the chances for name clashes are much lower. (View: Users.boo and a parameter Users will not cause problems).
\r
986 - Fixed a bug with Brail not picking up changes that occured by VS.Net
\r
988 - Fixed bug with NVelocity components that caused an InvalidCastException to be thrown by the Render method if there was something other than an IRailsEngineContext occupying the "context" key.
\r
990 - MonoRail is now CLSCompliant (kudos to Roelof Blom <roelof.blom@gmail.com>)
\r
992 - Breaking change: now MonoRail requires that you add the following module to web.config:
\r
996 <add name="monorail" type="Castle.MonoRail.Framework.EngineContextModule, Castle.MonoRail.Framework" />
\r
1000 - Configuration nodes and attributes changes:
\r
1001 - mailto to mailTo
\r
1002 - mailfrom to mailFrom
\r
1003 - customsession to customSession
\r
1005 - SmartViewComponent removed
\r
1007 - DataBinder refactored out. Now implementation lies on Castle.Components.Binder
\r
1008 + Big performance improvement
\r
1010 - ARDataBinder now issues a FindByPK for nested objects if the keys differs (existing object with
\r
1013 - SmartDispatcherController: now there's no hardcode reference to DataBind, ARDataBind or ARFetch attributes.
\r
1014 They only must implement the interface IParameterBinding. This opens an interesting extension point
\r
1015 for users willing to create their own logic to binding form/querystring parameters to their data components
\r
1017 - Controller: Added RedirectToAction(String action, params String[] queryStringParameters)
\r
1018 example: RedirectToAction("edit", "id=" + id, "error=couldn't update the row");
\r
1020 - Added FlashBinderAttribute (being evaluated)
\r
1022 - Added FormHelper (being evaluated)
\r
1024 - Added CaptureFor component
\r
1026 - Renamed ARPager splitted into ARPaginationHelper and ARPager
\r
1028 - ARDataBinder is now able to deal with HasAndBelongsToMany relations.
\r
1029 This works in two ways. Suppose you have a Product class with a relation HasAndBelongsToMany to Category.
\r
1031 If you send the following fields from a form:
\r
1033 product.categories.id=1
\r
1034 product.categories.id=2
\r
1036 ARDataBinder will ignore the AutoLoad property and always populate the Categories
\r
1037 collection on the product class with the result of FindByPrimaryKey of the categories.
\r
1038 Any other field will be ignored, for example product.categories.name will not be bound
\r
1040 However, if you send the values like
\r
1042 product.categories[0].id=1
\r
1043 product.categories[1].id=2
\r
1045 Then ARDataBinder will use the usual path, not ignoring the AutoLoad.
\r
1047 This behavior is being evaluated.
\r
1049 - Removed AbstractExtension
\r
1051 - Extension now uses events (See ExtensionManager)
\r
1053 - Interface IMonoRailExtension changed (has only Init method now)
\r
1055 - Refactored IParameterBinder in order to make it participate on calculations points.
\r
1057 - Introduced WindsorMonoRailSectionHandler which has the support for statements similar to those supported
\r
1058 by windsor's XmlInterpreter
\r
1060 - Added ARDataBindAttribute.NullWhenPrimaryKey which forces the databinder to
\r
1061 ignore and do not load a record if the retrieved PK has the value assigned to this
\r
1062 property (kudos to Roelof Blom <roelof.blom@gmail.com>)
\r
1069 - Fixed Flash (it now persists the new entries between requests) (by Ahmed)
\r
1071 - Added FilterAttribute.ExecutionOrder, the default value is Int32.MaxValue
\r
1072 so the less the value higher will be the filter priority
\r
1074 - Added Controller.RedirectToAction(String actionName)
\r
1076 - Added Controller.RedirectToAction overloads (by Fabio Batista)
\r
1078 - Controller.Redirect(String) is now virtual, and it's called by all Redirect* methods (by Fabio Batista)
\r
1080 - Moved action collection to ControllerMetaDescriptor class, using new method that does not require ScreenCommonPublicMethods.
\r
1082 - Moved ControllerDescriptorBuilder creation to ProcessEngineFactory to ensure ControllerDescriptors are only created once
\r
1084 - ITrace and Trace property added to IRailsEngineContext (kudos to Chad Humphries)
\r
1086 - Hierarchy of areas support (kudos to Fabio Batista)
\r
1088 - Support for [Layout] attribute on Actions, so actions can override
\r
1089 the Controller's specified layout (by Fabio Batista, rev 1459)
\r
1091 - PaginationHelper introduced: paginates objects that implements IList, and supports caching.
\r
1093 - ARPager introduced: allows you to specify a custom NHibernate HQL Query or an NHibernate Criteria
\r
1094 (using Expression.Eq, à là ActiveRecord's FindAll()) and fetch the results with pagination.
\r
1095 (by Fabio Batista)
\r
1097 - Added IServerUtility.JavaScriptEscape() (kudos to Chad Humphries)
\r
1099 - Added DataBindAttribute.Exclude - A comma separated list of property names
\r
1100 to exclude from databinding (kudos to Chad Humphries)
\r
1102 - Added IResponse.BinaryWrite() and CreateCookie( HttpCookie ) overload
\r
1104 - Added IServerUtility.MapPath()
\r
1106 - Added IRailsContext.ApplicationPhysicalPath
\r
1108 - Added to HtmlHelper:
\r
1113 - Form(action, attribtes) overload
\r
1115 - Added more fine-grained support for ExecuteEnum in Filters (by Fabio Batista, rev 1286-1287)
\r
1117 The values are now: BeforeAction, AfterAction, AfterRendering and Always.
\r
1119 - Support for nullable types in SmartDispatcherController, useful for
\r
1120 detecting missing ValueType parameters. Works with Nullables library, still
\r
1121 not working on .NET 2.0 Nullables (by Fabio Batista, rev 1297 and 1363)
\r
1126 public void CreateTicket(string name, NullableDateTime date, NullableInt32 priority)
\r
1128 if (name == null || name.Length == 0) throw new MissingFieldException();
\r
1129 if (!date.HasValue) throw new MissingFieldException();
\r
1130 if (!priority.HasValue) throw new MissingFieldException();
\r
1133 // .NET 2.0 (NOT WORKING YET)
\r
1134 public void CreateTicket(string name, DateTime? date, int? priority)
\r
1136 if (name == null || name.Length == 0) throw new MissingFieldException();
\r
1137 if (!date.HasValue) throw new MissingFieldException();
\r
1138 if (!priority.HasValue) throw new MissingFieldException();
\r
1141 - Broaded support for Enums. They can be specified by number or by text (by Fabio Batista, rev 1203)
\r
1143 public enum MyEnum {
\r
1148 <input type="hidden" name="myEnumValue" value="1" />
\r
1149 <input type="hidden" name="myOtherEnumValue" value="seCoNd" />
\r
1151 public void TestEnumValues(MyEnum myEnumValue, MyEnum myOtherEnumValue)
\r
1153 if (myEnumValue == MyEnum.First) // ok
\r
1154 if (myOtherEnumValue == MyEnum.Second) // ok
\r
1157 - Support for ActiveRecord fetching in Castle.MonoRail.ActiveRecordSupport
\r
1158 (by Fabio Batista, rev. 1380).
\r
1160 Mainly for those unconfortable with direct binding of form values
\r
1161 to ActiveRecord objects. This attribute only fetches the ActiveRecord based
\r
1162 on its Primary Key, nothing more.
\r
1166 public class MyCrudExample : ARSmartDispatchController
\r
1169 public void Save( [ARFetch] Example example, string name, ...)
\r
1171 example.Name = name;
\r
1177 // using a different request parameter, instead of the action's parameter name
\r
1178 public void Save( [ARFetch("primaryKey")] Example example, string name, ...)
\r
1180 example.Name = name;
\r
1186 // ignoring invalid primary keys
\r
1187 public void Save( [ARFetch(Require=false)] Example example, string name, ...)
\r
1189 example.Name = name;
\r
1195 // not creating new records automatically, when the parameter is empty or null
\r
1196 public void Save( [ARFetch(Create=false)] Example example, string name, ...)
\r
1198 if (example == null)
\r
1199 example = new Example(someRequiredConstructorParameter);
\r
1201 example.Name = name;
\r
1207 // fetching a list of Active Records
\r
1208 public void Delete( [ARFetch("selected")] Example[] examples )
\r
1210 foreach (Example example in examples)
\r
1215 - Support for smart arrays (aside from primitives) (kudos do Ahmed)
\r
1217 Quoting the explanation:
\r
1219 Suppose you have this class:
\r
1224 public string Name {get;set;}
\r
1226 public int Age {get;set;}
\r
1229 With the following view
\r
1231 <input name="Person[0].Name" value="John">
\r
1232 <input name="Person[0].Age" value="30">
\r
1233 <input name="Person[1].Name" value="Mary">
\r
1234 <input name="Person[1].Age" value="25">
\r
1236 Now you can specify the DataBinderAttribute to an array element in your controller:
\r
1238 public void SavePeople( [DataBinder(Prefix=”People”)] Person[] people )
\r
1240 // you should be able to access the people as an Person array
\r
1242 Assert.IsTrue( people[0].Name == “John” );
\r
1243 Assert.IsTrue( people[1].Name == “Mary” );
\r
1246 There are a couple extra things, first you can specify an “ignore” attribute to any element in which that case the data binder will completely ignore the element
\r
1248 <input name="Person[0].Name" value="John">
\r
1249 <input name="Person[0].Age" value="30">
\r
1250 <input name="Person[0]@ignore" value="yes">
\r
1251 <input name="Person[1].Name" value="Mary">
\r
1252 <input name="Person[1].Age" value="25">
\r
1254 In the previous html code, the people array in the controller will only have one element (Mary).
\r
1256 Notice that I reserved the @ sign as a special character to add metadata to any element, right now the only attributes supported are “ignore” and “count”.
\r
1258 The count attribute serves as a performance optimization when your elements are keyed using sequential integers, for example:
\r
1260 <input name="Person@count" value="5">
\r
1261 <input name="Person[0].Name" value="John">
\r
1262 <input name="Person[1].Name" value="James">
\r
1263 <input name="Person[2].Name" value="Jeff">
\r
1264 <input name="Person[3].Name" value="Geoff">
\r
1265 <input name="Person[4].Name" value="Jeffrey">
\r
1269 - AjaxHelper2 renamed to AjaxHelper. The old one was renamed to AjaxHelperOld
\r
1271 - Two more callbacks supported: onSuccess and onFailure. For example
\r
1273 $AjaxHelper.BuildFormRemoteTag( $DictHelper.CreateDict("url=something.rails", "OnSuccess=myjavascriptfunction();", "OnFailure=otherfunction(request)" ) );
\r
1275 Do not confuse it with 'success' and 'failure' keys, though. Those means the id of elements
\r
1276 to be updated in the event of success and failure.
\r
1279 ** NVelocity View Engine **
\r
1281 - Added support for global macros. Every *.vm file which is placed in the Views/macros directory
\r
1282 will be scanned for macros (by Fabio Batista, rev. 1374)
\r
1284 ** Brail View Engine **
\r
1286 - Upgraded to use Boo 0.75, should solve the problem that Brail had with breaking tests.
\r
1288 ** Scaffolding support **
\r
1290 - huge refactoring
\r
1291 - It's now using templates
\r
1294 ** Test support **
\r
1296 - Introduced Castle.MonoRail.TestSupport
\r
1301 MR-68 PreSendView is not being invoked by NVelocityViewEngine
\r
1302 http://support.castleproject.org/jira/browse/MR-68
\r
1303 MR-66 DataBinder and ConvertUtils should support TypeConverters
\r
1304 http://support.castleproject.org/jira/browse/MR-66
\r
1305 MR-64 DataBinder.Convert should support decimal
\r
1306 http://support.castleproject.org/jira/browse/MR-64
\r
1307 MR-58 AbstractHelper generates invalid XHTML
\r
1308 http://support.castleproject.org/jira/browse/MR-58
\r
1309 MR-57 Wrong urls are crashing UrlTokenizer
\r
1310 http://support.castleproject.org/jira/browse/MR-57
\r
1311 MR-52 Support for real Flash feature
\r
1312 http://support.castleproject.org/jira/browse/MR-52
\r
1313 MR-49 Remove public properties from the list of available actions (Controller.cs)
\r
1314 http://support.castleproject.org/jira/browse/MR-49
\r
1315 MR-30 MR should not accept incorrect urls
\r
1316 http://support.castleproject.org/jira/browse/MR-30
\r
1322 - Added useWindsorIntegration attribute to monoRail configuration section
\r
1328 - Initial Scaffolding support
\r
1330 - Localization support
\r
1331 - More helpers and improvements
\r
1337 - Few bug corrections
\r
1338 - Applied patch from Dru Sellers: NVelocityViewEngine adds a $siteRoot exposing the Request.ApplicationPath
\r