-
1. Re: Configure RESOURCE_URI_PREFIX
alexsmirnov Dec 4, 2007 8:39 PM (in response to dc8)Oops, it is a real bug in the framework. Watch for a http://jira.jboss.com/jira/browse/RF-1513 , it must be fixed in the coming release.
Thanks for a your attentiveness ! -
2. Re: Configure RESOURCE_URI_PREFIX
dc8 Dec 5, 2007 9:31 AM (in response to dc8)Thanks for the prompt reply!! Looking forward for the fix in next release.
-
3. Re: Configure RESOURCE_URI_PREFIX
dc8 Dec 7, 2007 11:55 AM (in response to dc8)Further looking at the code from Firebug trace. With the patch on 3.1.3. Our Apache env should have no problem forward the request to JBoss AS with the following code :
<script type="text/javascript" src="/a4j_3_1_2.GAorg/richfaces/renderkit/html/scripts/suggestionbox.js.seam"/>
For example, the prefix configuration will replace<script type="text/javascript" src="/webajax/richfaces/renderkit/html/scripts/suggestionbox.js.seam"/>
What about the following code ?<script type="text/javascript" src="/a4j_3_1_2.GAorg.ajax4jsf.javascript.AjaxScript.seam"/><script type="text/javascript" src="/a4j_3_1_2.GAorg.ajax4jsf.javascript.PrototypeScript.seam"/> <script type="text/javascript" src="/a4j_3_1_2.GAorg.ajax4jsf.javascript.SmartPositionScript.seam"/>
Note : the src in in the root directory.
Would it replace by ?<script type="text/javascript" src="/webajax/ajax4jsf.javascript.AjaxScript.seam"/><script type="text/javascript" src="/webajax/ajax4jsf.javascript.PrototypeScript.seam"/> <script type="text/javascript" src="/webajax/ajax4jsf.javascript.SmartPositionScript.seam"/>
Appending a directory /webajx (our example) in front ? -
4. Re: Configure RESOURCE_URI_PREFIX
alexsmirnov Dec 7, 2007 12:48 PM (in response to dc8)With a fixed bug, all references to a scripts & styles will be prefexed with with your value. "a4j_3_1_2.GA" is a default value, and you can replace it with any other. Keep in mind, RichFaces framework will use it value for detect requests to a off-page resources, so it must be unique value for a your application.
We have a plan to deploy release-candidate 2 for a richfaces 3.1.3 today ( 12/07/2007 ) to a Jboss Maven repository, version string for a Maven projects "3.1.3.CR2". This build also have a fixed prefix parameter bug.