Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webflows not detected from controllers #11

Open
shashank929 opened this issue Feb 17, 2017 · 0 comments
Open

webflows not detected from controllers #11

shashank929 opened this issue Feb 17, 2017 · 0 comments

Comments

@shashank929
Copy link

shashank929 commented Feb 17, 2017

we are facing one issue where all the flows are not registered in flowRegistry many times during server startup and it causes NoSuchFlowDefinitionException.
Upon debugging in detail, found that webflow plugin relies on the population of 'flows' property in controllerClasses to populate the flowRegistry:
https://github.com/grails-plugins/grails-webflow-plugin/blob/master/src/groovy/org/codehaus/groovy/grails/webflow/WebFlowPluginSupport.groovy#L116

Based on the debugging done, 'flows' is populated by 'controllers' grails plugin. Here:
https://github.com/jeffbrown/grails-core/blob/master/grails-plugin-controllers/src/main/groovy/org/codehaus/groovy/grails/plugins/web/ControllersGrailsPlugin.groovy#L199

if webflow plugin loads before controllers plugin then all the flows are not detected.

So if controllers is the only plugin which can populate the required data for webflow plugin, then webflow plugin should 'loadAfter' entry for 'controllers' plugin.

We are using grails version 2.4.3 and webflow version 2.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant