I'm developing a new Spring MVC application using RESTful requests. The application does the standard database load object, bind values and save. In order to not lose object values which are not available on the form, I'm using a @ModelAttribute method to preload the object prior to binding.
When loading an agency using the URL
/agency/418
my @ModelAttribute method has now way of learning of the '418' ID. My understanding is that only regular request attributes can be processed, so my URL would need to be
/agency/418?id=418
which kinda breaks the RESTful pattern. Same thing when POSTing data.
Could someone comment on this observation ... am I missing something?
Thanks Simon