4 - Added FormHelper.TextFieldAutoComplete for combining AJAX AutoCompletion and FormHelper's round trip
\r
7 - Added possibility to create labels in CheckboxLists.
\r
9 - Applied James Curran's patch fixing MR-390
\r
10 "Adding AbstractHelper(IEngineContext) ctor"
\r
12 - Applied Gauthier Segay's patch fixing MR-388
\r
13 "There should be a way to preserve url query string arguments while using DiggStylePagination"
\r
15 - Applied Mike Nichols' patch adding two more events to the extension manager.
\r
17 - Applied Felix Gartsman's patch fixing MR-387
\r
18 "ViewComponent selective caching"
\r
20 - Applied Felix Gartsman's patch fixing MR-368
\r
21 "Added DetachedCriteria support to ARPaginationHelper/ARPaginableCriteria"
\r
23 - Applied Gauthier Segay's patch fixing MR-384
\r
24 "GenericCustomPage<T> should rely on IEnumerable<T> instead of IList<T> for it's datasource"
\r
26 - Applied James Curran's patch fixing MR-347
\r
27 "Cannot specify a default value for ViewComponentParameterAttribute"
\r
29 - Applied Adam Tybor's patch fixing MR-370
\r
30 "RouteContext and Http Method Filtering for PatternRule"
\r
32 - Applied Daniel Jin's patch fixing MR-372
\r
33 "add monorail configuration section to set the useExtensions option on DefaultUrlBuilder"
\r
36 "Nested classes are mapped wrongly to form fields"
\r
38 - Applied Kode Khan's patch changing logger creation to use type instead of controller's name
\r
40 - Implemented support for view component caching. Just use the attribute
\r
41 ViewComponentDetails and its properties (cache, cachekeygenerator)
\r
43 - Applied Michael Sanford's patch which adds image button support to FormHelper.
\r
45 - Applied Rafael Teixeira's patch fixing MR-357
\r
46 "ViewEngineBase.IsTemplateForJSGeneration(String templateName) returns
\r
47 true for a templateName with an incorrect extension"
\r
49 - Added support for Composite Key in Formhelper select
\r
51 - Applied Chris Ortman's patch with changes for the REST support (MR-333)
\r
53 - Applied Nick Hemsley's patch adding support for rescue controllers (MR-332)
\r
54 "add RescueController to RescueAttribute"
\r
56 - Applied suggestion by Daniel D to fix MR-329
\r
57 "Impossible to Context.Response.Redirect to any controller in empty Area from controller placed in some Area."
\r
59 - Applied minor patch by Ken Egozi fixing MR-328
\r
60 "In PrototypeWebValidation, SameAsValidator and NotSameAsValidator
\r
61 are forcing a locase id for text fields"
\r
63 - Applied minor patch by Nick Hemsley fixing MR-325
\r
64 "DictHelper.FromNameValueCollection: persist arrays correctly"
\r
66 - Added LocalExceptionFilterHandler
\r
68 - Applied Robert Ream's patch which allows [DefaultAction] to be applied to Actions. This means that no strings are required.
\r
70 - BaseControllerTest supports the ContextInitializer delegate, which makes it easier to modify the MockRailsEngineContext
\r
75 - Added IDisposable/Dispose back to the controller
\r
77 - Applied Lee Henson's patch adding generic overloads to ReflectionHelper
\r
79 - Added a few more RenderView overloads that take a mimeType to configure the Response.ContentType
\r
81 - If the controller cannot be found, MR searches for a special rescue "rescues/404" before throwing throwing an exception.
\r
83 - 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
85 - UrlHelper change: Now if the param encode wasn't set, UrlHelper assumes it's true.
\r
87 - Applied patch by Oleg Snurnikov fixing MR-319
\r
88 "MockResponse - basic implementation of Redirect, Write, BinaryWrite and Clear overloads"
\r
90 - Applied patch by Chirs Ortman fixing MR-296
\r
91 "Dont get validation summary when binding with AR attribute but controller inherits smart dispatcher controller"
\r
93 - Applied patch by Rafael Teixeira fixing MR-298
\r
94 "ColumnRenderer with an empty enumeration still renders table start and end sections"
\r
97 "DataBindAttribute in a ARSmartDispatcherController inherit the behavior from ARDataBinder"
\r
99 - Applied minor patch by James Su fixing MR-303
\r
100 "Behavior is not consistent between FormToAttributed and LinkToAttributed in HtmlHelper"
\r
102 - Applied goodwill's patch adding cookie support to BaseControllerTest MR-304
\r
104 - Applied goodwill's patch fixing MR-305
\r
105 "fValidate fix a bug on unassociated label for element"
\r
107 - Applied Oleg Snurnikov's patch fixing MR-306
\r
108 "PrototypeWebValidator - regular expression validation"
\r
111 "The '\' character in templates goes unescaped when processed via NJS"
\r
113 - The DefaultUrlBuilder now accepts a basePath parameter, which basically overrides the path information.
\r
116 "ARDataBind handles BelongsTo attribute in Nested component incorrectly."
\r
118 - FlashBinderAttribute was removed as I doesnt work with the new
\r
119 MonoRail design (changed to make the cache support work)
\r
121 - Applied Tim Haines' patch adding TextAreaValue to FormHelper
\r
124 "View components params problem"
\r
126 - Applied Markus Zywitza's patch adding a Fold method to TextHelper.
\r
127 His description "Shortens a text to the specified length (using full words only and
\r
128 adding an ellipsis at the end) and wraps it into a span-element that
\r
129 has the title-property with the full text associated. This is
\r
130 convenient for displaying properties in tables that might have very
\r
131 much content (desription fields etc.) without destroying the table's
\r
132 layout. Due to the title-property of the surrounding span-element, the
\r
133 full text is displayed in the browser while hovering over the
\r
136 - Applied Aaron Jensen's patch fixing MR-288
\r
137 "ApplicationPhysicalPath returns request path instead of / path"
\r
140 "MockServerUtility.MapPath throws NotImplementedException"
\r
142 - Applied Bill Pierce's patch fixing MR-278
\r
143 "Add UrlDecode to IServerUtility"
\r
145 - Applied Bryan Brown's patch fixing MR-273. This one adds a new attribute to
\r
146 the routing configuration node: 'excludeAppPath'
\r
147 "Automatically handle ApplicationPath in the routing module"
\r
149 - Applied goodwill's patch fixing MR-275
\r
150 "DefaultRailsEngineContext triggers RTE on ApplicationPhysicalPath
\r
151 when running under ASPX Dev Server with virtual directory"
\r
153 - Changed the BaseControllerTest vdir to "" instead "/"
\r
155 - Added the Declare(String variable) to IJSGenerator inteface
\r
157 - Applied Tim Haines' patch changing FormHelper to make calls to FormatIfNecessary
\r
159 - Applied chris ortman's patch fixing MR-271
\r
160 "AdditionalSources not loaded when using the viewEngines element"
\r
162 - Applied Ricardo Stuven's patch fixing MR-258
\r
163 "JSON serialization in Ajax calls"
\r
165 - Applied goodwill's patch fixing MR-212
\r
166 "Script Helpers (e.g. $Scriptaculous) installscript function clear flash unexpected"
\r
168 - Applied Georges Benatti's patch
\r
169 adding the attribute matchHostNameAndPath to the routing node on the configuration.
\r
171 If set to 'true', the regular expression is matched against the whole url. Defaults to 'false'
\r
173 - Added ability to customise Next/Prev links in DiggStylePagination.
\r
174 Patch from Markus Zywitza.
\r
176 - Applied Mathias Doenitz's patch fixing MR-265
\r
177 "(Re)enable initialization of Controller.AreaName, Controller.Name and Controller.Action before invoking Controller.Initialize()."
\r
179 - Applied Adam Tybor's patch fixing MR-266
\r
180 "Fix for GetErrorSummary() throwing an KeyNotFoundException for SmartDispatch Controller and Binder"
\r
183 "PropertyBag in WizardStep is null when access via key"
\r
185 - Applied Kyle Marshall's patch fixing MR-261
\r
186 "The default ValidatorRegistry is not overriddable in the monorail configuration"
\r
188 - Add support to BaseControllerTest (well MockRequest actually) for Mocking Url Referer. Patch from Colin Ramsay.
\r
190 - Fix SupportsSection implementation in ViewComponent (was comparing section name equality against StringComparer.InvariantCultureIgnoreCase).
\r
191 Also add a SupportsSection implementation to DiggStylePagination. Patches from Tim Haines.
\r
193 - Small change to DiggStylePagination to allow supplying querystring parameters in the url. Suggested by kalle.stenflo@gmail.com.
\r
195 - Applied Tim Haines' patch adding BindObject overloads that accept the AutoLoadBehavior enum,
\r
196 to the ARSmartDispatcherController
\r
198 - Changes from Lee Henson to add WizardStep support to TestSupport and provide a Generic BaseControllerTest.
\r
200 - Patch from Maruis Marais allowing BuildFormRemoteTag to gracefully degrade when JavaScript is disabled.
\r
202 - Patch from Lee Henson fixing regression introduced in 3783 in Prototype Validator. (Could not use hyphens in element id's).
\r
205 "When Windsor integration is enabled, the ControllerTree is empty"
\r
207 - Apply patches from Tim Haynes.
\r
208 "add a renderIfOnlyOnePage property to the DiggStylePagination View Component"
\r
209 "Add NewRootInstanceIfInvalidKey AutoloadBehaviour to Castle.MonoRail.ActiveRecordSupport"
\r
211 - Applied Goodwill's patch adding PersisteFlashFilter and the fValidate's localization support. Fixed MR-246.
\r
213 - Fixed the use of Scaffolding without Layouts (MR-251).
\r
215 - Added support for eager fetching of lazy collections, in [ARFetch] attribute.
\r
217 - Added support for auto load bevahior configuration when invokling the BindObject in the ARSmartDispatcherController
\r
219 - Added support for different access and naming strategies in the ARDatabind attribute.
\r
221 - Applied Matt Berther's patch adding LoggingExceptionHandler and FilteredExceptionHandler.
\r
223 - Applied chris ortman's patch fixing MR-242
\r
224 "FormHelper.LabelFor does not generate valid HTML when attributes are supplied"
\r
226 - Applied bonskijr's patch fixing MR-234
\r
227 "Under some circunstances ColumnRenderer generates invalid html"
\r
229 - Applied Marc-André's patch fixing MR-238
\r
230 "HtmlHelper.LinkTo: bugs- don't function when existing a area"
\r
232 - Applied Aaron Jensen's patch fixing the Resource Manager usage
\r
233 Changed from ResourceSet to ResourceManager
\r
235 - Applied Lee Henson's patch adding the 'onCreateAdvice'
\r
236 to PrototypeWebValidator
\r
238 - Applied Chris Ortman's patch fixing MR-235
\r
239 "Allow overriding of select generation in FormHelper"
\r
241 - Added Item(string id) overload to Checkboxlist
\r
242 Used to generate a checkbox with the specified id. Useful to label for='id' constructions
\r
244 - Added the Expect property to the ARDataBindAttr. Now it will clear the collections
\r
245 that are declared as expected, if not can be found on the resquest params. (MR-163)
\r
247 - Applied Colin Ramsay's patch fixing MR-232
\r
248 "HtmlHelper.InputButton should create <button> not <input type="button">"
\r
251 "incorrect component configuration results in an 'The container seems to be unavailable
\r
252 in your HttpApplication subclass' exception"
\r
254 - Applied Bart Reyserhove's patch fixing MR-226
\r
255 "ARDataBinder has problems when using generic collections"
\r
257 - Applied Jacob Lewallen's patch adding a new attribute (ViewComponentAttribute) used
\r
258 to name view components. The behavior is changed to strip the 'Component' suffix from the class name as well.
\r
260 - Applied Ernst Naezer's patch fixing MR-191
\r
261 "Add TransformFilter support to MR"
\r
263 - Applied Lee Henson's patch fixing MR-222
\r
264 "Use of IRailsEngineContext.Items"
\r
267 "ARDataBindAttribute does not set the Controllers validator on it's DataBinder"
\r
270 "FormHelper.Select with an interface datasource throws an Object mismatch exception."
\r
272 - Applied chris ortman's patch fixing MR-188
\r
273 "Allow the #component directive to support variables for the component name"
\r
276 "Using a lazy loaded nested object, "Ambiguous match found" exception occures when
\r
277 trying to use FormHelper to render control for the nested objects property."
\r
279 - Applied goodwill's patch fixing MR-213
\r
280 "DiggStylePagination has a typo which prevents the code from build"
\r
282 - Applied Edward Kreis' patch fixing MR-214
\r
283 "ARDataBinding and joined subclasses with derived BelongsTo, HasMany, HasAndBelongsToMany proeprties"
\r
286 "fValidate box message contains <BR/> if being triggered twice"
\r
289 "HtmlHelper.LinkToAttributed bug"
\r
291 - Applied Jacob Lewallen's patch adding an optional attribute to define a view component's name
\r
292 The patch also introduces a IViewComponentTree.
\r
294 - Added 'noaction' parameter to FormHelper.FormTag to prevent action attribute generation
\r
296 - Added Select list from Enum.
\r
299 PropertyBag.Add("colors",Enum.GetValues(typeof(ColorEnum)));
\r
302 $Form.Select("Color", $colors)
\r
304 - Applied Chris Ortman's patch adding MooHelper/JS generation based on it.
\r
306 - Applied Jacob Lewallen's patch adding virtuals to some FormHelper methods
\r
308 - Applied Patrick McEvoy's patch with a new approach to delete cookies
\r
312 SmartDispatcherController.ValidationSummaryPerInstance : IDictionary
\r
313 SmartDispatcherController.GetErrorSummary(object instance) : ErrorSummary
\r
314 SmartDispatcherController.HasValidationError(object instance) : bool
\r
316 Those can be used if DataBinder is configured to validate
\r
318 - Added Controller.RedirectToReferer
\r
320 - Configuration changed, added defaultUrls section (see monorail_configuration_ref.txt)
\r
322 - Added Controller.RenderMailMessage(string templateName, bool doNotApplyLayout) overload
\r
324 - Added static accessor support to NVelocity view engine. Default helpers are
\r
325 the Common System Types in dotnet (i.e. Double, String, Decimal, etc.)
\r
327 In your template: $String.Concat("foo","bar","me","please:",$Double.Epsilon)
\r
330 - Added better ControllerBinder support for indexed property expressions.
\r
331 This allows you to pass DataKeys as your action arguments
\r
333 - Applied Freyr Magnússon's patch fixing MR-206
\r
334 "ARBadaBinder does not resolve primary key for discriminator subclass from parent"
\r
336 - Retrieve target properties on demand for ControllerBinders ActionArgument editor
\r
338 - Added ControllerBinder Extender Control for WebForm views to eliminate the
\r
339 need to add event handlers in the codebehind that call Controller.Send
\r
341 - Brail now has Ruby's like symbols, using @symbol.
\r
342 For instance, component DiggStylePagination, ${ @useInlineStyle : true }
\r
344 - Brail can now accept " inside a ${ }, which used to break the parser previously.
\r
346 - Added IViewComponentContext.RenderView(name, textwriter)
\r
349 "DiggStylePagination.Initialize() doesn't check useInlineStyle parameter"
\r
351 - Added FormHelper.HiddenField("key", value) overload
\r
353 - Added 'valueformat' to SetOperations (affects FormHelper.Select, Checkboxlist)
\r
356 "Exception thrown by AccessibleThrough are not caught by rescues"
\r
358 - Added 'textformat' support to the all FormHelper operations (that create input elements).
\r
360 - Added BrailJS Support, allowing to generate javascript via brail scripts.
\r
361 Note; BrailJS scripts do not need <?brail ?> and any output statements there will be ignored.
\r
362 They are used strictly to create the generator.
\r
364 - Changed Brail extention from Boo to Brail / BrailJS
\r
366 - Added mask support to FormHelper field elements
\r
368 - Added FormHelper.PasswordNumberField
\r
370 - Refactored FormHelper to support other approaches to extract values from instance.
\r
371 Now it supports DataRows, DataRowViews and reflection
\r
373 - Added ColumnRenderer view component
\r
375 - Added DiggStylePagination ViewComponent, based on Alex Henderson work.
\r
376 See http://blog.bittercoder.com/PermaLink,guid,579711a8-0b16-481b-b52b-ebdfa1a7e225.aspx
\r
378 - Added PaginationHelper.CreateCustomPage
\r
380 This is only useful if the application code takes care of slicing (select top and etc)
\r
382 - Added formatting support to SetOperations (affects FormHelper.Select, Checkboxlist)
\r
386 $Form.Select("price", [1..100], "%{textformat='C'}")
\r
388 This will render a select with options like
\r
390 <option value="1">$1.00</option>
\r
391 <option value="2">$2.00</option>
\r
392 <option value="3">$3.00</option>
\r
395 - Added ScriptaculousHelper, deprecated Effects2Helper
\r
397 - Extract Behaviour related operations from AjaxHelper into BehaviourHelper
\r
399 - Added BehaviourHelper
\r
401 - Added UpdatePage and UpdatePageTag ViewComponents. Both allow you to have a "page"
\r
402 which is a JS generator. It evaluates the view component body to generate the JS.
\r
406 #blockcomponent(UpdatePageTag)
\r
407 $page.el('products').style.bgcolor.set('"white"')
\r
411 #blockcomponent(UpdatePage)
\r
412 $page.el('products').style.bgcolor.set('"white"')
\r
415 - Added FormHelper.NumberField() which renders a 'input text' with a javascript that
\r
416 prevents chars other than numbers (and period) from being entered.
\r
418 You can optionally pass an <c>exceptions</c> value through the dictionary.
\r
419 It must be a comma separated list of chars that can be accepted on the field.
\r
421 - Added FormHelper scripts:
\r
423 View must use FormHelper.InstallScripts()
\r
425 - Refactored generation of script blocks
\r
427 - Created stub for UrlForHelper
\r
429 - Helpers are added with a less verbose name
\r
430 FormHelper and Form, AjaxHelper and Ajax are made available to the view
\r
432 - Added AuthenticatedContent ViewComponent that allows context to be
\r
433 render based on the user state (authenticated or anonymous)
\r
435 - Removed CompositeViewEngine as it's useless now that we support multiple view engines
\r
437 - Multiple view engine support:
\r
438 Configuration schema changed, see monorail_configuration_ref.txt for more information
\r
440 - Introduced IViewEngineManager that sits between the controller and the view engines
\r
441 deciding which view engine will be used output the contents
\r
443 - Applied patch by Luke Melia for MR-192:
\r
446 - Introduced IPaginatedPage.HasPage(), useful for Google-like pagination.
\r
448 - PaginationHelper.CreatePagination<T>() now accepts ICollection<T> as a parameter.
\r
450 - New method PaginationHelper.CreatePageLinkWithCurrentQueryString().
\r
451 Creates a page link, copying the current QueryString parameters as well.
\r
453 - Enhanced AbstractHelper.BuildQueryString to support multi-value query strings:
\r
454 IDictionary dict = new Hashtable();
\r
456 dict.Add("selectedItem", new int[] { 2, 4, 99 });
\r
457 string queryString = BuildQueryString(dict);
\r
458 // should result in: "id=5&selectedItem=2&selectedItem=4&selectedItem=99&"
\r
460 - FormHelper.Select() - applied patch from James Sapara allowing firstoptionvalue to be set to
\r
461 something other than null.
\r
463 - Restored property IsPostback checking (For use with WebFormViewEngine).
\r
465 - Restored support for passing additional arguments to a controller
\r
466 via Send and use a dictionary to supply that information.
\r
468 - Applied patch by Andrew Peters fixing MR-182
\r
469 "Adds FormTo and LinkToWithPost methods to HtmlHelper"
\r
472 "Url Tokenizer Bug at Turkish Culture Info"
\r
474 - Properly quote file/directory arguments in Pre/Post Build Events to accomodate
\r
476 Also added some missing files to TestSiteWindsor-vs2005 Project
\r
478 - Removed DetermineIfPostBack due to side effects when using a custom upload approach
\r
479 Also removed PreRequestHandler setting the session as it wasn't really necessary using
\r
480 this event for that. Moved to the handler.
\r
482 - Included abstract Filter class, just as a helper to implement filters
\r
483 with a better interface (instead of IFilter.Process)
\r
485 - Fixed MR-165 "DataBind doesn't bind NullableDateTime"
\r
488 "Scarfold record modification results exception Can't edit without
\r
489 the proper id when validation is failed in the defined validation rule"
\r
492 "ValidateEmail attribute does not work properly in Monorail Scarfold"
\r
494 - Introduced CacheAttribute which can be used on actions to configure
\r
495 the underlying HttpCachePolicy
\r
497 - Modified WizardActionProvider to use ControllerLifecycleExecutor
\r
499 - Modified EngineContextModule a MonoRailHttpHandler to use ControllerLifecycleExecutor
\r
501 - Refactored controller. Extracted process to ControllerLifecycleExecutor
\r
503 - Changed ExecuteEnum.Always to include 'StartRequest'
\r
505 - Added Filter step: StartRequest
\r
507 This step runs on the ResolveRequestCache, and is suitable
\r
508 for authentication. However, a session will not be available.
\r
511 "IRequest/Controller must expose the Http method"
\r
513 Added the following properties to the Controller class:
\r
514 IsPost/IsGet/IsPut/IsHead
\r
516 - Fixed problem with view components reported by Ernst Naezer. The problem
\r
517 is that the view component were cached, and instances shared during
\r
518 template executions.
\r
520 - Introduced smtpPort, smtpUsername, smtpPassword configuration to <monorail> node
\r
522 - Introduced a PageSize property on the IPaginatedPage.
\r
525 Release Candidate 2
\r
526 ===================
\r
528 - Applied patch by Ivan Porto Carrero fixing MR-158
\r
529 "Validation throws errors when using group box."
\r
531 Quoting description:
\r
533 "When validating with the option of using a group box then the valdation routine throws an error.
\r
534 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
536 "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
537 For this I added 2 properties to the config of the validation library.
\r
538 The first property is boxErrorHeadingClass and the second one is errorSelectorCssClass
\r
540 "In the core script I added 5 lines or so to add this functionality. "
\r
542 - Applied patch by Nick Hemsley fixing MR-157
\r
543 "add fromNameValueCollection method for creating IDictionary instances from (i.e.) Context.Params, or Request.QueryString"
\r
545 Method was renamed to FromNameValueCollection
\r
547 - Introduced ARPagination.CreatePagination<T>(SimpleQuery<T>). Looks like it can be
\r
548 extended later for the non-generic SimpleQuery.
\r
550 - Made all Helpers that install javascript code use the same signature Helper.InstallScripts(). Should we mandate an interface?
\r
552 - Fixed the GenerateJSProxy(string proxyName, string controller), which was passing a null areaName;
\r
554 - Fixed the conflict between the Array.reduce function of Prototype e fValidate scripts (MR-166).
\r
557 Release Candidate 1
\r
558 ===================
\r
560 - ARDataBinder was ovewriting ids on belongs to relations causing
\r
561 NHibernate to throw exception. Fixed and added test cases
\r
563 - Fixed binder problem (MR-161)
\r
565 - Fixed Perfomance issue with Brail and sub views due to cache key normalization issues.
\r
567 - Added logging to Brail, configured using the normal Castle's cofniguration mechansim
\r
569 - 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
571 - Started refactoring ARScaffold to rely on FormHelper
\r
573 - Small refactor on ARScaffold support to make it work with
\r
575 . The new Binder implementation
\r
577 - Changed MonoRailContainer to save the configuration. On mono
\r
578 a copy is created everytime the config is requested, leading a big problems
\r
581 "Cast exception with configuration"
\r
583 - Added two more events to ExtensionManager: Authorize and Authenticate.
\r
584 That allows authentication/authorization extensions to MonoRail that won't
\r
587 - Applied Jochen Grefe's patch fixing NVelocity-3
\r
588 "#include not working for nvelocity"
\r
590 - Another attempt to MR-152 "Error while initializing MonoRail services"
\r
592 Separated container implementation from module. But it's important that
\r
593 the module subscribe the events, so the container can delegate event invocations
\r
594 to the extension manager
\r
596 - Fixed MR-152 "Error while initializing MonoRail services"
\r
598 - Applied midas's patch fixing MR-113
\r
599 "change collected view name in assembly to lower"
\r
601 - Applied Don Morrison's patch fixing MR-150
\r
602 "Patch to fix problem with ARDataBinder and ARFetcher when dealing with joined subclasses."
\r
604 - Added support for null property handling in Brail.
\r
605 ${objMayBeNull.Name} -- will throw if null
\r
606 ${ IgnoreNull(objMayBeNull).Name } -- will return empty string when null
\r
608 -- Breaking change in Brail. Removed <? ?> as markers for code blocks. This was done to allow handling of xml processing instructions (<?xml ?> for instnace).
\r
609 Use <?brail ?> markers instead.
\r
611 - Applied Marc-André's patch fixing MR-149
\r
612 "[TestSupport] Verb not specified for Get request"
\r
614 - Applied Ernst Naezer's patch that fixes MR-95
\r
615 "Update ProtoType/Scriptaculous js libraries to latest version"
\r
617 Prototype library updated to version 1.5.0_rc1
\r
618 script.aculo.us updated to 1.6.4
\r
620 - Added watir tests for JS proxies (fixes MR-142 "Write test cases for AjaxHelper.GenerateJSProxy()")
\r
622 - Added watir tests for Ajax support
\r
624 - Changed Ajax helper to default to parameters:'value=' + value instead of parameters:value.
\r
625 This old way was causing null keys on the form dictionary and thus being ignored by
\r
629 "Apply Sean's suggestions"
\r
631 Component 'ChildContentComponent' introduced, plus a few test cases for it.
\r
634 "Seems Wizard Controller can't define Area"
\r
637 "Introduce the notion of conditions to WizardStepPage"
\r
639 Introduced IsPreConditionSatisfied to WizardStepPage
\r
642 "Add log support as discussed on the mailing list"
\r
644 - Added Logger property to Controller
\r
646 - Added more logging information to the request lifecycle
\r
648 - Logging support: Important services are now logging what they are doing.
\r
649 Verbose logging happens at Debug Level. Error level is used for exceptions
\r
651 - Refactored: The EngineContextModule was simplified. Now its duty is to
\r
652 instantiate the services and invoke the lifecycle methods. Each service uses
\r
653 its lifecycle methods to reference other services and obtain its configuration
\r
655 - Refactored: replaceable services were moved to Services namespace
\r
657 - Refactored: interfaces meant to be public were moved from Internal
\r
658 namespace to the root
\r
661 "PaginationHelper must support IList<T>"
\r
664 "FormHelper must be able to handle IList<T>"
\r
667 "Change node/section name from monoRail to monorail on configuration file"
\r
669 Now on the configuration, use <monorail> instead of <monoRail>
\r
671 - Included Test site for ActiveRecord support project, watir tests included
\r
673 - Refactored ARDataBinder to support HasMany and HasAndBelongsToMany
\r
675 - Applied Ernst Naezer <enix@ch10.shuis.tudelft.nl>'s patch fixing build
\r
677 - Introduced [AjaxAction] attribute. Any action marked with this attribute
\r
678 can be accessed on client-side scripting using a JavaScript proxy, like
\r
681 $ajaxHelper.getJavascriptFunctions()
\r
682 ## MANDATORY, must come before any call to generateJSProxy
\r
684 $ajaxHelper.generateJSProxy('thisController')
\r
685 ## will declare an object named "thisController", allowing access
\r
686 ## to all [AjaxAction]s on the current controller
\r
688 $ajaxHelper.generateJSProxy('util', 'lists', 'myLists')
\r
689 ## will declare an object named "myLists", allowing access
\r
690 ## to all [AjaxAction]s on the controller named 'lists', in the 'util' area
\r
692 Note that proxies can perform synchronous (blocking) or asynchronous (non-blocking) calls.
\r
693 For asynchronous calls, you must always supply a JavaScript function as an additional
\r
694 last parameter. When that parameter is absent, the proxy will perform a synchronous call.
\r
696 [AjaxAction] public void Sum(int num1, int num2) { RenderText(Convert.ToString(num1 + num2)); }
\r
700 // synchronous call
\r
701 $('result').value = myLists.sum($('num1').value, $('num2').value);
\r
705 // asynchronous call
\r
706 myLists.sum($('num1').value, $('num2').value, function(t) { $('result').value = t.responseText; });
\r
710 $('num1').value = the value of an input with id=num1
\r
711 $('num2').value = the value of an input with id=num2
\r
712 function(t) { ... } = the callback
\r
713 t.responseText = any text that the action could have rendered
\r
715 - Applied Marc-André's patch fixing MR-140
\r
716 "ARDataBindAttribute doesn't use the controller's DataBinder"
\r
718 - Updated AbstractServiceContainer to support adding/removing services.
\r
720 - MonoRails services now accept and IServiceContainer instead of an
\r
721 IServiceProvider to be able to add services if desired.
\r
723 - Small refactor of Controller to to accomodate passing action arguments.
\r
725 - Updated SmartDispatchController to utilize HttpRequest parameters when
\r
726 additional arguments are supplied via a Send.
\r
728 - Applied patch by Freyr Magnússon <freyr.magnusson@gmail.com> fixing MR-139
\r
729 "ExceptionChainingExtension doesn´t handle unhandled exceptions"
\r
731 Which also introduces a new feature:
\r
733 Controllers can request IExceptionProcessor through IServiceProvider
\r
734 and invoke the handlers to process an exception. For example:
\r
736 public void BuyMercedes()
\r
742 catch(Exception ex)
\r
744 IExceptionProcessor exProcessor = (IExceptionProcessor) ServiceProvider.GetService(typeof(IExceptionProcessor));
\r
745 exProcessor.ProcessException(ex);
\r
747 RenderView("CouldNotBuyMercedes");
\r
751 - Changed DataBinder behavior to return empty arrays, instead of null arrays,
\r
752 when the IBindingDataSourceNode is null
\r
754 - Applied patch by Bryan Brown fixing MR-138
\r
755 "patch to fix formhelper.LabelFor to use IDictionary"
\r
757 - Applied Freyr Magnússon's patch fixing MR-137
\r
758 "Databinding through DataBindAttribute does not register errors with SmartDispatcherController"
\r
760 - Applied peter dol's patch fixing MR-136
\r
761 "An overload for ButtonToRemote that accepts htmloptions"
\r
763 - WizardStepPage: added more redirect overloads to allow parameters to be
\r
766 - AR Support: Added support to deal with ICollection<T> containers
\r
768 - Applied Marc-Andre's patch fixing MR-133
\r
769 "TestSupport not working under Mono"
\r
771 - Removed PropertyBag.Clear() in Controller.cs to restore the ability to
\r
772 update the PropertyBag in filters.
\r
774 - Applied Colin Ramsay <castleproject-devel@happyandlost.co.uk> patch making
\r
775 the _selectedViewName field accessible through a public property.
\r
777 - Checked in changes to better support ASP.NET Views
\r
779 - Refactor FormHelper to use a common code to CheckboxList and Select.
\r
780 Added support mentioned in MR-130
\r
782 - Introduced CreateCheckboxList. See preliminary documentation at
\r
783 http://www.castleproject.org/index.php/MonoRail:FormHelper#CheckboxList
\r
785 - Applied Colin Ramsay <castleproject-devel@happyandlost.co.uk> patch adding more
\r
786 asserts to TestSupport.AbstractMRTestCase and refactored some other things
\r
788 - MR-125 testsupport doesn't handle posting to smart dispatcher controller
\r
789 Fixed by Andrei Shires <andrei@internetware.co.uk>
\r
791 - FormHelper: Now it can fill parameters with the values from the Request.Params
\r
793 - FormHelper: fixed Checkbox behavior with databinder by adding a hidden
\r
794 field with the same name but carrying the 'false' value. The false value
\r
795 can be overriden with a key 'falseValue' if you're working with a non-boolean
\r
799 FormHelper.CheckboxField("some.property")
\r
803 <input type="checkbox" id="some_property" name="some.property" value="true" />
\r
804 <input type="hidden" id="some_propertyH" name="some.property" value="false" />
\r
807 FormHelper.CheckboxField("acceptDisclaimer", %{trueValue = 'accept', hiddenValue = 'reject'})
\r
811 <input type="checkbox" id="acceptDisclaimer" name="acceptDisclaimer" value="accept" />
\r
812 <input type="hidden" id="acceptDisclaimerH" name="acceptDisclaimer" value="reject" />
\r
815 - Applied Ernst Naezer's patch to allow MR to throw a descriptive
\r
816 exception message when two helpers are registered using the same key
\r
818 - Added a hack to the WebFormsViewEngine to accomodate different behavior
\r
819 with respect to invoking PageParser.GetCompiledInstance on ASP.NET 2.0
\r
821 - Added support for defaultValue attribute to FormHelper, which specificy
\r
822 what the value should be if the target evaluates to null.
\r
824 - Added indexed properties support to FormHelper
\r
826 When the target is an array you can
\r
828 PropertyBag.Add("roles", Roles.FindAll());
\r
830 FormHelper.TextField("roles[0].Id")
\r
834 <input type="text" id="roles_0_Id" name="roles[0].Id" value="1" />
\r
836 The indexed property can be nested
\r
838 PropertyBag.Add("user", User.Find(1));
\r
840 FormHelper.TextField("user.roles[0].Id")
\r
842 <input type="text" id="user_roles_0_Id" name="user.roles[0].Id" value="1" />
\r
844 - Added RadioField(String target, object valueToSend, [IDictionary attributes]) to FormHelper
\r
846 The radio will be marked with checked="checked" if the value collected
\r
847 from the target matches the valueToSend parameter
\r
849 - Fixed RedirectToAction on WizardStepPage. Now it produces a correct action url.
\r
851 - Changed WizardStepPage.InternalRedirectToStep to simply RedirectToStep
\r
853 - Changed SmartDispatcherController.BuildMethodArguments. Now it tests if the conversion
\r
854 succeeded before setting the value on the array.
\r
856 - Introduced IWizardPageFactory on WindsorExtension, so a Wizard controller doesn't
\r
857 need to reference the IKernel directly
\r
859 - Some optimization on Redirect* methods on Controller class. Now they accept
\r
860 an IDictionary as a parameter specifier (in addition to NameValueCollection).
\r
862 - Refactored ControllerDescriptorBuilder (renamed to ControllerDescriptorProvider)
\r
863 to use child providers to obtain descriptor. Attributes are now descriptors builders
\r
864 and that allows one to come up with custom attributes like
\r
866 public class MyAttribute : Attribute, ILayoutDescriptorBuilder, IHelperDescriptorBuilder
\r
868 public LayoutDescriptor BuildLayoutDescriptor()
\r
870 return new LayoutDescriptor("mylayout");
\r
873 public HelperDescriptor[] BuildHelperDescriptors()
\r
875 return new HelperDescriptor[] { new HelperDescriptor(typeof(MyHelper)) };
\r
879 Kudos to Fabio by coming up with the idea.
\r
881 - ViewComponents: added subsection support
\r
883 (Using nvelocity as example)
\r
885 #blockcomponent(GridComponent)
\r
891 Showing record $startrecord to $total
\r
895 <td>$item.Name</td>
\r
899 <td>No records found</td>
\r
903 On the code you can use
\r
905 public override bool SupportsSection(String name)
\r
907 return name == "header" || name == "item" || name == "footer" ||
\r
911 public override void Render()
\r
913 ICollection source = (ICollection) ComponentParams["source"];
\r
917 Context.RenderSection("header");
\r
919 if (source != null && source.Count != 0)
\r
921 foreach(object item in source)
\r
923 PropertyBag["item"] = item;
\r
925 RenderText("<tr>");
\r
927 Context.RenderSection("item");
\r
929 RenderText("</tr>");
\r
934 RenderText("<tr>");
\r
935 Context.RenderSection("empty");
\r
936 RenderText("</tr>");
\r
939 Context.RenderSection("footer");
\r
944 - ViewComponent on NVelocity: added to support to interpolation on component parameters.
\r
950 PropertyBag.Add("customers", Customer.FindAll());
\r
955 #blockcomponent(GridComponent with "source=$customers")
\r
959 ViewComponent code:
\r
961 public override void Render()
\r
963 IList items = (IList) ComponentParams["source"];
\r
965 foreach(object item in items)
\r
967 Context.ContextVars["item"] = item;
\r
968 // Do something like rendering the body
\r
972 - Configuration changed:
\r
974 . Added <cacheprovider> node
\r
975 . Added <additionalSources> node under <viewEngine>
\r
980 <cacheProvider type="my custom implementation"/>
\r
982 <viewEngine viewPathRoot="views" customEngine="Castle.MonoRail.Framework.Views.NVelocity.NVelocityViewEngine, Castle.MonoRail.Framework.Views.NVelocity">
\r
983 <additionalSources>
\r
984 <assembly name="MyAssembly" namespace="My.Assembly" />
\r
985 </additionalSources>
\r
989 - IViewEngine refactored to use the IViewSourceLoader to locate views
\r
991 - Introduced IViewSourceLoader and IViewSource. The former represents an approach to load
\r
992 views. The default implementation is FileAssemblyViewSourceLoader which first look ups
\r
993 the file system then the configured assemblies for the specified view
\r
995 - ICacheProvider service introduced (available on IServiceProvider implementation).
\r
996 Two implementations available:
\r
998 . DefaultCacheProvider which uses the HttpContext.Cache
\r
999 . WeakReferenceCacheProvider which uses a hashtable with WeakReferences as entries
\r
1001 - Warning about Nullables and SmartDispatcher arguments. The behavior has changed a
\r
1004 . In the past, if the value for a nullable was not present, that was accepted and
\r
1005 the nullable was initialized with HasData=false
\r
1006 . Now the value mustn't be present, but the entry must be present
\r
1010 Controller Action:
\r
1012 public void Transfer(NullableDouble amount)
\r
1017 If you invoke it with Controller/Transfer.rails you'll get an exception
\r
1019 If you invoke it with Controller/Transfer.rails?amount= then it's ok
\r
1021 If you invoke it with Controller/Transfer.rails?amount=10 is obviously ok too.
\r
1023 - Removed Obsolete members of ExecuteEnum. If you were using
\r
1025 . ExecuteEnum.Before, change to ExecuteEnum.BeforeAction
\r
1026 . ExecuteEnum.After, change to ExecuteEnum.AfterAction or ExecuteEnum.AfterRendering
\r
1027 . ExecuteEnum.Around, change to ExecuteEnum.Always or combine the flags
\r
1029 - Refactored DefaultRailsEngineContext and EngineContextModule. Now EngineContextModule
\r
1030 is also a ServiceContainer. When a DefaultRailsEngineContext is created we pass
\r
1031 the EngineContextModule as a parent container.
\r
1033 This saves us some cycles of registering
\r
1034 the services on every single DefaultRailsEngineContext instance.
\r
1036 - Added attribute 'checkClientIsConnected' to monoRail configuration check. If
\r
1037 'true' the controller class will always check IsClientConnected on
\r
1039 - InternalSend (beginning)
\r
1040 - Before Staring filter process
\r
1041 - Before invoking the view engine
\r
1043 The default value is 'false'
\r
1047 - Removed AutoLoadUnlessKeyIs and NullIfKeyIs from ARDataBinder. Added enum
\r
1048 AutoLoadBehavior to replace them:
\r
1050 AutoLoadBehavior.Never (default): Means that no autoload should be perform on the target
\r
1051 type nor on nested types.
\r
1053 AutoLoadBehavior.Always: Means that autoload should be used for the target type
\r
1054 and the nested types (if present). This demands that the primary key be present on the http request
\r
1056 AutoLoadBehavior.NewInstanceIfInvalidKey: Means that we should autoload, but if the key is
\r
1057 invalid, like null, 0 or an empty string, then just create a new instance of the target type.
\r
1059 AutoLoadBehavior.NullIfInvalidKey: Means that we should autoload, but if the key is
\r
1060 invalid, like null, 0 or an empty string, then just return null
\r
1062 - Added support for AccessibleThrough(Verb.Post, or Verb.Get) to restrict the type of access a controller action requires.
\r
1064 - Added suport for InPlaceRenderView for Brail
\r
1066 - Added <? ?> tags for Brail, to match the php style.
\r
1068 - Added RemoveCookie() method to IResponse
\r
1070 - Fixed a bug in Brail's ViewComponents, where a parameter was search using case sensitive search.
\r
1072 - 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
1074 - Updated boo binaries, should fix the problems with the build on machines with only one framework installed.
\r
1076 - Fixed a bug in Brail where a new line was required before a method call was recognized
\r
1078 - Added support for optional parameters in Brail, using the syntax ?foo will return null if the value was not set (instead of throwing.)
\r
1080 - Fixed a bug where Brail would throw on Empty Views.
\r
1082 - Added support for AutoLoadUnlessKeyIs in ARDataBinder - will load the object unless the key is a specific value
\r
1083 Usages: public void Save([ARDataBinder(AutoLoadUnlessKeyIs=0)] User user)
\r
1085 - Added checks for null id when doing data binding.
\r
1087 - 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
1089 - Added support for <?brail ?> tags for Brail, so it can be valid XML documents
\r
1091 - Added logging for Brail, so you can see the Boo code the preprocessor is generating.
\r
1093 - Added more verbose output to compiler errors in Brail.
\r
1095 - 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
1097 - Fixed a bug with Brail not picking up changes that occured by VS.Net
\r
1099 - 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
1101 - MonoRail is now CLSCompliant (kudos to Roelof Blom <roelof.blom@gmail.com>)
\r
1103 - Breaking change: now MonoRail requires that you add the following module to web.config:
\r
1107 <add name="monorail" type="Castle.MonoRail.Framework.EngineContextModule, Castle.MonoRail.Framework" />
\r
1111 - Configuration nodes and attributes changes:
\r
1112 - mailto to mailTo
\r
1113 - mailfrom to mailFrom
\r
1114 - customsession to customSession
\r
1116 - SmartViewComponent removed
\r
1118 - DataBinder refactored out. Now implementation lies on Castle.Components.Binder
\r
1119 + Big performance improvement
\r
1121 - ARDataBinder now issues a FindByPK for nested objects if the keys differs (existing object with
\r
1124 - SmartDispatcherController: now there's no hardcode reference to DataBind, ARDataBind or ARFetch attributes.
\r
1125 They only must implement the interface IParameterBinding. This opens an interesting extension point
\r
1126 for users willing to create their own logic to binding form/querystring parameters to their data components
\r
1128 - Controller: Added RedirectToAction(String action, params String[] queryStringParameters)
\r
1129 example: RedirectToAction("edit", "id=" + id, "error=couldn't update the row");
\r
1131 - Added FlashBinderAttribute (being evaluated)
\r
1133 - Added FormHelper (being evaluated)
\r
1135 - Added CaptureFor component
\r
1137 - Renamed ARPager splitted into ARPaginationHelper and ARPager
\r
1139 - ARDataBinder is now able to deal with HasAndBelongsToMany relations.
\r
1140 This works in two ways. Suppose you have a Product class with a relation HasAndBelongsToMany to Category.
\r
1142 If you send the following fields from a form:
\r
1144 product.categories.id=1
\r
1145 product.categories.id=2
\r
1147 ARDataBinder will ignore the AutoLoad property and always populate the Categories
\r
1148 collection on the product class with the result of FindByPrimaryKey of the categories.
\r
1149 Any other field will be ignored, for example product.categories.name will not be bound
\r
1151 However, if you send the values like
\r
1153 product.categories[0].id=1
\r
1154 product.categories[1].id=2
\r
1156 Then ARDataBinder will use the usual path, not ignoring the AutoLoad.
\r
1158 This behavior is being evaluated.
\r
1160 - Removed AbstractExtension
\r
1162 - Extension now uses events (See ExtensionManager)
\r
1164 - Interface IMonoRailExtension changed (has only Init method now)
\r
1166 - Refactored IParameterBinder in order to make it participate on calculations points.
\r
1168 - Introduced WindsorMonoRailSectionHandler which has the support for statements similar to those supported
\r
1169 by windsor's XmlInterpreter
\r
1171 - Added ARDataBindAttribute.NullWhenPrimaryKey which forces the databinder to
\r
1172 ignore and do not load a record if the retrieved PK has the value assigned to this
\r
1173 property (kudos to Roelof Blom <roelof.blom@gmail.com>)
\r
1180 - Fixed Flash (it now persists the new entries between requests) (by Ahmed)
\r
1182 - Added FilterAttribute.ExecutionOrder, the default value is Int32.MaxValue
\r
1183 so the less the value higher will be the filter priority
\r
1185 - Added Controller.RedirectToAction(String actionName)
\r
1187 - Added Controller.RedirectToAction overloads (by Fabio Batista)
\r
1189 - Controller.Redirect(String) is now virtual, and it's called by all Redirect* methods (by Fabio Batista)
\r
1191 - Moved action collection to ControllerMetaDescriptor class, using new method that does not require ScreenCommonPublicMethods.
\r
1193 - Moved ControllerDescriptorBuilder creation to ProcessEngineFactory to ensure ControllerDescriptors are only created once
\r
1195 - ITrace and Trace property added to IRailsEngineContext (kudos to Chad Humphries)
\r
1197 - Hierarchy of areas support (kudos to Fabio Batista)
\r
1199 - Support for [Layout] attribute on Actions, so actions can override
\r
1200 the Controller's specified layout (by Fabio Batista, rev 1459)
\r
1202 - PaginationHelper introduced: paginates objects that implements IList, and supports caching.
\r
1204 - ARPager introduced: allows you to specify a custom NHibernate HQL Query or an NHibernate Criteria
\r
1205 (using Expression.Eq, à là ActiveRecord's FindAll()) and fetch the results with pagination.
\r
1206 (by Fabio Batista)
\r
1208 - Added IServerUtility.JavaScriptEscape() (kudos to Chad Humphries)
\r
1210 - Added DataBindAttribute.Exclude - A comma separated list of property names
\r
1211 to exclude from databinding (kudos to Chad Humphries)
\r
1213 - Added IResponse.BinaryWrite() and CreateCookie( HttpCookie ) overload
\r
1215 - Added IServerUtility.MapPath()
\r
1217 - Added IRailsContext.ApplicationPhysicalPath
\r
1219 - Added to HtmlHelper:
\r
1224 - Form(action, attribtes) overload
\r
1226 - Added more fine-grained support for ExecuteEnum in Filters (by Fabio Batista, rev 1286-1287)
\r
1228 The values are now: BeforeAction, AfterAction, AfterRendering and Always.
\r
1230 - Support for nullable types in SmartDispatcherController, useful for
\r
1231 detecting missing ValueType parameters. Works with Nullables library, still
\r
1232 not working on .NET 2.0 Nullables (by Fabio Batista, rev 1297 and 1363)
\r
1237 public void CreateTicket(string name, NullableDateTime date, NullableInt32 priority)
\r
1239 if (name == null || name.Length == 0) throw new MissingFieldException();
\r
1240 if (!date.HasValue) throw new MissingFieldException();
\r
1241 if (!priority.HasValue) throw new MissingFieldException();
\r
1244 // .NET 2.0 (NOT WORKING YET)
\r
1245 public void CreateTicket(string name, DateTime? date, int? priority)
\r
1247 if (name == null || name.Length == 0) throw new MissingFieldException();
\r
1248 if (!date.HasValue) throw new MissingFieldException();
\r
1249 if (!priority.HasValue) throw new MissingFieldException();
\r
1252 - Broaded support for Enums. They can be specified by number or by text (by Fabio Batista, rev 1203)
\r
1254 public enum MyEnum {
\r
1259 <input type="hidden" name="myEnumValue" value="1" />
\r
1260 <input type="hidden" name="myOtherEnumValue" value="seCoNd" />
\r
1262 public void TestEnumValues(MyEnum myEnumValue, MyEnum myOtherEnumValue)
\r
1264 if (myEnumValue == MyEnum.First) // ok
\r
1265 if (myOtherEnumValue == MyEnum.Second) // ok
\r
1268 - Support for ActiveRecord fetching in Castle.MonoRail.ActiveRecordSupport
\r
1269 (by Fabio Batista, rev. 1380).
\r
1271 Mainly for those unconfortable with direct binding of form values
\r
1272 to ActiveRecord objects. This attribute only fetches the ActiveRecord based
\r
1273 on its Primary Key, nothing more.
\r
1277 public class MyCrudExample : ARSmartDispatchController
\r
1280 public void Save( [ARFetch] Example example, string name, ...)
\r
1282 example.Name = name;
\r
1288 // using a different request parameter, instead of the action's parameter name
\r
1289 public void Save( [ARFetch("primaryKey")] Example example, string name, ...)
\r
1291 example.Name = name;
\r
1297 // ignoring invalid primary keys
\r
1298 public void Save( [ARFetch(Require=false)] Example example, string name, ...)
\r
1300 example.Name = name;
\r
1306 // not creating new records automatically, when the parameter is empty or null
\r
1307 public void Save( [ARFetch(Create=false)] Example example, string name, ...)
\r
1309 if (example == null)
\r
1310 example = new Example(someRequiredConstructorParameter);
\r
1312 example.Name = name;
\r
1318 // fetching a list of Active Records
\r
1319 public void Delete( [ARFetch("selected")] Example[] examples )
\r
1321 foreach (Example example in examples)
\r
1326 - Support for smart arrays (aside from primitives) (kudos do Ahmed)
\r
1328 Quoting the explanation:
\r
1330 Suppose you have this class:
\r
1335 public string Name {get;set;}
\r
1337 public int Age {get;set;}
\r
1340 With the following view
\r
1342 <input name="Person[0].Name" value="John">
\r
1343 <input name="Person[0].Age" value="30">
\r
1344 <input name="Person[1].Name" value="Mary">
\r
1345 <input name="Person[1].Age" value="25">
\r
1347 Now you can specify the DataBinderAttribute to an array element in your controller:
\r
1349 public void SavePeople( [DataBinder(Prefix=”People”)] Person[] people )
\r
1351 // you should be able to access the people as an Person array
\r
1353 Assert.IsTrue( people[0].Name == “John” );
\r
1354 Assert.IsTrue( people[1].Name == “Mary” );
\r
1357 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
1359 <input name="Person[0].Name" value="John">
\r
1360 <input name="Person[0].Age" value="30">
\r
1361 <input name="Person[0]@ignore" value="yes">
\r
1362 <input name="Person[1].Name" value="Mary">
\r
1363 <input name="Person[1].Age" value="25">
\r
1365 In the previous html code, the people array in the controller will only have one element (Mary).
\r
1367 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
1369 The count attribute serves as a performance optimization when your elements are keyed using sequential integers, for example:
\r
1371 <input name="Person@count" value="5">
\r
1372 <input name="Person[0].Name" value="John">
\r
1373 <input name="Person[1].Name" value="James">
\r
1374 <input name="Person[2].Name" value="Jeff">
\r
1375 <input name="Person[3].Name" value="Geoff">
\r
1376 <input name="Person[4].Name" value="Jeffrey">
\r
1380 - AjaxHelper2 renamed to AjaxHelper. The old one was renamed to AjaxHelperOld
\r
1382 - Two more callbacks supported: onSuccess and onFailure. For example
\r
1384 $AjaxHelper.BuildFormRemoteTag( $DictHelper.CreateDict("url=something.rails", "OnSuccess=myjavascriptfunction();", "OnFailure=otherfunction(request)" ) );
\r
1386 Do not confuse it with 'success' and 'failure' keys, though. Those means the id of elements
\r
1387 to be updated in the event of success and failure.
\r
1390 ** NVelocity View Engine **
\r
1392 - Added support for global macros. Every *.vm file which is placed in the Views/macros directory
\r
1393 will be scanned for macros (by Fabio Batista, rev. 1374)
\r
1395 ** Brail View Engine **
\r
1397 - Upgraded to use Boo 0.75, should solve the problem that Brail had with breaking tests.
\r
1399 ** Scaffolding support **
\r
1401 - huge refactoring
\r
1402 - It's now using templates
\r
1405 ** Test support **
\r
1407 - Introduced Castle.MonoRail.TestSupport
\r
1412 MR-68 PreSendView is not being invoked by NVelocityViewEngine
\r
1413 http://support.castleproject.org/jira/browse/MR-68
\r
1414 MR-66 DataBinder and ConvertUtils should support TypeConverters
\r
1415 http://support.castleproject.org/jira/browse/MR-66
\r
1416 MR-64 DataBinder.Convert should support decimal
\r
1417 http://support.castleproject.org/jira/browse/MR-64
\r
1418 MR-58 AbstractHelper generates invalid XHTML
\r
1419 http://support.castleproject.org/jira/browse/MR-58
\r
1420 MR-57 Wrong urls are crashing UrlTokenizer
\r
1421 http://support.castleproject.org/jira/browse/MR-57
\r
1422 MR-52 Support for real Flash feature
\r
1423 http://support.castleproject.org/jira/browse/MR-52
\r
1424 MR-49 Remove public properties from the list of available actions (Controller.cs)
\r
1425 http://support.castleproject.org/jira/browse/MR-49
\r
1426 MR-30 MR should not accept incorrect urls
\r
1427 http://support.castleproject.org/jira/browse/MR-30
\r
1433 - Added useWindsorIntegration attribute to monoRail configuration section
\r
1439 - Initial Scaffolding support
\r
1441 - Localization support
\r
1442 - More helpers and improvements
\r
1448 - Few bug corrections
\r
1449 - Applied patch from Dru Sellers: NVelocityViewEngine adds a $siteRoot exposing the Request.ApplicationPath
\r