-
Notifications
You must be signed in to change notification settings - Fork 700
Open
Labels
in: coreIssues in core supportIssues in core supportstatus: ideal-for-contributionAn issue that a contributor can help us withAn issue that a contributor can help us withtype: enhancementA general enhancementA general enhancement
Description
Hans Desmet opened DATACMNS-573 and commented
@EnableSpringDataWebSupport allows to specify an entity where the browsers sends an entity identifier:
@Controller
class ClientController {
@RequestMapping(value = "/clients/{client}", method = RequestMethod.GET)
ModelAndView get(@PathVariable Client client) {
}
}accepts a request to /clients/1 and converts 1 to the {8Client}} entity with id 1 by reading this entity from the database.
You can however not refer to this method with the new mvcUrl JSP tag in Spring 4.1:
${s:mvcUrl('CC#get').arg(0,1).build()}
because you feed the first parameter an Integer value 1, which is not compatible with real the type of the parameter Client and mvcUrl does not know about the automatic conversion provided by @EnableSpringDataWebSupport.
Affects: 1.8.4 (Dijkstra SR4)
Metadata
Metadata
Assignees
Labels
in: coreIssues in core supportIssues in core supportstatus: ideal-for-contributionAn issue that a contributor can help us withAn issue that a contributor can help us withtype: enhancementA general enhancementA general enhancement