...
Code Block |
---|
<!-- Spring form tag will cause duplicate ids --> <form:select path="title" items="${titles}" /> <!-- when rendered might look something like this --> <select id="title" name="title"> <option value="Mr">Mr</option> <option value="Mrs">Mrs</option> <option value="Miss">Miss</option> </select> <!-- Instead specify a namespaced id --> <c:set var="n"><portlet:namespace /></c:set> <form:select id="${n}title" path="title" items="${titles}" /> |
Info | ||||
---|---|---|---|---|
| ||||