Hi All,

For the advanced version of the required label add-on, I would like to have
some initialisation parameters in web.xml so that the developer could
customize the add-on.

To my knowledge, there isn't any add-on for the moment that have such
initialisation parameters.  So I would like to have the opinion of others
about the 'namespace' we could use for it.

I see 3 possible options:
1) Use the 'org.apache.myfaces.extensions.validator' prefix like the
parameters for the core/validation modules. (example :
org.apache.myfaces.extensions.validator.CUSTOM_MESSAGE_BUNDLE)
This could maybe confusing as it isn't used by the core/validation modules.

2) Use a prefix that clearly indicate that it is related to the add-ons like
'org.apache.myfaces.extensions.validator.addon.label' (example
org.apache.myfaces.extensions.validator.addon.label.REQUIRED_MARKER)
In this case there will be a mismatch between java classes packages and the
initialisation parameter prefix. But on the other hand, it clearly indicates
what the intention is.

3) Since add-ons code isn't placed in the
org.apache.myfaces.extensions.validator package, we could use the package
structure 'at.gp.web.jsf.extval.label' (or whatever the main package of the
add-on is in)
But in this option we loose the information that it is related to ExtVal.


I prefer option 2.

Although we can't force the usage of such a prefix to anyone who writes an
add-on, The add-ons written by the Myfaces group could use some standard.

Let me know your ideas/thoughts.

Regards
Rudy.

Reply via email to