New Posts New Posts RSS Feed: Updating nullEntity with 2 level nested binding
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Updating nullEntity with 2 level nested binding

 Post Reply Post Reply
Author
Dominique View Drop Down
Groupie
Groupie
Avatar

Joined: 28-Jun-2007
Location: Norway
Posts: 44
Post Options Post Options   Quote Dominique Quote  Post ReplyReply Direct Link To This Post Topic: Updating nullEntity with 2 level nested binding
    Posted: 05-Jul-2007 at 7:09am
Hi,
I have the following entities:
a Person lives in a City
a City is in a Country
the UI is set up with databinding and nested properties

On the UI the user can choose a country and a city from 2 combos. Choosing a country will fill the list of cities with the right elements.
The normal way of choosing a city will be to choose first the country and then the city

A Person might have no city associeted with him and then it will be a problem if the user choose a country from the combo. I get a "updating nullEntity exception" (or alike).
Do you have a solution to work around that while still using databinding? (beside putting the "nothing" elements in the DB)


Dominique

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down