Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Use of a class in groovy script at Portal which is extended in code
So In my code base there is situate like class b is extending class and now I want to use method of class b in Groovy script at Portal -> Server Admin -> Script, How can I achieve this? Thanks in Advance
I think, you have to be more specific. Which class are you extending?
Can't you just create a new instance of "b" and invoke the method?
Can't you just create a new instance of "b" and invoke the method?
In my code base it is something like this class B extends class A{}, and now I want to use one method of class B but when I try to create an object it is giving me error like
groovy.lang.MissingPropertyException: No such property: className for class: Script1
I think, you need to post some minimal example that produces the error. The script and the Java code could be relevant.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™