[richfaces-issues] [JBoss JIRA] (RF-12270) Allow RichFaces to bring new CSS/JS resources into the page after AJAX request

J W (JIRA) issues at jboss.org
Fri May 23 05:10:57 EDT 2014


    [ https://issues.jboss.org/browse/RF-12270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12970008#comment-12970008 ] 

J W edited comment on RF-12270 at 5/23/14 5:10 AM:
---------------------------------------------------

Thanks for the clarification Brian.
However the workarround is not working for me, because the packed.js will be delivered only if i request a page that contains an actual RichFaces Component.
If i call a Site w/o any RF-Components there is no packed.js on the client side yet. 
Can anybody confirm this situation?


PS: If i remember correct there was an Option in RF Version 3 where it was possible to define the resource loading strategy. With this option it was possible to always deliver the resources, or just on demand.
Is there a similiar Option in the current version? I guess the "deliver Resources always" would solve that issue too, but with the price of a slower loading time for Users who visit the site for the very first time.


was (Author: jigg4):
Thanks for the clarification Brian.
However the workarround is not working for me, because the packed.js will be delivered only if i request a page that contains an actual RichFaces Component.
If i call a Site w/o any RF-Components there is no packed.js yet on the client side. 
Can anybody confirm this situation?

> Allow RichFaces to bring new CSS/JS resources into the page after AJAX request
> ------------------------------------------------------------------------------
>
>                 Key: RF-12270
>                 URL: https://issues.jboss.org/browse/RF-12270
>             Project: RichFaces
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: core, resource handling
>    Affects Versions: 4.2.2.Final
>            Reporter: Tomasz Kurpios
>             Fix For: 5-Tracking
>
>   Original Estimate: 2 days
>  Remaining Estimate: 2 days
>
> Quoting the extract from official documentation (3.5 Restrictions):
> ??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.??
>  
> Setting rendered="false" is OK when components are in the tree. However, if there are lots of components on a single view, for performance reasons some parts might be excluded by means of <c:if> or <c:choose> tags.
> That's at least what could be done in 3.3.3. It worked fine back then. However, the JSF2 AJAX mechanism does not support this feature. This makes usage of aforementioned tags impossible in some cases.



--
This message was sent by Atlassian JIRA
(v6.2.3#6260)


More information about the richfaces-issues mailing list