У меня проблема с интеграцией JSF2.0 в качестве технологии просмотра в Spring webflow. Мне удалось заставить его "почти" заработать, осталось только настроить поддержку ajax для JSF2.0.
Запросы Ajax отправляются, ответы от сервера принимаются, но ответ не запускает повторную визуализацию компонента.
Несколько подсказок, которые помогут решить проблему:
Когда дело доходит до создания ссылок .js на ресурсы, поведение JSF неверно. JSF пытается получить доступ к следующей ссылке:
http://localhost:8080/ $ {context_path} / $ {flow_name} / javax .faces.resource / jsf.js? ln = javax.faces Это возвращает 404. Мне пришлось жестко закодировать следующую ссылку в шаблоне, чтобы получить некоторую поддержку ajax:
http://localhost:8080/ $ {context-path} /javax.faces. resource / jsf.js.faces? ln = javax.faces (я нашел эту ссылку после отключения веб-потока и исследования исходного кода простой страницы, обработанной JSF)
Я предполагаю, что конфигурация JSF верна. Если я исключу веб-поток из цепочки обработки, все будет работать, как ожидалось. Ссылки в порядке, повторный рендеринг компонента в порядке
Если я выставляю свои сервисы как @ManagedBean (собственный подход JSF) и не использую Spring, повторный рендеринг bean-компонентов работает нормально, но я не могу взаимодействовать с переменными веб-потока и области видимости потока (веб-поток не видит собственные @ManagedBeans), и все же мне приходится использовать жестко запрограммированные ссылки.
У меня нет сервлета / фильтра ресурсов Spring. Я не использую правила urlRewrite для пересылки в свои потоки.
Если потребуются файлы конфигурации - выложу их в вопросе.
Любая помощь приветствуется. Похоже, это проблема блокировки использования всего стека технологий.