Details
Description
Using the Gricket plugin as described on the Grails plugin site doesn't work. Wicket cannot find it's html files.
Description - http://www.nabble.com/wicket-grails-plugin-doesn%27t-look-for-*.html-in-grails-app-views-td14136562.html:
The 0.3 wicket-grails doesn't seem to look for the wicket html files in the views directory. I get the exception wicket.markup.MarkupNotFoundException: Markup not found.
If I put the HelloWorld.html in either the project root, or web-app/WEB-INF/classes/ it finds it there ok.
I'll try and download the plugin from SVN and see if that's any different.
the hack proposed on GR's blog
http://graemerocher.blogspot.com/2007/05/grails-wicket-wonders-of-grails-plug-in.html
by SimonLei works:
hi, Antony Stubbs,
I encountered the same problem as you. And I find a dirty but quick way to
solve the problem. I modified the
$GRAILS_HOME/scripts/Package.groovy,
add lines:
fileset(dir:"${basedir}/grails-app/views") {
include(name:"*/*")
exclude(name:"*/.groovy")
}
at line 146, just below the lines copy files from src/java.
I have verified his hack works.
Is there a way for the plugin to hook into the build process? Or should grails itself be modified to include html files as specified?
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits
latest wicket plugin resolves these issues