I have been struggling with the following error for a while.
I have a basic screen flow set up with 3 screens.Code:java.lang.IllegalArgumentException: The field type is required
- Screen 1: identity
- Screen 2: contact information
- Screen 3: summary
From screen 1 I take in text fields as such:
This works when it hits the summary, because I am able to display the content of ${booking.username} on the summary screen.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>
But on screen 2 when I try the exact same thing but with a different datafield an error that is specified above.
screen 2:
form tag specified as such: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>
The same error happens when I try to add form tags to a option drop box field as such.Code:<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
Instead of option tag I also triedCode:<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>
all come up with the same error pointing to these lines as an error.Code:<form:input type="text" label="" value="0"/>
Thank you.
Stack trace at the following location:
http://stackoverflow.com/questions/1...pe-is-required


Reply With Quote
