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

  • [The field type is required]

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

    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:

    <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" />
    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:

    <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 tag specified as such:

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

    <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>
    Instead of option tag I also tried

    <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: