Grails-Plugin-Consortium / grails-filterpane

Filterpane plugin for grails.
Apache License 2.0
16 stars 44 forks source link

No such property: prefix<Domainclassname><fieldname> for class: org.grails.core.DefaultGrailsDomainClassProperty at currentCriteria #79

Open FalkNisius opened 6 years ago

FalkNisius commented 6 years ago

filterpane version 3.08 grails version 3.2.10

I set the filter in the index method of the controller programmatically with per example

params.updateNestedKeys(["filter.op.organization.name": "Equal", "filter.organization.name": organization.name])

it works fine without the tag filterpane:currentCriteria. If I cut this gsp tag, show the index page, and put the gsp tag in, it works if the gsp is new compiled.

the cause is that in filterPaneTagLib line 935 the non exiting sp?."${prefixMethod}" would be tested in the if clause instead to sue standard groovy sp.metaClass.respondsTo(sp,"${prefixMethod}") what prevents the error.

can it be fixed?

or is there a better way to overwrite/add default filter.

By the way in this version always use of GrailsDomainBinder failed with: Could not find matching constructor for: org.grails.orm.hibernate.cfg.GrailsDomainBinder()