I would like to create a static (helper) function which will check if a given variable belongs to a set of predefined values. I want to use it as an EL function in order to reference it in a jsff file (via java's EL). The question is: how do I reference the custom function inside the JSFF since it is a page fragment and I cannot access the form templates which the fragment belongs to due to its compilation.
You can have an element from your jsff binded on this function by setting the function's class as the jsff scope in the adfc-config.xml in the "managed-bean" tab and the calling it as follow :
<af:outputText
id="pt1"
viewId="#{YOURSCOPE.YOURBEAN.YOURFUNCTION}"
You'll get a detailled how to in the documentation here : http://docs.oracle.com/cd/E17904_01/web.1111/b31974/web_getstarted.htm#ADFFD1746