-
Feb 19th, 2010, 02:34 AM
#1
"Model binding resulted in errors", but where's the error message ???
Hi guys,
when I submit one of my forms in my webflow application, I can see this message in my logfiles:
2010-02-19T09:32:08.937+0100 FINE
org.springframework.webflow.mvc.view.AbstractMvcVi ew processUserEvent
Model binding resulted in errors; adding error messages to context
In my form I have this tag to display errors:
<form:form name="addUser" modelAttribute="searchEngineAccount">
<form:errors path="*" cssClass="errors" />
...
</form:form>
It does not show any errors.
So - where's my error message gone??
Cheers
Bastian
Last edited by batzee; Feb 19th, 2010 at 02:35 AM.
Reason: correct typos
-
Feb 19th, 2010, 03:16 AM
#2
I just discovered this log entry (interesting part marked in red). So the messages is there, but why is it not displayed anywhere apart from a DEBUG log entry???
2010-02-19T10:12:29.764+0100 FINE
org.springframework.webflow.conversation.impl.Sess ionBindingConversationManager putAttribute
Putting conversation attribute 'scope' with value map[
'flashScope' -> map['messagesMemento' -> map[[null] -> list[[empty]], 'country' -> list[[Message@70415924 source = 'country', severity = Error, text = 'typeMismatch on country']], 'searchEngine' -> list[[Message@5243840f source = 'searchEngine', severity = Error, text = 'typeMismatch on searchEngine']]], 'viewUserEventState' -> [ViewActionStateHolder@390ee01d eventId = 'confirm', mappingResults = Mapping Results = [[Success@7f9bad2e mapping = parameter:'accountId' -> accountId, code = 'success', error = false, originalValue = '1', mappedValue = '1'], [TargetAccessError@4586e875 mapping = parameter:'country' -> country, code = 'typeMismatch', error = true, errorCause = org.springframework.binding.expression.ValueCoerci onException: Value could not be converted to target class; is a suitable type converter registered?, originalValue = 'Deutschland', mappedValue = [null]], [TargetAccessError@1c077cfc mapping = parameter:'searchEngine' -> searchEngine, code = 'typeMismatch', error = true, errorCause = org.springframework.binding.expression.ValueCoerci onException: Value could not be converted to target class; is a suitable type converter registered?, originalValue = 'Google', mappedValue = [null]]]]]]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules