Quiz
Test your understanding of what you’ve learned so far about authentication methods.
We'll cover the following...
Why do we add the attribute prependId="false" to the <h:form> tag?
When prependId="false" is set, the input field names in the submitted request retain their original names (e.g., j_xxx) instead of being prefixed with the form ID (e.g., login.j_xxx). This is required by some specifications that expect field names like j_xxx.
If you need the input field names in the submitted request to have a prefix (e.g., login.j_xxx), you would not set prependId="false".
With prependId="false", the input field names will not become j_xxx.login; this is not the typical form used for specification compliance.
h:form.j_xxx is not the expected field name format for the specification; setting prependId="false" prevents that prefix from being added.