All Questions
12 questions
0
votes
1
answer
437
views
How to restrict values in dropdown list?
I have a dropdown list in my JSP page,Which displays hourly slots for the user to book for certain operation.for ex: 11am - 12pm,12pm - 1pm,etc.Now i want to check the database for the booked slots ...
3
votes
1
answer
2k
views
How to I get the user selected value from a drop-down box and add it to the model? [duplicate]
I have a form where the user is creating a new exam and in the form the user selects a subject from a drop down menu. This drop down contains strings of subjects not actual subject objects. In my ...
1
vote
1
answer
17k
views
How do I get the selected value from a drop-down menu with Thymeleaf?
My user is adding an exam object which is then added to the subject object. Subject and exam have a one to many relationship.
The user is selecting the subject in the drop down menu.This menu contains ...
0
votes
1
answer
1k
views
Populate State dropdown based on the selection of country dropdown in java spring
In my controller I have written as follows to populate country list and state list:
@ModelAttribute("countries")
public List<Country> initializeCountries() {
List <Country> countries ...
2
votes
2
answers
5k
views
get Data from DB using Spring MVC to show in dropdown list like Country, state, city
I have 3 Drop Down list which are dependent on each other as Specific country contain Certain States and those states contain specific City,
all These Country, state and City have a Service call to ...
0
votes
2
answers
2k
views
Thymeleaf + Spring form - How load persisted select box values from controller to view?
In this question regarding persisting select box elements I managed to work my way around and persisting the selected entity on the select menu by passing it's id to the controller and passing it to ...
2
votes
1
answer
4k
views
Thymeleaf + Spring MVC - How to persist values from a list or enum on a form?
I have a page that displays a list of sql connections. One of the fields in that table is the databaseType, which is defined in the enum:
public enum SqlDatabaseType {
NONE("None"),
MySQL("...
1
vote
3
answers
936
views
How to return the value of a JSP select box in Spring MVC?
I'm sending to my JSP a Map<String entityDescription, Entity entity> to populate a <form:select> that's defined as:
<form:form id="form" modelAttribute="pojo" action="create" method="...
0
votes
0
answers
589
views
How to Return data from database to dropdown menu using Spring
How to retrieve the data from database to dropdown menu on page load using spring...Is it possible?
When i click the dropdown box it has to show the namelist that is available in database.
3
votes
1
answer
6k
views
Thymeleaf <select> tag generating options (numbers)
I have a <select> tag in HTML and need to generate options from 1 to 53 and then pick one I'm sending with the doPost method.
I tried to use the solution I found here:
http://forum.thymeleaf....
0
votes
2
answers
452
views
Spring drop down not working
i am using spring mvc,
<form:select class="form-control" id ="cmsphyexamtesttype_cmsPhysicalExamCategory_id" path="cmsPhysicalExamCategory.id">
...
11
votes
3
answers
54k
views
How to populate dropdown box in Spring MVC
I have been trying to find out how to populate a dropdown box in Spring MVC. There are a few threads out there on this subject but none of them that I have found have helped me so I'm hoping someone ...