Thanks for the reply.

I don't think it's going to be possible for me to migrate my app to JSF2 without a complete re-write of the frontend. I did a little more digging to see if richfaces was the issue and i can across this section of the richfaces 4.2.2 development guide...

...
"JSF 2 does not allow resources such as _javascript_ or Cascading Style Sheets (CSS) to be added if the element requiring the resource is not initially present in the JSF tree. As such, components added to the tree via Ajax must have any required resources already loaded. In RichFaces, any components added to the JSF tree should have components with corresponding resources included on the main page initially. To facilitate this, components can use the rendered="false" setting to not be rendered on the page."
...

So the only workaround would be to add every possible richfaces and primefaces component to the login page so it loads the JS and css. That's a bit depressing because you can't create a "pure ajax"/dynamic application in JSF2 even tho i was possible in JSF1.

It seems like a widely used approach and there are a lot of forum posts about the issue but no one is ever able to get it working without including the hidden components.

Thanks again
Luciano
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to