Sorry, the last e-mail was sent by accident

So.. I changed all my component classes to

    [ViewComponentDetailsAttribute("Produto")]
    public class Produto : ViewComponent

And I still getting the same error message, that the component was not
located...

Do you have an example of the newest way to code an ViewComponent??

Thanks

Att.
Leonardo Lima



2011/11/11 Leonardo Lima <[email protected]>:
> Hey,
>
> Hi again, I finished now a new Test...
> I added
>
>    <viewcomponents>
>      <assembly>MyProject</assembly>
>    </viewcomponents>
>
> And I added on all my Component classes:
>
>
>
> Leonardo
>
>
>
> 2011/11/10 Leonardo Lima <[email protected]>:
>> Hi Ricardo,
>>
>> I tried this config. but still the same error, there anyother
>> configuration that must be done on the Component class?
>> My Custom ViewComponents are placed on the same Assembly than the
>> Controllers, there is any problem???
>>
>> Tomorrow I will try run this code again, cause now I´m not on office :D
>>
>> Thanks,
>>
>> Leonardo Lima
>>
>>
>>
>> 2011/11/10 Ricardo Borges <[email protected]>:
>>> It seems you didn't use the Windsor container integration, right?
>>>
>>> But, you still need to configure the default MR container:
>>>
>>> http://www.castleproject.org/monorail/documentation/v20/manual/configurationref.html
>>>
>>>     <controllers>
>>>         <assembly>AssemblyName1</assembly>
>>>         <assembly>AssemblyName2</assembly>
>>>     </controllers>
>>>
>>>     <viewcomponents>
>>>         <assembly>AssemblyName1</assembly>
>>>         <assembly>AssemblyName2</assembly>
>>>     </viewcomponents>
>>>
>>> []'s,
>>>
>>> Ricardo Borges
>>>
>>> 2011/11/10 Leonardo Lima <[email protected]>
>>>>
>>>> Hi all,
>>>>
>>>> After long time, I´m upgrading my App to the newest Monorail, but I´m
>>>> facing a problem,
>>>>
>>>> After change all the DLL´s and fix the errors from upgrade I got the
>>>> following message
>>>>
>>>> ViewComponent 'BarraFerramenta' could not be found. Was it registered?
>>>> If you have enabled Windsor Integration, then it's likely that you
>>>> have forgot to register the view component as a Windsor component. If
>>>> you are sure you did it, then make sure the name used is the component
>>>> id or the key passed to ViewComponentDetailsAttribute
>>>>
>>>> In my View file I´ve this (I´m using NVelocity)
>>>>
>>>> #component(BarraFerramenta with "itens=Meu Cadastro e
>>>>
>>>> Pedidos,$siteroot/$LinkHelper.MakeUrl($Loja.Id.toString(),'seguro/myinfo','null')")
>>>>
>>>> In my web.config I´ve this
>>>>
>>>>  <configSections>
>>>>    <section name="monorail"
>>>> type="Castle.MonoRail.Framework.Configuration.MonoRailSectionHandler,
>>>> Castle.MonoRail.Framework"/>
>>>>    <section name="hibernate-configuration"
>>>> type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate"/>
>>>>  </configSections>
>>>>  <monorail useWindsorIntegration="false">
>>>>    <controllers>
>>>>      <assembly>Expressa.B2C</assembly>
>>>>    </controllers>
>>>>    <viewEngine viewPathRoot="Views"
>>>>
>>>> customEngine="Castle.MonoRail.Framework.Views.NVelocity.NVelocityViewEngine,
>>>> Castle.MonoRail.Framework.Views.NVelocity"/>
>>>> </monorail>
>>>>
>>>> I really don´t know  how to solve this, so anyone can give me a clue ?
>>>>
>>>>
>>>> My best regards,
>>>> Leonardo Lima
>>>>
>>>> --
>>>> 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.
>>>>
>>>
>>>
>>>
>>> --
>>> Ricardo
>>>
>>> --
>>> 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.
>>>
>>
>

-- 
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