MR-294, Capturefor inside a brail subview wont populate on containing view/layout
commitd0d726a3c59133f9114937445e82b26cfc64b4db
authorayende <ayende@73e77b4c-caa6-f847-a29a-24ab75ae54b6>
Fri, 7 Dec 2007 18:30:02 +0000 (7 18:30 +0000)
committerayende <ayende@73e77b4c-caa6-f847-a29a-24ab75ae54b6>
Fri, 7 Dec 2007 18:30:02 +0000 (7 18:30 +0000)
treeff11738ad90e0c78729797361b4542a57651c46b
parentef1203d8194b92e52d92c99fd2c516f16d9d0f2e
MR-294, Capturefor inside a brail subview wont populate on containing view/layout
Fixed by adding parameter @bubbleUp to the CaptureFor component.
If you want to CaptureFor output to be visible on the parent page, you need to use this syntax:
<% component CaptureFor, {@id: "title", @bubbleUp: true}: %>
ayende
<% end %>

git-svn-id: https://svn.castleproject.org/svn/castle/trunk@4571 73e77b4c-caa6-f847-a29a-24ab75ae54b6
MonoRail/Castle.MonoRail.Framework/ViewComponents/CaptureFor.cs
MonoRail/Castle.MonoRail.Views.Brail.Tests/BrailBugsTestCase.cs
MonoRail/Castle.MonoRail.Views.Brail/BrailBase.cs
MonoRail/TestSiteBrail/Controllers/BugsController.cs
MonoRail/TestSiteBrail/TestSiteBrail-vs2005.csproj
MonoRail/TestSiteBrail/Views/bugs/MR_294_CaptureForInSubViewDoesNotPropogateUpward.brail [new file with mode: 0644]
MonoRail/TestSiteBrail/Views/bugs/UseCaptureFor.brail [new file with mode: 0644]