Process to call an AttributeType's controller method?
Permalink
Brain Freeze. I've seen it before....
When you're trying to grab an attribute type value from outside the class it's best to discover the attribute type (by way of the key), then call the controller for that type, then call the methods that will get you that value.
What's the best approach on that?
When you're trying to grab an attribute type value from outside the class it's best to discover the attribute type (by way of the key), then call the controller for that type, then call the methods that will get you that value.
What's the best approach on that?
Apparently, if you pass a string value to the getValue() function of the AttributeValueObject, it will camelcase it and try to run the get{String}Value() function of your custom AttributeTypeController. I did have to rename my method to getCropValue(), but it worked like a charm. Here's a snippet that I used:
I hope someone else can use this thing; it was hairy trying to get down to it!