Announcement Announcement Module
Collapse
No announcement yet.
Custom Scope in Webflow App Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Custom Scope in Webflow App

    How do we register a custom Scope object in a webflow app? Appreciate any help on this.
    Thanks,
    Basheer.

  • #2
    Ok, I figured out this myself.
    I added a bean creation definition in the web-application-context.xml, as shown below:

    <bean name="myScopeRegistrar" class="gov.ncdot.demo.config.MyScopeRegistrar"/>

    But, when I tried to accomplish the same using java config annotations as shown below, it did not work:

    @Configuration
    public class MyConfig
    {
    @Bean
    public MyScopeRegistrar scopeRegistrar()
    {
    return new MyScopeRegistrar();
    }
    }

    Any insight into this is greatly appreciated.
    Thanks,
    Basheer.

    Comment

    Working...
    X