Sitecore 8.0 Rev 3 与 WFFM 2.4 和 Glass.Mapper 4.0.11.63
Sitecore 8.0 Rev 3 with WFFM 2.4 and Glass.Mapper 4.0.11.63
环境:
- Sitecore 8.0 版本 3
- WFFM 2.4
- Glass.Mapper 4.0.11.63
我对上述配置有疑问。当我提交 WFFM 表单时,正在保存的数据显示为 "System.String[]" 而不是实际的文本值。我打开了一张 Sitecore 票,他们发现这是因为 Glass Mapper。如果我禁用玻璃(Glass.Mapper.Sc.config 和 Glass.Mapper.Sc.Start.config),表单会提交正确的值。
附带说明一下,我确实应用了 Sitecore 补丁,它解决了集合类型的这个问题,但这与 Glass 无关。还有其他人经历过这种行为吗?
提前致谢。
Michael Edwards 帮我解决了。
他的回复如下:
This was not a Glass issue but related to the WFFM model binder not
being registered with the default MVC dependency resolver due to a
conflict between the project IOC container and the one that WFFM tries
to use.
解决方法是在我的容器中注册 "DefaultFieldValueBinder"。一旦我这样做了,它就开始工作了。
环境:
- Sitecore 8.0 版本 3
- WFFM 2.4
- Glass.Mapper 4.0.11.63
我对上述配置有疑问。当我提交 WFFM 表单时,正在保存的数据显示为 "System.String[]" 而不是实际的文本值。我打开了一张 Sitecore 票,他们发现这是因为 Glass Mapper。如果我禁用玻璃(Glass.Mapper.Sc.config 和 Glass.Mapper.Sc.Start.config),表单会提交正确的值。
附带说明一下,我确实应用了 Sitecore 补丁,它解决了集合类型的这个问题,但这与 Glass 无关。还有其他人经历过这种行为吗?
提前致谢。
Michael Edwards 帮我解决了。
他的回复如下:
This was not a Glass issue but related to the WFFM model binder not being registered with the default MVC dependency resolver due to a conflict between the project IOC container and the one that WFFM tries to use.
解决方法是在我的容器中注册 "DefaultFieldValueBinder"。一旦我这样做了,它就开始工作了。