Announcement Announcement Module
Collapse
No announcement yet.
[The field type is required] Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • [The field type is required]

    I have been struggling with the following error for a while.

    Code:
    java.lang.IllegalArgumentException: The field type is required
    I have a basic screen flow set up with 3 screens.

    - Screen 1: identity

    - Screen 2: contact information

    - Screen 3: summary

    From screen 1 I take in text fields as such:

    Code:
    <form:form modelAttribute="booking" action="${flowExecutionUrl}" method="post">
             User Name: 
             <form:input type="text" id="username" name="username" path="username"/>
             <input type="submit" name="_eventId_next" value="next" />
             <input type="submit" name="_eventId_cancel" value="Cancel" />
        </form:form>
    This works when it hits the summary, because I am able to display the content of ${booking.username} on the summary screen.

    But on screen 2 when I try the exact same thing but with a different datafield an error that is specified above.

    screen 2:

    Code:
    <form:form modelAttribute="booking" action="${flowExecutionUrl}" method="post">
             Address 1:
             <form:input type="text" id="address1" name="address1" path="address1"/>
             <input type="submit" name="_eventId_next" value="Next"/>
             <input type="submit" name="_eventId_cancel" value="Cancel"/>
        </form:form>
    form tag specified as such:

    Code:
     <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
    The same error happens when I try to add form tags to a option drop box field as such.

    Code:
    <form:select id="requestType" name="requestType" path="requestType">
        	<form:option value="0"></option> 
        	<form:option value="1">Oprion 1</option>
        	<form:option value="2">Option 2</option>
        </form:select>
    Instead of option tag I also tried

    Code:
    <form:input type="text" label="" value="0"/>
    all come up with the same error pointing to these lines as an error.

    Thank you.

    Stack trace at the following location:
    http://stackoverflow.com/questions/1...pe-is-required
Working...
X