Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
181 views

The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid req

<div class="form-group"> <label for="landlordId">Landlord</label> <select class="form-control" id=&...
yohans shegaw's user avatar
0 votes
1 answer
454 views

Problem with passing objects from web form to Spring controller

I'm stuck with such problem: How can I pass an object from the web form to the Spring controller? (I'm also using Hibernate and Thymeleaf) I made everything like it is done here: POSTing data with ...
Isengrym's user avatar
-1 votes
1 answer
200 views

Why validation not work for encoded password

In my project i add some validation for Signup form fields. While click on submit button password validation not check orignal password like @AAAzzz123 but it check encoded password like $2a$10$...
Faheem azaz Bhanej's user avatar
-1 votes
2 answers
529 views

Why Notblank annotation displaying message?

I am working on spring mvc web application. In application, I put @NotBlank annotation for validation on username field in sign up form. I fill the username field and click on Submit button that time ...
Faheem azaz Bhanej's user avatar
0 votes
3 answers
798 views

Why "OneToOne" relationship allow to store more than one data in database

I am working on OneToOne relationship with Spring MVC. In my code Person is parent table and Address is child table. I'm persist data in Person table after that in Address table. I put list of person ...
user avatar
0 votes
1 answer
243 views

thymeleaf template not getting all response while sending request in chrome, I am receiving data from database is there any error in binding?

Flight package com.shahbaz.flightreservation.entities; import java.sql.Timestamp; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence....
Azmat Hayat's user avatar
0 votes
1 answer
579 views

Mapping a foreign key in Spring MVC

I am a new self taught programmer, I am making my first independent project and running into some problems. I am making a quiz app, and I want create a class for a quiz, and another class for ...
Sam Berger's user avatar
0 votes
1 answer
777 views

convert MultipartFile to required type byte[] thymeleaf error

im getting this error idk why There was an unexpected error (type=Bad Request, status=400). Validation failed for object='client'. Error count: 1 org.springframework.validation.BindException: org....
haifa's user avatar
  • 21
2 votes
2 answers
843 views

Get selected value from a Thymeleaf drop down list

i have a drop down list and the client must select a value then it will be persist in mysql db okay i did that but i want when the client select a value i get that value and i do an if statement ...
haifa's user avatar
  • 21
1 vote
0 answers
174 views

Many To one datatable spring mvc hibernate with ajax

I was trying to show the model with dataTable in Spring but how can i get the value from the @ManyToOne relationship ? Below is my code Model file - I want to get "private long usersId" ...
Takei's user avatar
  • 21
0 votes
1 answer
3k views

Resolved [org.springframework.beans.TypeMismatchException String : Failed to convert value of type 'java.lang.String' to required type

So I am building a site where someone puts a post and people can make comments to the post and people can make comments to those comments -- nested comments, if you will. Post creation: works, the ...
thelos999's user avatar
  • 653
0 votes
1 answer
2k views

Generate html select option from database in spring mvc app with thymeleaf

In spring based web app using hibernate I have a lists.html file where are select options codes reused in many views, now options will be transferred to database and my task is to populate those lists ...
jaba_2121's user avatar
0 votes
0 answers
33 views

OneToMany entity parent field giving null after being set by parent

I'm trying to submit a form with Quiz as form backing entity and some Question inside of it. These two entities are related in a bidirectional association: @Getter @Setter @ToString(exclude = { "...
Elliot RG's user avatar
0 votes
2 answers
2k views

Displaying image on Thymeleaf from List of objects returned via MySQL/Hibernate

I'm attempting to make a portfolio website that I can edit all portfolio items utilizing my own REST api. With that in mind, I have stored 8 images in my database under the Skills table that has a ...
Willie Mangram's user avatar
0 votes
1 answer
48 views

How to handle forms mapped to more than one entity using Thymeleaf + Hibernate + Spring Boot?

I have a form in Thymeleaf that I want to link to two different entity to be persisted to the database using Hibernate I have the following form using Thymeleaf: <form th:action="@{/app/...
Soufiane Elabed's user avatar
0 votes
1 answer
4k views

Spring MVC and Thymeleaf: How to get the value of an object of a list after an iteration

Hi all and thank you for reading my issue. I'm programming an application using Spring MVC and Thymeleaf, and I have the following problem. I'm iterating a list of objects, and displaying a button ...
Javierdds's user avatar
  • 199
1 vote
1 answer
4k views

Upload a file with another object in same form in Spring

I want to upload a file to database with OneToMany relationship with another entity. I'm using Spring 4 with Thymeleaf. I have two objects: Image and Store. Store: @Entity @Table(name = "store") ...
Jane C.'s user avatar
  • 55
0 votes
1 answer
1k views

Upload a file to database

I have a mysql database where I want to upload a image with SpringMVC and Thymeleaf. I'm not using Spring boot. PhotoController: @RequestMapping(value = "/form", method = RequestMethod.GET) ...
Jane C.'s user avatar
  • 55
0 votes
1 answer
714 views

ArrayList on forms in Thymeleaf

I'm developping a app that allows to add lists of movies. I have a form when I want to put the information of the movies on the ArrayList. I want to add the data of movie in the form and then submit, ...
Jane C.'s user avatar
  • 55
0 votes
0 answers
145 views

Error using dropdown on thymeleaf and spring

I have a form to create a new product. This form has one dropdown with the possibles sizes (setting in the controller) and another dropdown with the possibles brands. I get the brands from the ...
Jane C.'s user avatar
  • 55
0 votes
1 answer
165 views

Could not obtain transaction-synchronized Session from Thymeleaf

I was working with SpringMVC and it was ok with my jsp pages, but now I've tried to integrate my application with Thymeleaf. thymeleaf-servlet.xml <beans xmlns="http://www.springframework.org/...
Jane C.'s user avatar
  • 55
4 votes
1 answer
2k views

Why this Thymeleaf form binding with selection field does not work?

I have two models, Patient and Study. In the Study model, I want to use Patient's Id as a foreign key. My Study Model (without getter/setter) is as below @Entity @Table(name = "Study") public class ...
InconsistentHashing's user avatar
0 votes
3 answers
2k views

Display dropdown items using ThymeLeaf by reading values from the database.

I am working on a Spring Boot application and am trying to populate options in HTML with the contents of the database. For that I am using iterators in ThymeLeaf to display all those options. The ...
Shrijan Aryal's user avatar
1 vote
1 answer
134 views

Round 3 Neither BindingResult nor plain target object for bean name 'user' available as request attribute

I know this has been answered in previous threads, but after following all the solutions i have been unable to solve this issue. So I am using spring & thymeleaf on top of hibernate with a mySQL ...
Gavin James Beere's user avatar
0 votes
1 answer
223 views

SessionFactory Bean and MySQL5SpatialDialect

I am trying to implement Spatials in my Java Spring Boot Web Application with MySQL. Currently I use the following dialect: properties.setProperty("hibernate.dialect", "org.hibernate.dialect....
Barzille's user avatar
  • 405
0 votes
0 answers
80 views

PoolExhaustedException only when calling child entity with Thymeleaf

I am quite new to Spring and I am trying to build a simple app with some forms and views. When I inject my object directly in the model via model.addAtribute("myObject", var) everything works fine. ...
SebUndefined's user avatar
0 votes
2 answers
567 views

Creating and persisting a new User based on html input. Spring MVC, JPA Hibernate, Thymeleaf

Searched all over the Internet and tryed different solutions, but somehow no one worked in my case. I have following html template for a view where you should register yourself: <!DOCTYPE ...
Zytro's user avatar
  • 15
1 vote
1 answer
2k views

Display an image with spring boot hibernate and JPA

When I try to add an image in Base64 from a Product Object, like next: <tbody> <tr th:each="product : ${products}"> <td><img th:src="@{'data:image/png;base64,' + ...
Justin Zuñiga Torres's user avatar
0 votes
1 answer
317 views

I can not update my entity using Hibernate, Spring MVC, Thymleaf

Hello I want to update User entity, so in the form edit.html i'm using thymeleaf: <form action="#" th:action="@{/{id}/edit(id=${user.id})}" th:object="${user}" method="...
mosab's user avatar
  • 207
2 votes
0 answers
316 views

How to pass many to many object from view

I'm trying to post set of keywords in the form submission. When there is the field is empty or the data is null the controller accept it but when i am trying to submit with filled form data its ...
Ezra Sujeevan's user avatar
2 votes
0 answers
2k views

Spring custom Converter not applying - no matching editors or conversion

I use Spring MVC 4.3.3, Data 1.10.4, Thymeleaf 3, Hibernate 4.3.5, Oracle 10g, JBoss Wildfly. I have custom objects, converter not kicking in when controller tries to save it; bindingResult has error....
Philip YW's user avatar
  • 300
0 votes
1 answer
871 views

ThymeLeaf 3 + Spring 4 [ ERROR: Can not resolve object in the view ]

Hello, I'm doing the simple web app with Spring , Hibernate, ThymeLeaf etc. I have some experience with Spring 4 and Hibernate 5 but ThymeLeaf is used by me the first time. I need to get inputted ...
Vadzim Kavalkou's user avatar
0 votes
0 answers
317 views

spring thymeleaf pagnation with plain hibernate

Hi i want to implement pagination with spring mvc app with thymeleaf. Some how i have created the pagination, but it is only showing first 20 objects only, And no pagination after that(disabled on ui ...
boycod3's user avatar
  • 5,289
1 vote
1 answer
2k views

org.springframework.beans.NotReadablePropertyException:

From controller I am sending BinderPlaceOrder object like this model.addAttribute("addNewBinderPlaceOrder", new BinderPlaceOrder()); My Thymeleaf page is, <form class="...
Tareq's user avatar
  • 473
0 votes
1 answer
42 views

Mapping Error in Hibernate

I have prepared an application in Spring Boot I have implemented oneToOne mapping in hibernate between two tables : person and PersonDetail. Now, when I run the program, I get the following error :...
A P's user avatar
  • 53
0 votes
1 answer
642 views

Thymeleaf strips id from entity on post in Spring-mvc

I have a customerDto which has a child object customerAddress. I simply want to update the customerDto (including customerAddress). The problem I have is hibernate is inserting a new customerAddress ...
webDeveloper's user avatar
  • 1,304
1 vote
4 answers
14k views

Binding checkbox in Thymeleaf + Spring MVC

My Spring MVC app is based on Spring boot 1.2.8, Thymeleaf, Hibernate and Hateos. I've an entity "Market" with a field "enabled" of type Boolean. @Entity @Table(name = "market") public class Market { ...
fh76's user avatar
  • 293
0 votes
0 answers
311 views

Thymeleaf not able to post collections / lists of objects

I'm creating a web-application with spring MVC, hibernate and thymeleaf. I have a page where I can manage users, on this page you should be able to place and remove users from groups. I am doing this ...
Casper's user avatar
  • 293
1 vote
0 answers
82 views

Adding data from form to List (or Set)

I'm developing web application using spring MVC. In form, I have a question and couple answers. <!-- Question--> <div> <label>Pytanie:</label> <input ...
rpieniazek's user avatar
  • 2,360
0 votes
1 answer
125 views

hibernate Mapping error with id

I am new to spring MVC and JPA, hibernate. I am stuck with this error. I want your help friends in my project we are using spring MVC, hibernate, JPA, thymeleaf. I am implementing questioner form this ...
kiran's user avatar
  • 11
0 votes
3 answers
3k views

ReloadableResourceBundleMessageSource not working

Currently im working on a new Spring 4 + Thymeleaf + Security project without XML bean files. Somehow the localization property files are not loading and i cant find anything about them in the log ...
M Beers's user avatar
  • 71
0 votes
1 answer
3k views

how to retrieve multiple session values in thymeleaf when my session object contains more values?

My problem is i want to retrieve data from multiple tables using hibernate and i should that data on my view page. I am successfully in bringing data from multiple tables using native sql .but the ...
love kumar's user avatar
1 vote
1 answer
2k views

Hibernate, spring and thymeleaf : exception handling

I'm working on a spring mvc web application lately using thymeleaf as view engine, hibernate as persistence unit and spring security. I opted for an XML-less approch (using javaConfig) I want to ...
Aissasa's user avatar
  • 231
0 votes
0 answers
1k views

Strange error in spring when adding thymeleaf

i was working on a project using JSP then i thought about changing to thymeleaf instead, but when i did this is what i got Nov 26, 2013 12:17:26 PM org.apache.catalina.core.AprLifecycleListener init ...
Muhammad's user avatar
0 votes
1 answer
728 views

Spring & Hibernate @Valid doing nothing

I have annotated my fields in my model and am using the @Valid annotation on my post controller but it appears to be performing no validation (result.errors is empty) Any ideas what might be causing ...
Thomas Buckley's user avatar