This week's book giveaway is in the Java in General forum.
We're giving away four copies of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 and have ishori Sharan & Adam L Davis on-line!
See this thread for details.
Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Object build from a form not saved completely

 
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi

I have a form with many input.



A have some dto in java




When i click to save, i do



and a ajax call

On the server side i have




It's the value sent to the server


{
"lodgerId": "",
"firstName": "paul",
"lastName": "houlde",
"contactPersonelMobile.phone": "4506778989",
"birthdate": "16/07/2015",
"entryDate": "16/07/2015",
"releaseDate": "31/07/2015",
"oldAddress.addressId": "",
"oldAddress.name": "bixi",
"oldAddress.address": "23 marie victorin",
"oldAddress.phone.phoneId": "",
"oldAddress.phone.phone": "1234567896",
"brandId": "26",
"brand": "Honda",
"modelId": "519",
"color": "#5484ed",
"year": "2000",
"licencePlate": "1h2r43",
"identityCardList[0].identityCardId": "",
"identityCardList[0].identityCardType": "1",
"identityCardList[0].value": "cadfadfa",
"identityCardList[1].identityCardId": "",
"identityCardList[1].identityCardType": "",
"identityCardList[1].value": "",
"identityCardList[0].expiration": "",
"identityCardList[2].identityCardId": "",
"identityCardList[2].value": "",
"identityCardList[2].expiration": ""
}



on the server side, value for identityCardList, oldAddress, brand, brandId... are null only firstName, lastName, birthdate, entryDate, releaseDate are not null

It's like the way the value are sent, it's not correct.

thanks
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! 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