Project
IntelliJ IDEA
Priority
Normal
Type
Feature
Fix versions
No Fix versions
State
Open
Assignee
Peter Gromov
Subsystem
J2EE.Spring
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Taras Tielkes
    3 years ago (15 Oct 2008 00:57)
  • Updated by   Peter Gromov
    9 months ago (28 Apr 2011 20:37)
  • Jira: IDEADEV-31407
    (history, comments)
 
IDEA-46187 IDEA should understand that springBind macro call will set status variable
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
Similar to IDEA-46058

See 14.4.5. Bind support and form handling
Calling #springBind(...) will set the variable 'status' to an instance of org.springframework.web.servlet.support.BindStatus.

Example from the manual:
<!-- velocity macros are automatically available -->
<html>
...
<form action="" method="POST">
  Name: 
  #springBind( "command.name" )
  <input type="text" 
    name="${status.expression}" 
    value="$!status.value" /><br>
  #foreach($error in $status.errorMessages) <b>$error</b> <br> #end
  <br>
  ... 
  <input type="submit" value="submit"/>
</form>
...
</html>


IDEA should be aware of this, and offer completion for the properties of 'status'.
Comments (0)
 
History
 
Linked Issues (?)
 
Issue has no comments