-
Notifications
You must be signed in to change notification settings - Fork 25
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
Issue when using the plugin in a scaffolded view #2
Comments
Absolutely no idea. I've never seen this. |
Have you been able to reproduce it or is something that is unique to my setup? On 12.05.2012, at 22:27, Sebastien Arbogast
|
I have been able to fix this issue by explicitly adding the plugin name to each render call.
Since I got an IllegalArgumentException, and not a GrailsTagException, the code in the Catch-Clause was ignored. But anyway, this is not a real solution :/ I don't know why I have to add it manually. |
This must come from the code I'm using to let users override plugin templates with their own. try {
renderedList = render(template: "/bootstrapFileUpload/list", model: [filesContainer: filesContainer]).toString()
} catch (GrailsTagException exc) {
renderedList = render(template: "/bootstrapFileUpload/list", model: [filesContainer: filesContainer], plugin: 'bootstrap-file-upload').toString()
} I'm using some sort of trick to detect whether the template is overridden in the application. It's not very clean and it's probably what's causing your problem, but I don't see how to work around it. |
We could add a second Catch clause for IllegalArgumentExceptions as a work around, but I have not found out yet, what's causing the exception. |
@sarbogast I needed to add plugin: 'bootstrap-file-upload' to all render calls in order to get this to work. Tested under Grails 2.0.4 and 2.1 with exact same results. |
The same for 2.2.3 |
Hi,
thanks for the great plugin! I am getting the following stacktrace, when I am calling the tag in a scaffolded view. When I call it in an ordinary view, everything works fine.
I put the following line into /templats/scaffolding/show.gsp
which results in:
Any idea what can cause this issue?
The text was updated successfully, but these errors were encountered: