From the com.day.cq.wcm.foundation.forms package, FormsHelper has a method called getOptions that returns the options for a form element. How does it know the options for a form from the request and the elementResouce?
Thanks!
Solved! Go to Solution.
Views
Replies
Total Likes
It gets a ValueMap from a Resource[1]. Check for optionsLoadPath if true adopt the return into string array. Otherwise get default values from options properties.
[1] http://dev.day.com/docs/en/cq/current/javadoc/org/apache/sling/api/resource/ResourceUtil.html
Views
Replies
Total Likes
It gets a ValueMap from a Resource[1]. Check for optionsLoadPath if true adopt the return into string array. Otherwise get default values from options properties.
[1] http://dev.day.com/docs/en/cq/current/javadoc/org/apache/sling/api/resource/ResourceUtil.html
Views
Replies
Total Likes
Thanks for the quick reply! I have successfully had optionsLoadPath pointing to a property which is a string array, but do you know how I can set optionsLoadPath to point to a script? Are there any examples of this?
Views
Replies
Total Likes
Views
Likes
Replies