Dear members,
I'm really interested in the grails plugin of ModalBox and I've been testing the plugin but I couldn't get it to work.
Can any one please give me an example/source code.
Thanks.
Here is what I tried.
In BuildConfig.groovy, I have
}
Then I run
grails refresh-dependencies
The plugin is installed in this stage.
My Controller
package test
class MbController {
def index() {
render(view:'show')
}
def mypopup() {
render(view:'mypopup')
}
}
show.gsp
<g:javascript library="application" />
<modalbox:modalIncludes />
<modalbox:createLink url="mypopup.gsp" title="Hello Grails!" width="600" linkname="This is the Link" />
mypopup.gsp
<%@ page contentType="text/html;charset=UTF-8" %>
Outputs
show.gsp
mypopup.gsp