Win a copy of Mastering Corda: Blockchain for Java Developers this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Thymeleaf - How to send a table as a list?

 
Ranch Hand
Posts: 41
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thymeleaf - How to send a table as a list?

Greetings codeRanch. Hope you are all having a great end of 2020*.
I need help on how to solve a situation...

--Context--
I have a javafx Desktop Application. Im building now the Web version of this app.
I have a class called Tool, and it has the variable Collection<DistributionPoint> distributionPoints;
Im working on a page to add/update a Tool, like in the javafx app.



--Problem--
I have a combobox a Option/Combobox in my HTML that is filled with objects from the class "DistributionPoint" to pick from.
The user, can pick any they want and add to a table as long as its not added already in the table already (Doesnt allow repeated values).



From the UI side, everything works as it should.
When I press Save/Submit, it doesnt save the table as the distributionPoint list of 'tool'.
I've tried several things but none of them worked. Any tip on how to deal with this?



HTML file







 
I found a beautiful pie. And a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic