-
1. Re: Load RichFaces resources when a page is loaded trough an AJAX call.
cmastrantono Dec 10, 2010 7:25 AM (in response to cmastrantono)No one? No ideas?
-
2. Re: Load RichFaces resources when a page is loaded trough an AJAX call.
nbelaevski Dec 12, 2010 6:08 PM (in response to cmastrantono)1 of 1 people found this helpfulHi,
Resources should be loaded fine on index.jsp when you used a4j:loadScript - please check if there are any problems loading them.
Also try this:
<context-param>
<param-name>org.richfaces.LoadStyleStrategy</param-name>
<param-value>ALL</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.LoadScriptStrategy</param-name>
<param-value>ALL</param-value>
</context-param>
<context-param><param-name>org.richfaces.LoadStyleStrategy</param-name><param-value>ALL</param-value></context-param><context-param><param-name>org.richfaces.LoadScriptStrategy</param-name><param-value>ALL</param-value></context-param> -
3. Re: Load RichFaces resources when a page is loaded trough an AJAX call.
cmastrantono Dec 13, 2010 8:14 AM (in response to nbelaevski)Thanks for the answer...
Ok, in the case I decide to use a4j:loadScript ... I don´t know which scripts are suposed to be loaded for RichFaces.
I mean, on the top of the jsp page I have "<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>" ... there is anything else I could declare explicitly to import some RichFaces resources like JS and CSS ???
Thanks in advance.
Cristian.
Ok, in the case I decide to use a4j:loadScript ... I don´t know which scripts are suposed to be loaded for RichFaces.I mean, on the top of the jsp page I have "<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>" ... there is anything else I could declare explicitly to import some RichFaces resources like JS and CSS ???Thanks in advance.Cristian.
Ok, in the case I decide to use a4j:loadScript ... I don´t know which scripts are suposed to be loaded for RichFaces.
I mean, on the top of the jsp page I have "<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>" ... there is anything else I could declare explicitly to import some RichFaces resources like JS and CSS ???
Thanks in advance.
Cristian.
-
4. Re: Load RichFaces resources when a page is loaded trough an AJAX call.
nbelaevski Dec 13, 2010 9:04 AM (in response to cmastrantono)1 of 1 people found this helpfulCristian,
These resources combine RF JS resources, so should be enough:
<a4j:loadScript src="resource:///org/ajax4jsf/framework.pack.js" />
<a4j:loadStyle src="resource:///org/richfaces/ui.pack.js" />