I´m here looking for some advice, as I´m finding difficult what I expected to be relatively easy. I´ve always developed desktop apps in Java SE, and now trying to build a web App I can't make any progress.
What I´m finding difficult is the most basic scenario in any app.
- I have a data table with products.
- I select one product (row) to edit it.
- I dump its data to a form.
- I edit it and save.
- The data table should be updated and the updated data should hit DB.
This sounds simple (it certainly is for me using JSE) but in web it has some little complications like:
Suppose the product has a brand and I want to select it from a dropdown. So the form should have one, and when dumping the content from the row to edit it, the correct value must be set for the user.
In order to update data properly, I need to use codes, so the dropdown must show the name of the brand but internally it must handle the code to be sent to the backend when updating the database.
Does someone has a well known pattern / framework to solve this?
Thanks in advance and regards.
Aucun commentaire:
Enregistrer un commentaire