4 - Applied Dan Goldstein's patch fixing MR-346
\r
5 "FormHelper's disablevalidation parameter only works when in Push command and on field"
\r
7 Introduced IMonoRailContainerEvents and IMonoRailConfigurationEvents that might be implemented by the
\r
8 HttpApplication subclass
\r
11 "When applying a layout attribute over an Action, layout doesn't render for the rendered view."
\r
13 - Applied James Curran's patch fixing MR-391
\r
14 "ViewComponentDetailsAttribute use could lead to duplicate names."
\r
16 - Applied Mike Nichols' patch fixing MR-392
\r
17 "FormHelper.LiteralFor feature addition"
\r
19 - Applied Alwin's patch fixing MR-398
\r
20 "Could not save <model>. Ambiguous match found. (AmbiguousMatchException
\r
21 when using Scaffolding and ActiveRecordValidationBase<T>)"
\r
23 - Applied James Curran's patch fixing MR-419
\r
24 "Improving initializing Service Enabled Components"
\r
26 - Added FormHelper.TextFieldAutoComplete for combining AJAX AutoCompletion and FormHelper's round trip
\r
29 - Added possibility to create labels in CheckboxLists.
\r
31 - Applied James Curran's patch fixing MR-390
\r
32 "Adding AbstractHelper(IEngineContext) ctor"
\r
34 - Applied Gauthier Segay's patch fixing MR-388
\r
35 "There should be a way to preserve url query string arguments while using DiggStylePagination"
\r
37 - Applied Mike Nichols' patch adding two more events to the extension manager.
\r
39 - Applied Felix Gartsman's patch fixing MR-387
\r
40 "ViewComponent selective caching"
\r
42 - Applied Felix Gartsman's patch fixing MR-368
\r
43 "Added DetachedCriteria support to ARPaginationHelper/ARPaginableCriteria"
\r
45 - Applied Gauthier Segay's patch fixing MR-384
\r
46 "GenericCustomPage<T> should rely on IEnumerable<T> instead of IList<T> for it's datasource"
\r
48 - Applied James Curran's patch fixing MR-347
\r
49 "Cannot specify a default value for ViewComponentParameterAttribute"
\r
51 - Applied Adam Tybor's patch fixing MR-370
\r
52 "RouteContext and Http Method Filtering for PatternRule"
\r
54 - Applied Daniel Jin's patch fixing MR-372
\r
55 "add monorail configuration section to set the useExtensions option on DefaultUrlBuilder"
\r
58 "Nested classes are mapped wrongly to form fields"
\r
60 - Applied Kode Khan's patch changing logger creation to use type instead of controller's name
\r
62 - Implemented support for view component caching. Just use the attribute
\r
63 ViewComponentDetails and its properties (cache, cachekeygenerator)
\r
65 - Applied Michael Sanford's patch which adds image button support to FormHelper.
\r
67 - Applied Rafael Teixeira's patch fixing MR-357
\r
68 "ViewEngineBase.IsTemplateForJSGeneration(String templateName) returns
\r
69 true for a templateName with an incorrect extension"
\r
71 - Added support for Composite Key in Formhelper select
\r
73 - Applied Chris Ortman's patch with changes for the REST support (MR-333)
\r
75 - Applied Nick Hemsley's patch adding support for rescue controllers (MR-332)
\r
76 "add RescueController to RescueAttribute"
\r
78 - Applied suggestion by Daniel D to fix MR-329
\r
79 "Impossible to Context.Response.Redirect to any controller in empty Area from controller placed in some Area."
\r
81 - Applied minor patch by Ken Egozi fixing MR-328
\r
82 "In PrototypeWebValidation, SameAsValidator and NotSameAsValidator
\r
83 are forcing a locase id for text fields"
\r
85 - Applied minor patch by Nick Hemsley fixing MR-325
\r
86 "DictHelper.FromNameValueCollection: persist arrays correctly"
\r
88 - Added LocalExceptionFilterHandler
\r
90 - Applied Robert Ream's patch which allows [DefaultAction] to be applied to Actions. This means that no strings are required.
\r
92 - BaseControllerTest supports the ContextInitializer delegate, which makes it easier to modify the MockRailsEngineContext
\r
97 - Added IDisposable/Dispose back to the controller
\r
99 - Applied Lee Henson's patch adding generic overloads to ReflectionHelper
\r
101 - Added a few more RenderView overloads that take a mimeType to configure the Response.ContentType
\r
103 - If the controller cannot be found, MR searches for a special rescue "rescues/404" before throwing throwing an exception.
\r
105 - If an action could not be found, we go through normal path an use a general rescue if it can be found for the controller.
\r
107 - UrlHelper change: Now if the param encode wasn't set, UrlHelper assumes it's true.
\r
109 - Applied patch by Oleg Snurnikov fixing MR-319
\r
110 "MockResponse - basic implementation of Redirect, Write, BinaryWrite and Clear overloads"
\r
112 - Applied patch by Chirs Ortman fixing MR-296
\r
113 "Dont get validation summary when binding with AR attribute but controller inherits smart dispatcher controller"
\r
115 - Applied patch by Rafael Teixeira fixing MR-298
\r
116 "ColumnRenderer with an empty enumeration still renders table start and end sections"
\r
119 "DataBindAttribute in a ARSmartDispatcherController inherit the behavior from ARDataBinder"
\r
121 - Applied minor patch by James Su fixing MR-303
\r
122 "Behavior is not consistent between FormToAttributed and LinkToAttributed in HtmlHelper"
\r
124 - Applied goodwill's patch adding cookie support to BaseControllerTest MR-304
\r
126 - Applied goodwill's patch fixing MR-305
\r
127 "fValidate fix a bug on unassociated label for element"
\r
129 - Applied Oleg Snurnikov's patch fixing MR-306
\r
130 "PrototypeWebValidator - regular expression validation"
\r
133 "The '\' character in templates goes unescaped when processed via NJS"
\r
135 - The DefaultUrlBuilder now accepts a basePath parameter, which basically overrides the path information.
\r
138 "ARDataBind handles BelongsTo attribute in Nested component incorrectly."
\r
140 - FlashBinderAttribute was removed as I doesnt work with the new
\r
141 MonoRail design (changed to make the cache support work)
\r
143 - Applied Tim Haines' patch adding TextAreaValue to FormHelper
\r
146 "View components params problem"
\r
148 - Applied Markus Zywitza's patch adding a Fold method to TextHelper.
\r
149 His description "Shortens a text to the specified length (using full words only and
\r
150 adding an ellipsis at the end) and wraps it into a span-element that
\r
151 has the title-property with the full text associated. This is
\r
152 convenient for displaying properties in tables that might have very
\r
153 much content (desription fields etc.) without destroying the table's
\r
154 layout. Due to the title-property of the surrounding span-element, the
\r
155 full text is displayed in the browser while hovering over the
\r
158 - Applied Aaron Jensen's patch fixing MR-288
\r
159 "ApplicationPhysicalPath returns request path instead of / path"
\r
162 "MockServerUtility.MapPath throws NotImplementedException"
\r
164 - Applied Bill Pierce's patch fixing MR-278
\r
165 "Add UrlDecode to IServerUtility"
\r
167 - Applied Bryan Brown's patch fixing MR-273. This one adds a new attribute to
\r
168 the routing configuration node: 'excludeAppPath'
\r
169 "Automatically handle ApplicationPath in the routing module"
\r
171 - Applied goodwill's patch fixing MR-275
\r
172 "DefaultRailsEngineContext triggers RTE on ApplicationPhysicalPath
\r
173 when running under ASPX Dev Server with virtual directory"
\r
175 - Changed the BaseControllerTest vdir to "" instead "/"
\r
177 - Added the Declare(String variable) to IJSGenerator inteface
\r
179 - Applied Tim Haines' patch changing FormHelper to make calls to FormatIfNecessary
\r
181 - Applied chris ortman's patch fixing MR-271
\r
182 "AdditionalSources not loaded when using the viewEngines element"
\r
184 - Applied Ricardo Stuven's patch fixing MR-258
\r
185 "JSON serialization in Ajax calls"
\r
187 - Applied goodwill's patch fixing MR-212
\r
188 "Script Helpers (e.g. $Scriptaculous) installscript function clear flash unexpected"
\r
190 - Applied Georges Benatti's patch
\r
191 adding the attribute matchHostNameAndPath to the routing node on the configuration.
\r
193 If set to 'true', the regular expression is matched against the whole url. Defaults to 'false'
\r
195 - Added ability to customise Next/Prev links in DiggStylePagination.
\r
196 Patch from Markus Zywitza.
\r
198 - Applied Mathias Doenitz's patch fixing MR-265
\r
199 "(Re)enable initialization of Controller.AreaName, Controller.Name and Controller.Action before invoking Controller.Initialize()."
\r
201 - Applied Adam Tybor's patch fixing MR-266
\r
202 "Fix for GetErrorSummary() throwing an KeyNotFoundException for SmartDispatch Controller and Binder"
\r
205 "PropertyBag in WizardStep is null when access via key"
\r
207 - Applied Kyle Marshall's patch fixing MR-261
\r
208 "The default ValidatorRegistry is not overriddable in the monorail configuration"
\r
210 - Add support to BaseControllerTest (well MockRequest actually) for Mocking Url Referer. Patch from Colin Ramsay.
\r
212 - Fix SupportsSection implementation in ViewComponent (was comparing section name equality against StringComparer.InvariantCultureIgnoreCase).
\r
213 Also add a SupportsSection implementation to DiggStylePagination. Patches from Tim Haines.
\r
215 - Small change to DiggStylePagination to allow supplying querystring parameters in the url. Suggested by kalle.stenflo@gmail.com.
\r
217 - Applied Tim Haines' patch adding BindObject overloads that accept the AutoLoadBehavior enum,
\r
218 to the ARSmartDispatcherController
\r
220 - Changes from Lee Henson to add WizardStep support to TestSupport and provide a Generic BaseControllerTest.
\r
222 - Patch from Maruis Marais allowing BuildFormRemoteTag to gracefully degrade when JavaScript is disabled.
\r
224 - Patch from Lee Henson fixing regression introduced in 3783 in Prototype Validator. (Could not use hyphens in element id's).
\r
227 "When Windsor integration is enabled, the ControllerTree is empty"
\r
229 - Apply patches from Tim Haynes.
\r
230 "add a renderIfOnlyOnePage property to the DiggStylePagination View Component"
\r
231 "Add NewRootInstanceIfInvalidKey AutoloadBehaviour to Castle.MonoRail.ActiveRecordSupport"
\r
233 - Applied Goodwill's patch adding PersisteFlashFilter and the fValidate's localization support. Fixed MR-246.
\r
235 - Fixed the use of Scaffolding without Layouts (MR-251).
\r
237 - Added support for eager fetching of lazy collections, in [ARFetch] attribute.
\r
239 - Added support for auto load bevahior configuration when invokling the BindObject in the ARSmartDispatcherController
\r
241 - Added support for different access and naming strategies in the ARDatabind attribute.
\r
243 - Applied Matt Berther's patch adding LoggingExceptionHandler and FilteredExceptionHandler.
\r
245 - Applied chris ortman's patch fixing MR-242
\r
246 "FormHelper.LabelFor does not generate valid HTML when attributes are supplied"
\r
248 - Applied bonskijr's patch fixing MR-234
\r
249 "Under some circunstances ColumnRenderer generates invalid html"
\r
251 - Applied Marc-André's patch fixing MR-238
\r
252 "HtmlHelper.LinkTo: bugs- don't function when existing a area"
\r
254 - Applied Aaron Jensen's patch fixing the Resource Manager usage
\r
255 Changed from ResourceSet to ResourceManager
\r
257 - Applied Lee Henson's patch adding the 'onCreateAdvice'
\r
258 to PrototypeWebValidator
\r
260 - Applied Chris Ortman's patch fixing MR-235
\r
261 "Allow overriding of select generation in FormHelper"
\r
263 - Added Item(string id) overload to Checkboxlist
\r
264 Used to generate a checkbox with the specified id. Useful to label for='id' constructions
\r
266 - Added the Expect property to the ARDataBindAttr. Now it will clear the collections
\r
267 that are declared as expected, if not can be found on the resquest params. (MR-163)
\r
269 - Applied Colin Ramsay's patch fixing MR-232
\r
270 "HtmlHelper.InputButton should create <button> not <input type="button">"
\r
273 "incorrect component configuration results in an 'The container seems to be unavailable
\r
274 in your HttpApplication subclass' exception"
\r
276 - Applied Bart Reyserhove's patch fixing MR-226
\r
277 "ARDataBinder has problems when using generic collections"
\r
279 - Applied Jacob Lewallen's patch adding a new attribute (ViewComponentAttribute) used
\r
280 to name view components. The behavior is changed to strip the 'Component' suffix from the class name as well.
\r
282 - Applied Ernst Naezer's patch fixing MR-191
\r
283 "Add TransformFilter support to MR"
\r
285 - Applied Lee Henson's patch fixing MR-222
\r
286 "Use of IRailsEngineContext.Items"
\r
289 "ARDataBindAttribute does not set the Controllers validator on it's DataBinder"
\r
292 "FormHelper.Select with an interface datasource throws an Object mismatch exception."
\r
294 - Applied chris ortman's patch fixing MR-188
\r
295 "Allow the #component directive to support variables for the component name"
\r
298 "Using a lazy loaded nested object, "Ambiguous match found" exception occures when
\r
299 trying to use FormHelper to render control for the nested objects property."
\r
301 - Applied goodwill's patch fixing MR-213
\r
302 "DiggStylePagination has a typo which prevents the code from build"
\r
304 - Applied Edward Kreis' patch fixing MR-214
\r
305 "ARDataBinding and joined subclasses with derived BelongsTo, HasMany, HasAndBelongsToMany proeprties"
\r
308 "fValidate box message contains <BR/> if being triggered twice"
\r
311 "HtmlHelper.LinkToAttributed bug"
\r
313 - Applied Jacob Lewallen's patch adding an optional attribute to define a view component's name
\r
314 The patch also introduces a IViewComponentTree.
\r
316 - Added 'noaction' parameter to FormHelper.FormTag to prevent action attribute generation
\r
318 - Added Select list from Enum.
\r
321 PropertyBag.Add("colors",Enum.GetValues(typeof(ColorEnum)));
\r
324 $Form.Select("Color", $colors)
\r
326 - Applied Chris Ortman's patch adding MooHelper/JS generation based on it.
\r
328 - Applied Jacob Lewallen's patch adding virtuals to some FormHelper methods
\r
330 - Applied Patrick McEvoy's patch with a new approach to delete cookies
\r
334 SmartDispatcherController.ValidationSummaryPerInstance : IDictionary
\r
335 SmartDispatcherController.GetErrorSummary(object instance) : ErrorSummary
\r
336 SmartDispatcherController.HasValidationError(object instance) : bool
\r
338 Those can be used if DataBinder is configured to validate
\r
340 - Added Controller.RedirectToReferer
\r
342 - Configuration changed, added defaultUrls section (see monorail_configuration_ref.txt)
\r
344 - Added Controller.RenderMailMessage(string templateName, bool doNotApplyLayout) overload
\r
346 - Added static accessor support to NVelocity view engine. Default helpers are
\r
347 the Common System Types in dotnet (i.e. Double, String, Decimal, etc.)
\r
349 In your template: $String.Concat("foo","bar","me","please:",$Double.Epsilon)
\r
352 - Added better ControllerBinder support for indexed property expressions.
\r
353 This allows you to pass DataKeys as your action arguments
\r
355 - Applied Freyr Magnússon's patch fixing MR-206
\r
356 "ARBadaBinder does not resolve primary key for discriminator subclass from parent"
\r
358 - Retrieve target properties on demand for ControllerBinders ActionArgument editor
\r
360 - Added ControllerBinder Extender Control for WebForm views to eliminate the
\r
361 need to add event handlers in the codebehind that call Controller.Send
\r
363 - Brail now has Ruby's like symbols, using @symbol.
\r
364 For instance, component DiggStylePagination, ${ @useInlineStyle : true }
\r
366 - Brail can now accept " inside a ${ }, which used to break the parser previously.
\r
368 - Added IViewComponentContext.RenderView(name, textwriter)
\r
371 "DiggStylePagination.Initialize() doesn't check useInlineStyle parameter"
\r
373 - Added FormHelper.HiddenField("key", value) overload
\r
375 - Added 'valueformat' to SetOperations (affects FormHelper.Select, Checkboxlist)
\r
378 "Exception thrown by AccessibleThrough are not caught by rescues"
\r
380 - Added 'textformat' support to the all FormHelper operations (that create input elements).
\r
382 - Added BrailJS Support, allowing to generate javascript via brail scripts.
\r
383 Note; BrailJS scripts do not need <?brail ?> and any output statements there will be ignored.
\r
384 They are used strictly to create the generator.
\r
386 - Changed Brail extention from Boo to Brail / BrailJS
\r
388 - Added mask support to FormHelper field elements
\r
390 - Added FormHelper.PasswordNumberField
\r
392 - Refactored FormHelper to support other approaches to extract values from instance.
\r
393 Now it supports DataRows, DataRowViews and reflection
\r
395 - Added ColumnRenderer view component
\r
397 - Added DiggStylePagination ViewComponent, based on Alex Henderson work.
\r
398 See http://blog.bittercoder.com/PermaLink,guid,579711a8-0b16-481b-b52b-ebdfa1a7e225.aspx
\r
400 - Added PaginationHelper.CreateCustomPage
\r
402 This is only useful if the application code takes care of slicing (select top and etc)
\r
404 - Added formatting support to SetOperations (affects FormHelper.Select, Checkboxlist)
\r
408 $Form.Select("price", [1..100], "%{textformat='C'}")
\r
410 This will render a select with options like
\r
412 <option value="1">$1.00</option>
\r
413 <option value="2">$2.00</option>
\r
414 <option value="3">$3.00</option>
\r
417 - Added ScriptaculousHelper, deprecated Effects2Helper
\r
419 - Extract Behaviour related operations from AjaxHelper into BehaviourHelper
\r
421 - Added BehaviourHelper
\r
423 - Added UpdatePage and UpdatePageTag ViewComponents. Both allow you to have a "page"
\r
424 which is a JS generator. It evaluates the view component body to generate the JS.
\r
428 #blockcomponent(UpdatePageTag)
\r
429 $page.el('products').style.bgcolor.set('"white"')
\r
433 #blockcomponent(UpdatePage)
\r
434 $page.el('products').style.bgcolor.set('"white"')
\r
437 - Added FormHelper.NumberField() which renders a 'input text' with a javascript that
\r
438 prevents chars other than numbers (and period) from being entered.
\r
440 You can optionally pass an <c>exceptions</c> value through the dictionary.
\r
441 It must be a comma separated list of chars that can be accepted on the field.
\r
443 - Added FormHelper scripts:
\r
445 View must use FormHelper.InstallScripts()
\r
447 - Refactored generation of script blocks
\r
449 - Created stub for UrlForHelper
\r
451 - Helpers are added with a less verbose name
\r
452 FormHelper and Form, AjaxHelper and Ajax are made available to the view
\r
454 - Added AuthenticatedContent ViewComponent that allows context to be
\r
455 render based on the user state (authenticated or anonymous)
\r
457 - Removed CompositeViewEngine as it's useless now that we support multiple view engines
\r
459 - Multiple view engine support:
\r
460 Configuration schema changed, see monorail_configuration_ref.txt for more information
\r
462 - Introduced IViewEngineManager that sits between the controller and the view engines
\r
463 deciding which view engine will be used output the contents
\r
465 - Applied patch by Luke Melia for MR-192:
\r
468 - Introduced IPaginatedPage.HasPage(), useful for Google-like pagination.
\r
470 - PaginationHelper.CreatePagination<T>() now accepts ICollection<T> as a parameter.
\r
472 - New method PaginationHelper.CreatePageLinkWithCurrentQueryString().
\r
473 Creates a page link, copying the current QueryString parameters as well.
\r
475 - Enhanced AbstractHelper.BuildQueryString to support multi-value query strings:
\r
476 IDictionary dict = new Hashtable();
\r
478 dict.Add("selectedItem", new int[] { 2, 4, 99 });
\r
479 string queryString = BuildQueryString(dict);
\r
480 // should result in: "id=5&selectedItem=2&selectedItem=4&selectedItem=99&"
\r
482 - FormHelper.Select() - applied patch from James Sapara allowing firstoptionvalue to be set to
\r
483 something other than null.
\r
485 - Restored property IsPostback checking (For use with WebFormViewEngine).
\r
487 - Restored support for passing additional arguments to a controller
\r
488 via Send and use a dictionary to supply that information.
\r
490 - Applied patch by Andrew Peters fixing MR-182
\r
491 "Adds FormTo and LinkToWithPost methods to HtmlHelper"
\r
494 "Url Tokenizer Bug at Turkish Culture Info"
\r
496 - Properly quote file/directory arguments in Pre/Post Build Events to accomodate
\r
498 Also added some missing files to TestSiteWindsor-vs2005 Project
\r
500 - Removed DetermineIfPostBack due to side effects when using a custom upload approach
\r
501 Also removed PreRequestHandler setting the session as it wasn't really necessary using
\r
502 this event for that. Moved to the handler.
\r
504 - Included abstract Filter class, just as a helper to implement filters
\r
505 with a better interface (instead of IFilter.Process)
\r
507 - Fixed MR-165 "DataBind doesn't bind NullableDateTime"
\r
510 "Scarfold record modification results exception Can't edit without
\r
511 the proper id when validation is failed in the defined validation rule"
\r
514 "ValidateEmail attribute does not work properly in Monorail Scarfold"
\r
516 - Introduced CacheAttribute which can be used on actions to configure
\r
517 the underlying HttpCachePolicy
\r
519 - Modified WizardActionProvider to use ControllerLifecycleExecutor
\r
521 - Modified EngineContextModule a MonoRailHttpHandler to use ControllerLifecycleExecutor
\r
523 - Refactored controller. Extracted process to ControllerLifecycleExecutor
\r
525 - Changed ExecuteEnum.Always to include 'StartRequest'
\r
527 - Added Filter step: StartRequest
\r
529 This step runs on the ResolveRequestCache, and is suitable
\r
530 for authentication. However, a session will not be available.
\r
533 "IRequest/Controller must expose the Http method"
\r
535 Added the following properties to the Controller class:
\r
536 IsPost/IsGet/IsPut/IsHead
\r
538 - Fixed problem with view components reported by Ernst Naezer. The problem
\r
539 is that the view component were cached, and instances shared during
\r
540 template executions.
\r
542 - Introduced smtpPort, smtpUsername, smtpPassword configuration to <monorail> node
\r
544 - Introduced a PageSize property on the IPaginatedPage.
\r
547 Release Candidate 2
\r
548 ===================
\r
550 - Applied patch by Ivan Porto Carrero fixing MR-158
\r
551 "Validation throws errors when using group box."
\r
553 Quoting description:
\r
555 "When validating with the option of using a group box then the valdation routine throws an error.
\r
556 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
558 "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
559 For this I added 2 properties to the config of the validation library.
\r
560 The first property is boxErrorHeadingClass and the second one is errorSelectorCssClass
\r
562 "In the core script I added 5 lines or so to add this functionality. "
\r
564 - Applied patch by Nick Hemsley fixing MR-157
\r
565 "add fromNameValueCollection method for creating IDictionary instances from (i.e.) Context.Params, or Request.QueryString"
\r
567 Method was renamed to FromNameValueCollection
\r
569 - Introduced ARPagination.CreatePagination<T>(SimpleQuery<T>). Looks like it can be
\r
570 extended later for the non-generic SimpleQuery.
\r
572 - Made all Helpers that install javascript code use the same signature Helper.InstallScripts(). Should we mandate an interface?
\r
574 - Fixed the GenerateJSProxy(string proxyName, string controller), which was passing a null areaName;
\r
576 - Fixed the conflict between the Array.reduce function of Prototype e fValidate scripts (MR-166).
\r
579 Release Candidate 1
\r
580 ===================
\r
582 - ARDataBinder was ovewriting ids on belongs to relations causing
\r
583 NHibernate to throw exception. Fixed and added test cases
\r
585 - Fixed binder problem (MR-161)
\r
587 - Fixed Perfomance issue with Brail and sub views due to cache key normalization issues.
\r
589 - Added logging to Brail, configured using the normal Castle's cofniguration mechansim
\r
591 - 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
593 - Started refactoring ARScaffold to rely on FormHelper
\r
595 - Small refactor on ARScaffold support to make it work with
\r
597 . The new Binder implementation
\r
599 - Changed MonoRailContainer to save the configuration. On mono
\r
600 a copy is created everytime the config is requested, leading a big problems
\r
603 "Cast exception with configuration"
\r
605 - Added two more events to ExtensionManager: Authorize and Authenticate.
\r
606 That allows authentication/authorization extensions to MonoRail that won't
\r
609 - Applied Jochen Grefe's patch fixing NVelocity-3
\r
610 "#include not working for nvelocity"
\r
612 - Another attempt to MR-152 "Error while initializing MonoRail services"
\r
614 Separated container implementation from module. But it's important that
\r
615 the module subscribe the events, so the container can delegate event invocations
\r
616 to the extension manager
\r
618 - Fixed MR-152 "Error while initializing MonoRail services"
\r
620 - Applied midas's patch fixing MR-113
\r
621 "change collected view name in assembly to lower"
\r
623 - Applied Don Morrison's patch fixing MR-150
\r
624 "Patch to fix problem with ARDataBinder and ARFetcher when dealing with joined subclasses."
\r
626 - Added support for null property handling in Brail.
\r
627 ${objMayBeNull.Name} -- will throw if null
\r
628 ${ IgnoreNull(objMayBeNull).Name } -- will return empty string when null
\r
630 -- Breaking change in Brail. Removed <? ?> as markers for code blocks. This was done to allow handling of xml processing instructions (<?xml ?> for instnace).
\r
631 Use <?brail ?> markers instead.
\r
633 - Applied Marc-André's patch fixing MR-149
\r
634 "[TestSupport] Verb not specified for Get request"
\r
636 - Applied Ernst Naezer's patch that fixes MR-95
\r
637 "Update ProtoType/Scriptaculous js libraries to latest version"
\r
639 Prototype library updated to version 1.5.0_rc1
\r
640 script.aculo.us updated to 1.6.4
\r
642 - Added watir tests for JS proxies (fixes MR-142 "Write test cases for AjaxHelper.GenerateJSProxy()")
\r
644 - Added watir tests for Ajax support
\r
646 - Changed Ajax helper to default to parameters:'value=' + value instead of parameters:value.
\r
647 This old way was causing null keys on the form dictionary and thus being ignored by
\r
651 "Apply Sean's suggestions"
\r
653 Component 'ChildContentComponent' introduced, plus a few test cases for it.
\r
656 "Seems Wizard Controller can't define Area"
\r
659 "Introduce the notion of conditions to WizardStepPage"
\r
661 Introduced IsPreConditionSatisfied to WizardStepPage
\r
664 "Add log support as discussed on the mailing list"
\r
666 - Added Logger property to Controller
\r
668 - Added more logging information to the request lifecycle
\r
670 - Logging support: Important services are now logging what they are doing.
\r
671 Verbose logging happens at Debug Level. Error level is used for exceptions
\r
673 - Refactored: The EngineContextModule was simplified. Now its duty is to
\r
674 instantiate the services and invoke the lifecycle methods. Each service uses
\r
675 its lifecycle methods to reference other services and obtain its configuration
\r
677 - Refactored: replaceable services were moved to Services namespace
\r
679 - Refactored: interfaces meant to be public were moved from Internal
\r
680 namespace to the root
\r
683 "PaginationHelper must support IList<T>"
\r
686 "FormHelper must be able to handle IList<T>"
\r
689 "Change node/section name from monoRail to monorail on configuration file"
\r
691 Now on the configuration, use <monorail> instead of <monoRail>
\r
693 - Included Test site for ActiveRecord support project, watir tests included
\r
695 - Refactored ARDataBinder to support HasMany and HasAndBelongsToMany
\r
697 - Applied Ernst Naezer <enix@ch10.shuis.tudelft.nl>'s patch fixing build
\r
699 - Introduced [AjaxAction] attribute. Any action marked with this attribute
\r
700 can be accessed on client-side scripting using a JavaScript proxy, like
\r
703 $ajaxHelper.getJavascriptFunctions()
\r
704 ## MANDATORY, must come before any call to generateJSProxy
\r
706 $ajaxHelper.generateJSProxy('thisController')
\r
707 ## will declare an object named "thisController", allowing access
\r
708 ## to all [AjaxAction]s on the current controller
\r
710 $ajaxHelper.generateJSProxy('util', 'lists', 'myLists')
\r
711 ## will declare an object named "myLists", allowing access
\r
712 ## to all [AjaxAction]s on the controller named 'lists', in the 'util' area
\r
714 Note that proxies can perform synchronous (blocking) or asynchronous (non-blocking) calls.
\r
715 For asynchronous calls, you must always supply a JavaScript function as an additional
\r
716 last parameter. When that parameter is absent, the proxy will perform a synchronous call.
\r
718 [AjaxAction] public void Sum(int num1, int num2) { RenderText(Convert.ToString(num1 + num2)); }
\r
722 // synchronous call
\r
723 $('result').value = myLists.sum($('num1').value, $('num2').value);
\r
727 // asynchronous call
\r
728 myLists.sum($('num1').value, $('num2').value, function(t) { $('result').value = t.responseText; });
\r
732 $('num1').value = the value of an input with id=num1
\r
733 $('num2').value = the value of an input with id=num2
\r
734 function(t) { ... } = the callback
\r
735 t.responseText = any text that the action could have rendered
\r
737 - Applied Marc-André's patch fixing MR-140
\r
738 "ARDataBindAttribute doesn't use the controller's DataBinder"
\r
740 - Updated AbstractServiceContainer to support adding/removing services.
\r
742 - MonoRails services now accept and IServiceContainer instead of an
\r
743 IServiceProvider to be able to add services if desired.
\r
745 - Small refactor of Controller to to accomodate passing action arguments.
\r
747 - Updated SmartDispatchController to utilize HttpRequest parameters when
\r
748 additional arguments are supplied via a Send.
\r
750 - Applied patch by Freyr Magnússon <freyr.magnusson@gmail.com> fixing MR-139
\r
751 "ExceptionChainingExtension doesn´t handle unhandled exceptions"
\r
753 Which also introduces a new feature:
\r
755 Controllers can request IExceptionProcessor through IServiceProvider
\r
756 and invoke the handlers to process an exception. For example:
\r
758 public void BuyMercedes()
\r
764 catch(Exception ex)
\r
766 IExceptionProcessor exProcessor = (IExceptionProcessor) ServiceProvider.GetService(typeof(IExceptionProcessor));
\r
767 exProcessor.ProcessException(ex);
\r
769 RenderView("CouldNotBuyMercedes");
\r
773 - Changed DataBinder behavior to return empty arrays, instead of null arrays,
\r
774 when the IBindingDataSourceNode is null
\r
776 - Applied patch by Bryan Brown fixing MR-138
\r
777 "patch to fix formhelper.LabelFor to use IDictionary"
\r
779 - Applied Freyr Magnússon's patch fixing MR-137
\r
780 "Databinding through DataBindAttribute does not register errors with SmartDispatcherController"
\r
782 - Applied peter dol's patch fixing MR-136
\r
783 "An overload for ButtonToRemote that accepts htmloptions"
\r
785 - WizardStepPage: added more redirect overloads to allow parameters to be
\r
788 - AR Support: Added support to deal with ICollection<T> containers
\r
790 - Applied Marc-Andre's patch fixing MR-133
\r
791 "TestSupport not working under Mono"
\r
793 - Removed PropertyBag.Clear() in Controller.cs to restore the ability to
\r
794 update the PropertyBag in filters.
\r
796 - Applied Colin Ramsay <castleproject-devel@happyandlost.co.uk> patch making
\r
797 the _selectedViewName field accessible through a public property.
\r
799 - Checked in changes to better support ASP.NET Views
\r
801 - Refactor FormHelper to use a common code to CheckboxList and Select.
\r
802 Added support mentioned in MR-130
\r
804 - Introduced CreateCheckboxList. See preliminary documentation at
\r
805 http://www.castleproject.org/index.php/MonoRail:FormHelper#CheckboxList
\r
807 - Applied Colin Ramsay <castleproject-devel@happyandlost.co.uk> patch adding more
\r
808 asserts to TestSupport.AbstractMRTestCase and refactored some other things
\r
810 - MR-125 testsupport doesn't handle posting to smart dispatcher controller
\r
811 Fixed by Andrei Shires <andrei@internetware.co.uk>
\r
813 - FormHelper: Now it can fill parameters with the values from the Request.Params
\r
815 - FormHelper: fixed Checkbox behavior with databinder by adding a hidden
\r
816 field with the same name but carrying the 'false' value. The false value
\r
817 can be overriden with a key 'falseValue' if you're working with a non-boolean
\r
821 FormHelper.CheckboxField("some.property")
\r
825 <input type="checkbox" id="some_property" name="some.property" value="true" />
\r
826 <input type="hidden" id="some_propertyH" name="some.property" value="false" />
\r
829 FormHelper.CheckboxField("acceptDisclaimer", %{trueValue = 'accept', hiddenValue = 'reject'})
\r
833 <input type="checkbox" id="acceptDisclaimer" name="acceptDisclaimer" value="accept" />
\r
834 <input type="hidden" id="acceptDisclaimerH" name="acceptDisclaimer" value="reject" />
\r
837 - Applied Ernst Naezer's patch to allow MR to throw a descriptive
\r
838 exception message when two helpers are registered using the same key
\r
840 - Added a hack to the WebFormsViewEngine to accomodate different behavior
\r
841 with respect to invoking PageParser.GetCompiledInstance on ASP.NET 2.0
\r
843 - Added support for defaultValue attribute to FormHelper, which specificy
\r
844 what the value should be if the target evaluates to null.
\r
846 - Added indexed properties support to FormHelper
\r
848 When the target is an array you can
\r
850 PropertyBag.Add("roles", Roles.FindAll());
\r
852 FormHelper.TextField("roles[0].Id")
\r
856 <input type="text" id="roles_0_Id" name="roles[0].Id" value="1" />
\r
858 The indexed property can be nested
\r
860 PropertyBag.Add("user", User.Find(1));
\r
862 FormHelper.TextField("user.roles[0].Id")
\r
864 <input type="text" id="user_roles_0_Id" name="user.roles[0].Id" value="1" />
\r
866 - Added RadioField(String target, object valueToSend, [IDictionary attributes]) to FormHelper
\r
868 The radio will be marked with checked="checked" if the value collected
\r
869 from the target matches the valueToSend parameter
\r
871 - Fixed RedirectToAction on WizardStepPage. Now it produces a correct action url.
\r
873 - Changed WizardStepPage.InternalRedirectToStep to simply RedirectToStep
\r
875 - Changed SmartDispatcherController.BuildMethodArguments. Now it tests if the conversion
\r
876 succeeded before setting the value on the array.
\r
878 - Introduced IWizardPageFactory on WindsorExtension, so a Wizard controller doesn't
\r
879 need to reference the IKernel directly
\r
881 - Some optimization on Redirect* methods on Controller class. Now they accept
\r
882 an IDictionary as a parameter specifier (in addition to NameValueCollection).
\r
884 - Refactored ControllerDescriptorBuilder (renamed to ControllerDescriptorProvider)
\r
885 to use child providers to obtain descriptor. Attributes are now descriptors builders
\r
886 and that allows one to come up with custom attributes like
\r
888 public class MyAttribute : Attribute, ILayoutDescriptorBuilder, IHelperDescriptorBuilder
\r
890 public LayoutDescriptor BuildLayoutDescriptor()
\r
892 return new LayoutDescriptor("mylayout");
\r
895 public HelperDescriptor[] BuildHelperDescriptors()
\r
897 return new HelperDescriptor[] { new HelperDescriptor(typeof(MyHelper)) };
\r
901 Kudos to Fabio by coming up with the idea.
\r
903 - ViewComponents: added subsection support
\r
905 (Using nvelocity as example)
\r
907 #blockcomponent(GridComponent)
\r
913 Showing record $startrecord to $total
\r
917 <td>$item.Name</td>
\r
921 <td>No records found</td>
\r
925 On the code you can use
\r
927 public override bool SupportsSection(String name)
\r
929 return name == "header" || name == "item" || name == "footer" ||
\r
933 public override void Render()
\r
935 ICollection source = (ICollection) ComponentParams["source"];
\r
939 Context.RenderSection("header");
\r
941 if (source != null && source.Count != 0)
\r
943 foreach(object item in source)
\r
945 PropertyBag["item"] = item;
\r
947 RenderText("<tr>");
\r
949 Context.RenderSection("item");
\r
951 RenderText("</tr>");
\r
956 RenderText("<tr>");
\r
957 Context.RenderSection("empty");
\r
958 RenderText("</tr>");
\r
961 Context.RenderSection("footer");
\r
966 - ViewComponent on NVelocity: added to support to interpolation on component parameters.
\r
972 PropertyBag.Add("customers", Customer.FindAll());
\r
977 #blockcomponent(GridComponent with "source=$customers")
\r
981 ViewComponent code:
\r
983 public override void Render()
\r
985 IList items = (IList) ComponentParams["source"];
\r
987 foreach(object item in items)
\r
989 Context.ContextVars["item"] = item;
\r
990 // Do something like rendering the body
\r
994 - Configuration changed:
\r
996 . Added <cacheprovider> node
\r
997 . Added <additionalSources> node under <viewEngine>
\r
1002 <cacheProvider type="my custom implementation"/>
\r
1004 <viewEngine viewPathRoot="views" customEngine="Castle.MonoRail.Framework.Views.NVelocity.NVelocityViewEngine, Castle.MonoRail.Framework.Views.NVelocity">
\r
1005 <additionalSources>
\r
1006 <assembly name="MyAssembly" namespace="My.Assembly" />
\r
1007 </additionalSources>
\r
1011 - IViewEngine refactored to use the IViewSourceLoader to locate views
\r
1013 - Introduced IViewSourceLoader and IViewSource. The former represents an approach to load
\r
1014 views. The default implementation is FileAssemblyViewSourceLoader which first look ups
\r
1015 the file system then the configured assemblies for the specified view
\r
1017 - ICacheProvider service introduced (available on IServiceProvider implementation).
\r
1018 Two implementations available:
\r
1020 . DefaultCacheProvider which uses the HttpContext.Cache
\r
1021 . WeakReferenceCacheProvider which uses a hashtable with WeakReferences as entries
\r
1023 - Warning about Nullables and SmartDispatcher arguments. The behavior has changed a
\r
1026 . In the past, if the value for a nullable was not present, that was accepted and
\r
1027 the nullable was initialized with HasData=false
\r
1028 . Now the value mustn't be present, but the entry must be present
\r
1032 Controller Action:
\r
1034 public void Transfer(NullableDouble amount)
\r
1039 If you invoke it with Controller/Transfer.rails you'll get an exception
\r
1041 If you invoke it with Controller/Transfer.rails?amount= then it's ok
\r
1043 If you invoke it with Controller/Transfer.rails?amount=10 is obviously ok too.
\r
1045 - Removed Obsolete members of ExecuteEnum. If you were using
\r
1047 . ExecuteEnum.Before, change to ExecuteEnum.BeforeAction
\r
1048 . ExecuteEnum.After, change to ExecuteEnum.AfterAction or ExecuteEnum.AfterRendering
\r
1049 . ExecuteEnum.Around, change to ExecuteEnum.Always or combine the flags
\r
1051 - Refactored DefaultRailsEngineContext and EngineContextModule. Now EngineContextModule
\r
1052 is also a ServiceContainer. When a DefaultRailsEngineContext is created we pass
\r
1053 the EngineContextModule as a parent container.
\r
1055 This saves us some cycles of registering
\r
1056 the services on every single DefaultRailsEngineContext instance.
\r
1058 - Added attribute 'checkClientIsConnected' to monoRail configuration check. If
\r
1059 'true' the controller class will always check IsClientConnected on
\r
1061 - InternalSend (beginning)
\r
1062 - Before Staring filter process
\r
1063 - Before invoking the view engine
\r
1065 The default value is 'false'
\r
1069 - Removed AutoLoadUnlessKeyIs and NullIfKeyIs from ARDataBinder. Added enum
\r
1070 AutoLoadBehavior to replace them:
\r
1072 AutoLoadBehavior.Never (default): Means that no autoload should be perform on the target
\r
1073 type nor on nested types.
\r
1075 AutoLoadBehavior.Always: Means that autoload should be used for the target type
\r
1076 and the nested types (if present). This demands that the primary key be present on the http request
\r
1078 AutoLoadBehavior.NewInstanceIfInvalidKey: Means that we should autoload, but if the key is
\r
1079 invalid, like null, 0 or an empty string, then just create a new instance of the target type.
\r
1081 AutoLoadBehavior.NullIfInvalidKey: Means that we should autoload, but if the key is
\r
1082 invalid, like null, 0 or an empty string, then just return null
\r
1084 - Added support for AccessibleThrough(Verb.Post, or Verb.Get) to restrict the type of access a controller action requires.
\r
1086 - Added suport for InPlaceRenderView for Brail
\r
1088 - Added <? ?> tags for Brail, to match the php style.
\r
1090 - Added RemoveCookie() method to IResponse
\r
1092 - Fixed a bug in Brail's ViewComponents, where a parameter was search using case sensitive search.
\r
1094 - 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
1096 - Updated boo binaries, should fix the problems with the build on machines with only one framework installed.
\r
1098 - Fixed a bug in Brail where a new line was required before a method call was recognized
\r
1100 - Added support for optional parameters in Brail, using the syntax ?foo will return null if the value was not set (instead of throwing.)
\r
1102 - Fixed a bug where Brail would throw on Empty Views.
\r
1104 - Added support for AutoLoadUnlessKeyIs in ARDataBinder - will load the object unless the key is a specific value
\r
1105 Usages: public void Save([ARDataBinder(AutoLoadUnlessKeyIs=0)] User user)
\r
1107 - Added checks for null id when doing data binding.
\r
1109 - 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
1111 - Added support for <?brail ?> tags for Brail, so it can be valid XML documents
\r
1113 - Added logging for Brail, so you can see the Boo code the preprocessor is generating.
\r
1115 - Added more verbose output to compiler errors in Brail.
\r
1117 - 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
1119 - Fixed a bug with Brail not picking up changes that occured by VS.Net
\r
1121 - 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
1123 - MonoRail is now CLSCompliant (kudos to Roelof Blom <roelof.blom@gmail.com>)
\r
1125 - Breaking change: now MonoRail requires that you add the following module to web.config:
\r
1129 <add name="monorail" type="Castle.MonoRail.Framework.EngineContextModule, Castle.MonoRail.Framework" />
\r
1133 - Configuration nodes and attributes changes:
\r
1134 - mailto to mailTo
\r
1135 - mailfrom to mailFrom
\r
1136 - customsession to customSession
\r
1138 - SmartViewComponent removed
\r
1140 - DataBinder refactored out. Now implementation lies on Castle.Components.Binder
\r
1141 + Big performance improvement
\r
1143 - ARDataBinder now issues a FindByPK for nested objects if the keys differs (existing object with
\r
1146 - SmartDispatcherController: now there's no hardcode reference to DataBind, ARDataBind or ARFetch attributes.
\r
1147 They only must implement the interface IParameterBinding. This opens an interesting extension point
\r
1148 for users willing to create their own logic to binding form/querystring parameters to their data components
\r
1150 - Controller: Added RedirectToAction(String action, params String[] queryStringParameters)
\r
1151 example: RedirectToAction("edit", "id=" + id, "error=couldn't update the row");
\r
1153 - Added FlashBinderAttribute (being evaluated)
\r
1155 - Added FormHelper (being evaluated)
\r
1157 - Added CaptureFor component
\r
1159 - Renamed ARPager splitted into ARPaginationHelper and ARPager
\r
1161 - ARDataBinder is now able to deal with HasAndBelongsToMany relations.
\r
1162 This works in two ways. Suppose you have a Product class with a relation HasAndBelongsToMany to Category.
\r
1164 If you send the following fields from a form:
\r
1166 product.categories.id=1
\r
1167 product.categories.id=2
\r
1169 ARDataBinder will ignore the AutoLoad property and always populate the Categories
\r
1170 collection on the product class with the result of FindByPrimaryKey of the categories.
\r
1171 Any other field will be ignored, for example product.categories.name will not be bound
\r
1173 However, if you send the values like
\r
1175 product.categories[0].id=1
\r
1176 product.categories[1].id=2
\r
1178 Then ARDataBinder will use the usual path, not ignoring the AutoLoad.
\r
1180 This behavior is being evaluated.
\r
1182 - Removed AbstractExtension
\r
1184 - Extension now uses events (See ExtensionManager)
\r
1186 - Interface IMonoRailExtension changed (has only Init method now)
\r
1188 - Refactored IParameterBinder in order to make it participate on calculations points.
\r
1190 - Introduced WindsorMonoRailSectionHandler which has the support for statements similar to those supported
\r
1191 by windsor's XmlInterpreter
\r
1193 - Added ARDataBindAttribute.NullWhenPrimaryKey which forces the databinder to
\r
1194 ignore and do not load a record if the retrieved PK has the value assigned to this
\r
1195 property (kudos to Roelof Blom <roelof.blom@gmail.com>)
\r
1202 - Fixed Flash (it now persists the new entries between requests) (by Ahmed)
\r
1204 - Added FilterAttribute.ExecutionOrder, the default value is Int32.MaxValue
\r
1205 so the less the value higher will be the filter priority
\r
1207 - Added Controller.RedirectToAction(String actionName)
\r
1209 - Added Controller.RedirectToAction overloads (by Fabio Batista)
\r
1211 - Controller.Redirect(String) is now virtual, and it's called by all Redirect* methods (by Fabio Batista)
\r
1213 - Moved action collection to ControllerMetaDescriptor class, using new method that does not require ScreenCommonPublicMethods.
\r
1215 - Moved ControllerDescriptorBuilder creation to ProcessEngineFactory to ensure ControllerDescriptors are only created once
\r
1217 - ITrace and Trace property added to IRailsEngineContext (kudos to Chad Humphries)
\r
1219 - Hierarchy of areas support (kudos to Fabio Batista)
\r
1221 - Support for [Layout] attribute on Actions, so actions can override
\r
1222 the Controller's specified layout (by Fabio Batista, rev 1459)
\r
1224 - PaginationHelper introduced: paginates objects that implements IList, and supports caching.
\r
1226 - ARPager introduced: allows you to specify a custom NHibernate HQL Query or an NHibernate Criteria
\r
1227 (using Expression.Eq, à là ActiveRecord's FindAll()) and fetch the results with pagination.
\r
1228 (by Fabio Batista)
\r
1230 - Added IServerUtility.JavaScriptEscape() (kudos to Chad Humphries)
\r
1232 - Added DataBindAttribute.Exclude - A comma separated list of property names
\r
1233 to exclude from databinding (kudos to Chad Humphries)
\r
1235 - Added IResponse.BinaryWrite() and CreateCookie( HttpCookie ) overload
\r
1237 - Added IServerUtility.MapPath()
\r
1239 - Added IRailsContext.ApplicationPhysicalPath
\r
1241 - Added to HtmlHelper:
\r
1246 - Form(action, attribtes) overload
\r
1248 - Added more fine-grained support for ExecuteEnum in Filters (by Fabio Batista, rev 1286-1287)
\r
1250 The values are now: BeforeAction, AfterAction, AfterRendering and Always.
\r
1252 - Support for nullable types in SmartDispatcherController, useful for
\r
1253 detecting missing ValueType parameters. Works with Nullables library, still
\r
1254 not working on .NET 2.0 Nullables (by Fabio Batista, rev 1297 and 1363)
\r
1259 public void CreateTicket(string name, NullableDateTime date, NullableInt32 priority)
\r
1261 if (name == null || name.Length == 0) throw new MissingFieldException();
\r
1262 if (!date.HasValue) throw new MissingFieldException();
\r
1263 if (!priority.HasValue) throw new MissingFieldException();
\r
1266 // .NET 2.0 (NOT WORKING YET)
\r
1267 public void CreateTicket(string name, DateTime? date, int? priority)
\r
1269 if (name == null || name.Length == 0) throw new MissingFieldException();
\r
1270 if (!date.HasValue) throw new MissingFieldException();
\r
1271 if (!priority.HasValue) throw new MissingFieldException();
\r
1274 - Broaded support for Enums. They can be specified by number or by text (by Fabio Batista, rev 1203)
\r
1276 public enum MyEnum {
\r
1281 <input type="hidden" name="myEnumValue" value="1" />
\r
1282 <input type="hidden" name="myOtherEnumValue" value="seCoNd" />
\r
1284 public void TestEnumValues(MyEnum myEnumValue, MyEnum myOtherEnumValue)
\r
1286 if (myEnumValue == MyEnum.First) // ok
\r
1287 if (myOtherEnumValue == MyEnum.Second) // ok
\r
1290 - Support for ActiveRecord fetching in Castle.MonoRail.ActiveRecordSupport
\r
1291 (by Fabio Batista, rev. 1380).
\r
1293 Mainly for those unconfortable with direct binding of form values
\r
1294 to ActiveRecord objects. This attribute only fetches the ActiveRecord based
\r
1295 on its Primary Key, nothing more.
\r
1299 public class MyCrudExample : ARSmartDispatchController
\r
1302 public void Save( [ARFetch] Example example, string name, ...)
\r
1304 example.Name = name;
\r
1310 // using a different request parameter, instead of the action's parameter name
\r
1311 public void Save( [ARFetch("primaryKey")] Example example, string name, ...)
\r
1313 example.Name = name;
\r
1319 // ignoring invalid primary keys
\r
1320 public void Save( [ARFetch(Require=false)] Example example, string name, ...)
\r
1322 example.Name = name;
\r
1328 // not creating new records automatically, when the parameter is empty or null
\r
1329 public void Save( [ARFetch(Create=false)] Example example, string name, ...)
\r
1331 if (example == null)
\r
1332 example = new Example(someRequiredConstructorParameter);
\r
1334 example.Name = name;
\r
1340 // fetching a list of Active Records
\r
1341 public void Delete( [ARFetch("selected")] Example[] examples )
\r
1343 foreach (Example example in examples)
\r
1348 - Support for smart arrays (aside from primitives) (kudos do Ahmed)
\r
1350 Quoting the explanation:
\r
1352 Suppose you have this class:
\r
1357 public string Name {get;set;}
\r
1359 public int Age {get;set;}
\r
1362 With the following view
\r
1364 <input name="Person[0].Name" value="John">
\r
1365 <input name="Person[0].Age" value="30">
\r
1366 <input name="Person[1].Name" value="Mary">
\r
1367 <input name="Person[1].Age" value="25">
\r
1369 Now you can specify the DataBinderAttribute to an array element in your controller:
\r
1371 public void SavePeople( [DataBinder(Prefix=”People”)] Person[] people )
\r
1373 // you should be able to access the people as an Person array
\r
1375 Assert.IsTrue( people[0].Name == “John” );
\r
1376 Assert.IsTrue( people[1].Name == “Mary” );
\r
1379 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
1381 <input name="Person[0].Name" value="John">
\r
1382 <input name="Person[0].Age" value="30">
\r
1383 <input name="Person[0]@ignore" value="yes">
\r
1384 <input name="Person[1].Name" value="Mary">
\r
1385 <input name="Person[1].Age" value="25">
\r
1387 In the previous html code, the people array in the controller will only have one element (Mary).
\r
1389 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
1391 The count attribute serves as a performance optimization when your elements are keyed using sequential integers, for example:
\r
1393 <input name="Person@count" value="5">
\r
1394 <input name="Person[0].Name" value="John">
\r
1395 <input name="Person[1].Name" value="James">
\r
1396 <input name="Person[2].Name" value="Jeff">
\r
1397 <input name="Person[3].Name" value="Geoff">
\r
1398 <input name="Person[4].Name" value="Jeffrey">
\r
1402 - AjaxHelper2 renamed to AjaxHelper. The old one was renamed to AjaxHelperOld
\r
1404 - Two more callbacks supported: onSuccess and onFailure. For example
\r
1406 $AjaxHelper.BuildFormRemoteTag( $DictHelper.CreateDict("url=something.rails", "OnSuccess=myjavascriptfunction();", "OnFailure=otherfunction(request)" ) );
\r
1408 Do not confuse it with 'success' and 'failure' keys, though. Those means the id of elements
\r
1409 to be updated in the event of success and failure.
\r
1412 ** NVelocity View Engine **
\r
1414 - Added support for global macros. Every *.vm file which is placed in the Views/macros directory
\r
1415 will be scanned for macros (by Fabio Batista, rev. 1374)
\r
1417 ** Brail View Engine **
\r
1419 - Upgraded to use Boo 0.75, should solve the problem that Brail had with breaking tests.
\r
1421 ** Scaffolding support **
\r
1423 - huge refactoring
\r
1424 - It's now using templates
\r
1427 ** Test support **
\r
1429 - Introduced Castle.MonoRail.TestSupport
\r
1434 MR-68 PreSendView is not being invoked by NVelocityViewEngine
\r
1435 http://support.castleproject.org/jira/browse/MR-68
\r
1436 MR-66 DataBinder and ConvertUtils should support TypeConverters
\r
1437 http://support.castleproject.org/jira/browse/MR-66
\r
1438 MR-64 DataBinder.Convert should support decimal
\r
1439 http://support.castleproject.org/jira/browse/MR-64
\r
1440 MR-58 AbstractHelper generates invalid XHTML
\r
1441 http://support.castleproject.org/jira/browse/MR-58
\r
1442 MR-57 Wrong urls are crashing UrlTokenizer
\r
1443 http://support.castleproject.org/jira/browse/MR-57
\r
1444 MR-52 Support for real Flash feature
\r
1445 http://support.castleproject.org/jira/browse/MR-52
\r
1446 MR-49 Remove public properties from the list of available actions (Controller.cs)
\r
1447 http://support.castleproject.org/jira/browse/MR-49
\r
1448 MR-30 MR should not accept incorrect urls
\r
1449 http://support.castleproject.org/jira/browse/MR-30
\r
1455 - Added useWindsorIntegration attribute to monoRail configuration section
\r
1461 - Initial Scaffolding support
\r
1463 - Localization support
\r
1464 - More helpers and improvements
\r
1470 - Few bug corrections
\r
1471 - Applied patch from Dru Sellers: NVelocityViewEngine adds a $siteRoot exposing the Request.ApplicationPath
\r