Component.getPrefix

Returns the component prefix.

When nested components are used, a Component object exists for each unique prefix. For example, if component COMP1 is inserted into component COMP2 which in turn is inserted into a form, two Component objects will exist with prefixes something like:

  • ACOMP1__BCOMP2
  • ACOMP1
The Component object with prefix ACOMP1__BCOMP2 contains only the elements in component COMP2, whereas the Component object with prefix ACOMP1 contains all the elements in component COMP1 including those from COMP2.

returns java.lang.String