There's an issue using the plugin with spring secutity
The earlier release of the plugin worked well grails.attachmentable.poster.evaluator = { getPrincipal() }
Now the same thing is throwing an error :
groovy.lang.MissingMethodException: No signature of method: org.codehaus.groovy.grails.plugins.springsecurity.GrailsUser.ident() is applicable for argument types: () values: []
Possible solutions: print(java.lang.Object), print(java.io.PrintWriter), identity(groovy.lang.Closure), inject(java.lang.Object, groovy.lang.Closure), wait(), every()
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
C
On Wed, Jan 5, 2011 at 9:49 AM, Goran Ehrsson
<[hidden email]> wrote:
Hi,
I have published a new release of the Attachmentable plugin,
developed by
Mihai Cazacu.
Version 0.2.0 adds the following features:
You can now add
static attachmentable = true
to your domain class instead of implementing a marker interface.
The script tag now accepts a "redirect" attribute
containing a URL to redirect to when file upload is finished.
The downloadLink tag now accepts an "inline" attribute
that will set Content-Disposition to "inline" to view the file
inside the browser.
A new icon tag will render an <img> tag with an
icon representing the attachment file type.
A new config option make it easy for searchable/lucene
to index your uploaded files.
How to make sure uploaded files are deleted when the owning
domain instance is deleted is now documented.
Documentation is updated.
http://www.grails.org/plugin/attachmentable
Feel free to submit questions or
comments.
/Göran Ehrsson
--
Regards,
U10C11