Grails

Gricket Plugin doesn't copy html files from views dir so is broken

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.0-RC3
  • Fix Version/s: 1.0.3
  • Component/s: Plugins
  • Labels:
    None
  • Testcase included:
    yes

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

Hide
Graeme Rocher added a comment -

latest wicket plugin resolves these issues

Show
Graeme Rocher added a comment - latest wicket plugin resolves these issues

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
2h
Original Estimate - 2 hours
Remaining:
2h
Remaining Estimate - 2 hours
Logged:
Not Specified
Time Spent - Not Specified