I can't really understand what I'm doing wrong..
I have a drop-down menu and I want to iterate over a list of elements.
The list is read correctly and when I run the application I can even see the right options for the menu listed using "Inspect Element" from Firefox Browser...but why can't I access the selection rectangle? And it doesn't show anything. When I click on it, it's not possible to choose anything.
this is the code for the selection in the jsp:
<form:select path="list" class="selectpicker" multiple="true" data-max-options="4">
<form:options items="${av_list}"/>
</form:select>
Where list is the object that has to be "filled" with the selection. Any help is appreciated.
<form:options items="${av_list}"/>
The template literal should be surrounded by backticks instead of quotes. Like this:
<form:options items=`${av_list}`/>
I wish I could tell you exactly why that causes the symptom you were seeing, but I cannot. Maybe someone brighter than me can comment regarding that.