Skip to main content

All Questions

Tagged with
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
260 views

How to check if the image value is null or non-null / (exists or not) in Thymeleaf Spring Boot

I display the image in my index page is as follows <img th:src="@{${'/image/'+id}}" /> To check if the value of the image is null or not to avoid displaying the img tag without the ...
Hambagui's user avatar
0 votes
1 answer
26 views

Order is not mapped(INSERT HQL)

I have a problem. I need to display the value from the line and transfer it to the database. I'm using a timelif, and so, I get the error "Order is not mapped", and points to line 31, in ...
panic08's user avatar
  • 159
0 votes
1 answer
776 views

Whitelabel Error Page 404 when rendering view - Java Spring Boot

I'm having an issue with rendering my html view trying to show a simple list of an object gathered from MySQL. I believe it should be a simple issue but I cant figure it out, I've searched hundreds of ...
COCOLICHE's user avatar
-2 votes
1 answer
105 views

"Spring Boot project why not data perform proper CURD operation in add, update and delete page/button ?"

"my question why not data perform proper CURD operation in add, update and delete page/button?" "why to show in browser index or addnew ,update text, why not show html pages?" &...
Impulse International School's user avatar
0 votes
1 answer
143 views

Why th:field raise NotReadablePropertyException

When I access a variable in a -tag it is working fine and give me [] because ists an empty List. If I try to access it the same way in a th:field it leads to a NotReadablePropertyException: Caused by:...
Jonny's user avatar
  • 100
1 vote
1 answer
1k views

Convert String to Money Thymeleaf

I am having a problem converting input String to money. I am creating a spring boot application with thymeleaf. I have a web page where user inputs the data and there is a particular field where he ...
iank's user avatar
  • 113
0 votes
2 answers
259 views

Null value passed from drop-down list

I am creating a Spring Boot application with thymeleaf where I have an relationship Many-to-One between a table named figures and a table named states (many figures to one state). Everything is OK ...
iank's user avatar
  • 113
0 votes
1 answer
255 views

How can I map these entities using hibernate? Need to map one to many relationship. Foreign key is not updating

In this case, I have 2 entities (Users table and UploadRecord table). I need to map a one-to-many relationship because one user can have many upload records. I need to use UserId as the primary key in ...
IU Kottahchchi's user avatar
1 vote
2 answers
166 views

Why validation is not worked

I am working on Spring MVC project. I use thymeleaf as view. While click on Register button my name field is null but not get validation error for @NotBlank name field. Here down is my code: Entity ...
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
2 answers
578 views

Unsure of why java/spring app is not saving my entity properly to MySQL database (when it is correctly saving another)

I've gone through most or all the StackOverflow questions relating to this question, and I haven't seen an answer that solves my problem. I have this basic app that saves two different types of ...
Erick's user avatar
  • 1
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
0 answers
38 views

How to upload images, and videos to a server (Like vemo) and then display them using springboot and Thymeleaf

I'm working on a web project and I am required to write some functionality that will allow a user to upload images/videos, then display them. The problem is that when I start doing some research for ...
John Steward's user avatar
0 votes
3 answers
5k views

Why can't i update an entity when it has a unique constraint on a column

i am working on my first school project with springboot and thymeleaf . I am supposed to create a crud for two OneToMANY related entities : User and Comments. I succeded in making the comments' CRUD ...
SkyMth's user avatar
  • 1
0 votes
1 answer
174 views

unable to load data in chrome from mysql database using thymeleaf but in console getting query

**Flight.java** ```package com.shahbaz.flightreservation.entities; import java.sql.Timestamp; import java.util.Date; import javax.persistence.Entity; @Entity public class Flight extends ...
Azmat Hayat's user avatar
1 vote
1 answer
301 views

Thymeleaf to access data of joined tables

I have three tables that have one to one relation the first table is the province entity, the district entity which has a one to relation with the province and the person's entity as each person ...
timmy tembo's user avatar
-1 votes
1 answer
297 views

Why th:field causes an error in Spring Boot and how to solve that? [closed]

I've designed a very dummy form with Java, Spring and MySQL aiming which takes name and mail variables as an input and post these variables into user MySQL table which also has two columns as name and ...
Berke Şentürk's user avatar
0 votes
0 answers
73 views

How can I pull a URL from my mysql database and pass it into a thymeleaf template as an img src?

I am building an application with Hibernate and Thymeleaf. I have an object for Image urls so the user can put in the url and it gets pulled from the database and put into the template as th:src The ...
atyahoodotcom's user avatar
0 votes
0 answers
369 views

Hibernate attribute return true instead of false

I need your help because I am using spring and the frameworks hibernate and thymeleaf to use java in html. I have an object on my model which is ActivityField.java, which has a boolean attribute ...
Fab83i's user avatar
  • 85
1 vote
1 answer
400 views

Thymeleaf dropdown selection save Entity

I want to add new Car from dropdown menu. I want to get the details about the choosen item. This is my Car entity: @Entity @Data @Table(name = "CAR") public class Car { @Id @...
Emre Varol's user avatar
0 votes
0 answers
38 views

How to send static object to Thymelaf view?

I have been trying for a long time to send a static object to the view in the controller. But it's give me exception like org.thymeleaf.exceptions.TemplateProcessingException: Exception evaluating ...
Anar Aqakishiyev's user avatar
0 votes
0 answers
203 views

bindingResult.hasErrors() always returns false

I have problem with form validation in spring. bindingResult.hasErrors() always return false.Here is method from my Controller: @RequestMapping(value = "/saveEmployee") public ...
kozluck's user avatar
0 votes
2 answers
838 views

Thymeleaf Spring JPA One to Many type mismatch

I have a Spring Jpa project with a One to Many relationship. The error when submitting form is: Field error in object 'product' on field 'category': rejected value [2]; codes [typeMismatch.product....
Clippit's user avatar
  • 129
0 votes
2 answers
406 views

How i get value category and categories product in another class with using @ManyToMany

I have 3 class. Product Class package com.eziz.warehouse; import com.eziz.clients.Clients; import org.springframework.format.annotation.DateTimeFormat; import javax.persistence.*; @Entity @Table(...
Əziz Rəhimov's user avatar
1 vote
0 answers
52 views

Thymeleaf how to add buton which increases java's int [duplicate]

I am wondering if I can add buttons that will allow me to increase and decrease the value of int variable. Something similar to the image below, so user wouldn't have to type integers from keyboard ...
Cobra's user avatar
  • 31
1 vote
2 answers
867 views

How to solve n + 1 problem in hibernate for my case?

I have a problem with n + 1 select in hibernate. I looked at a lot of articles on this topic, but I could not understand what my mistake was. My query: public interface ClientRepository extends ...
CringePointerException's user avatar
0 votes
1 answer
854 views

HTML Select option does not work after validation error in Thymeleaf SpringBoot

I have a form where a user can submit his team to the web application. He can select an option and enter his name. I have validated the name field that it cannot be blank. If the user leaves the name ...
Cobra's user avatar
  • 31
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
2 answers
5k views

org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): com.robicciportal.entity.Dnd

i am getting above mention error in my spring boot application. I don't want to make my primary key as auto generated values because my primary key is string type and mobile numbers of customers. this ...
Kritika Rohilla's user avatar
0 votes
1 answer
43 views

My values in spring boot table row is getting erased

I am making a medicine application where I am adding medicine id, medicine name, and more. Here I have a column called Medicine Quantity which shows how much of which medicine is left in my stock and ...
shivendra yadav's user avatar
-1 votes
1 answer
83 views

Java, MySQL DB, SpringBoot and Thymeleaf. How to pull some fields from 2 different classes to get Data from DB using Thymleaf

I have stucked with the problem: How to retrieve a data from 2 separate classes using Java, MySQL DB and Thymeleaf? I'd like to show content of the messages and user details such as First Name and ...
Milosz's user avatar
  • 1
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
0 votes
1 answer
661 views

How to retrieve Table value from database in thymeleaf , hibernate using nested attribute?

I am creating a simple Spring boot web appliction using Thymeleaf and hibernate. So planning to display product category from product entity, where each category belongs to many product and one ...
tomtom's user avatar
  • 614
0 votes
1 answer
160 views

How can I update object from database without inserting new?

i want to update object from my database without inserting new to the DB. here are 2 methods: @RequestMapping("/edit/{id}") public ModelAndView showEditProductPage(@PathVariable(name = &...
maszpet's user avatar
  • 25
1 vote
1 answer
162 views

How to force data as part of form submission with Spring + Thymeleaf + JPA

tldr; I would like an entire object to be persistent in form submission, and not just the parts of the object which were added to the Thymeleaf template. Basically, I'm performing a database query in ...
moonlightcheese's user avatar
0 votes
1 answer
449 views

Form is empty when submitted using Thymeleaf

I want to fill a list of applications for a university in the frontend. Each entry is supposed to hold two buttons: one for accepting the application and one for rejecting it. I created one form for ...
leabum's user avatar
  • 395
0 votes
0 answers
241 views

Source cannot not be null on thymeleaf page

I have an exception (cannot be null)that is thrown when I fill in the email field of my form. It happens when I submit my form. I join the controller, model, service, and dto classes. Controller ...
user avatar
0 votes
1 answer
198 views

Posting form inside switch-case statement inside th:each

Can I post element with form nested in switch-case statement, which is nested in for-each loop? <tr th:each="item : ${individualTransactions}"> ...
krzysiekcr's user avatar
1 vote
1 answer
299 views

Kotlin Hibernate @ManyToOne MERGE violates foreign key constraint (Postgres)

I implemented a @ModelToOne Relationship and would like to use a Dropdown List via Thymeleaf. I use a separate formular to persist PlaceEntities and a formular for WorkEntities where a appropriate ...
Laroux89's user avatar
0 votes
2 answers
503 views

How can I write only long number as String on form input?

I am making a registration in Spring Boot using Spring Data JPA. I'm facing a problem in placing long values in a form field. Model class: I have used @NotBlank annotation before private long nsuID, ...
travel's user avatar
  • 65
1 vote
0 answers
580 views

Hibernate validation: @Email annotation does not validate .com in the email format. This can only validate @ at the email format How can I fix this?

model class: Alumni.java: Here I used @Email annotation. But when I write the email on the form it only show error messege if I don't put '@'. but If I don't use .com or .edu it does not show any ...
travel's user avatar
  • 65
0 votes
1 answer
619 views

SpringFrameWork missing Method "SetPackagesToScan()"

premise: I have started to watching course on the Udemy. I think problem is, this course published couple years ago and spring frame work has been changed a lot since when he published this course. ...
sarac's user avatar
  • 67
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
1 vote
2 answers
2k views

Not-null property references a null or transient value - Spring Boot - Thymeleaf

I have a problem with the update on my webapp. Everytime I try to update an Element i got this error: not-null property references a null or transient value : me.lucacirfeta.model.Element.user To ...
ATA's user avatar
  • 31