Simple question I hope..I have my java class where a value is set to 3:
private static final Integer MAX_LANGUAGES = 3;
Could you give me an example how to make a composite attribute that will specify the maximum number of languages a user can select. It is now stored in the class but I would like it to be more flexible, because the class shouldnt depend on that number.
Are your talking about
composite components?If so, you can use the
composite:attributetag to add an attribute to your component.E.g:
You can also attach a real java model to it with the
componentTypeattribute ofcomposite:interfaceand access it properties withcc.propertyName