spring-webflow
spring-webflow copied to clipboard
WebFlow - bug when working with RichFaces components inside a popup [SWF-1325]
Michael Isvy opened SWF-1325 and commented
When rich:calendar is included in a page, some tags <script src="....calendar.js' /> are included automatically so the JS for the calendar can be loaded.
But if the calendar is in a popup view, these JS files (also css, etc) are not included and the calendar is not working. I believe the same issue happens with any kind of richfaces component inside a popup.
As explained in the forum, we could set up a workaround: The rich:calendar component should be loaded an hidden in the main page calling the pop-up. main page. In that case, the JS and css files show properly in the popup.
See here for more details: http://forum.springsource.org/showthread.php?t=78181&highlight=rich+faces+popup
Even though I'm not 100% sure about it, that issue seems to be related to the WebFlow-RichFaces integration (I haven't found anything on the web that refers to a similar issue when using RichFaces solely).
Issue Links:
- #577 Improve Ajax and modal dialog support in Web Flow to be more universally useful regardless of client-side technology
Rossen Stoyanchev commented
Pulling in additional .js and .css files referenced in a partial response is not supported currently.
Nick Stonebraker commented
We use a "pre-render" composite component to force load component dependencies by including a basic version of the component on the applications initial page load, but with style "display:none;" so you don't actually see it. Its a hack, but it has served us well, as our app is primarily partial-page-update driven.