Announcement Announcement Module
Collapse
No announcement yet.
Odd warning when using spring form taglib and STS 3.2 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Odd warning when using spring form taglib and STS 3.2

    The code listed below is generating a warning in STS 3.2 and I'm not sure why:

    Code:
    <%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
    <form:form method="post" modelAttribute="blogPost">
    <form:input path="title"></form:input><form:errors path="title"/>
    <form:textarea path="content"></form:textarea>
    <button type="submit">Post</button>
    </form:form>
    The warning says:

    Code:
    Multiple annotations found at this line:
    	- List is a raw type. References to generic type List<E> should be 
    	 parameterized
    	- List is a raw type. References to generic type List<E> should be 
    	 parameterized
    Anyone have any idea why this is? I'm using Spring 3.1.4 with Servlets 2.4...

    Specifically the error is associated with the <form:errors path="title"/> tag, which when I remove the warning disappears...
Working...
X