Hello Mauricio,

thanks for your answer, that the conclusion I grabbed while looking at
the tests and the stub viewcomponent context in test support.

It make perfect sense that viewcomponent sections are viewengine
specific, sections are a template related thing.

I'm unsure how well RegisterSection will behave in my component
because I'd try to register section for a manually instanciated
component.

I think the best thing for the problem I was hitting is to submit a
ticket to change some sealed bits in DiggStylePagination.

On Aug 20, 8:55 pm, Mauricio Scheffer <[email protected]>
wrote:
> I *think* (not sure at all, please someone correct me if I'm wrong)
> that it depends on the view engine being used. Each view engine has
> its own IViewComponentContext implementation with a different way of
> registering sections.
> For example, BrailViewComponentContext has a RegisterSection that
> registers Boo's ICallable.
> AspView's ViewComponentContext has a RegisterSection that registers a
> ViewComponentSectionRendereDelegate.
> And so on. So you could downcast the IViewEngineContext to the
> concrete implementation and call its specific RegisterSection.
>
> On Aug 20, 2:46 pm, Gauthier Segay <[email protected]> wrote:
>
>
>
> > In a custom viewcomponent, I'm using DiggStylePagination.
>
> > The custom viewcomponent is only made of code (no template rendering),
> > so I init an instance of the pager component and call render in my own
> > render method.
>
> > My problem is that I need to override the default prev/next sections,
> > but can't find a straight forward way to do so only from the code.
>
> > Any idea how to achieve this?
>
> > Thanks for your help
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to