Currently component referencing with the JSF API is very limited.
Keywords can currently only be used with f:ajax and not for e.g. outputLabel "for" attribute.
Also keywords cant be combined and we dont even have many keywords.
For PrimeFaces, i created a small modular API to enhance the search alogorithm as you can read here:
Noteable features are:
- keywords can be used for all components
- combinable keywords like @composite:@parent or @form:myId
- currently a (limited) pluggable framework to allow new keywords for endusers
For the JSF API, a new artifact for resolving expression for findComponent (like ViewHandler etc.) would be great and can easily be enhanced by component libraries.
Maybe something like "ComponentExpressionResolver".
If its somehow possible, i would like to help to create and finalyze the API.
Sorry for Issue 1237 - please close it.