This bug was incorrectly created as an AlloyUI bug, so I'm creating its equivalent on portal side and closing the AUI ticket. I'm not sure if this is still an issue, but thought it's best to open this anyway just to guarantee.
Below follows the original text of the bug:
I am attempting to add a "verify e-mail address" field to Liferay's account creation form (html/portlet/login/create_account.jsp). To do so, I added another aui:input tag under the existing e-mail field as follows:
The field shows up correctly but the generated HTML is as follows:
Notice that while the <label> tag has the correct "for" attribute, the actual <input> tag does not take the desired value of the ID attribute and remains "emailAddress" instead of "emailAddressVerify".
It seems like page.jsp in the liferay-ui:input_field taglib is responsible, as it has the following line:
Notice that the id and name are both set to the same "fieldParam" value.
Edit: Downgrading to Minor since I can work around the issue by specifying the "fieldParam" attribute in the aui:input tag. I'm not actually submitting the e-mail verification field so I don't know how this affects updating the model but it solves the problem for my use case.