Skip to content

Support for @ModelAttribute interdependency [SPR-6299] #10965

@spring-projects-issues

Description

@spring-projects-issues

John Glynn opened SPR-6299 and commented

A common requirement is that a @ModelAttribute annotated method be dependent upon another.

ie.

@ModelAttribute("foo")
public Object getFoo() {
    ...
}

@ModelAttribute("bar")
public Object getBar(@ModelAttribute("foo") Object foo) {
  if( some condition of foo ){
    do stuff
  }
}

Affects: 2.5.6

Reference URL: http://forum.springsource.org/showthread.php?p=263603#post263603

Issue Links:

Referenced from: commits 56a82c1

27 votes, 32 watchers

Metadata

Metadata

Assignees

Labels

has: votes-jiraIssues migrated from JIRA with more than 10 votes at the time of importin: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions