-
1. Re: rich:editor forecolor problem
ilya_shaikovsky Mar 5, 2010 4:59 AM (in response to spiritfox26)sorry but can't reproduce under 3.3.3 snapshots. try 3.3.3 CR1 -
2. Re: rich:editor forecolor problem
spiritfox26 Mar 5, 2010 6:59 AM (in response to ilya_shaikovsky)The log display this error
Error send script to client for resource scripts/tiny_mce/themes/advanced/img/colorpicker.jpg
org.ajax4jsf.javascript.JSMin$UnterminatedStringLiteralException: Unterminated string literal richfaces
I searching in google but i dont have lucky...
-
3. Re: rich:editor forecolor problem
spiritfox26 Mar 8, 2010 6:41 AM (in response to spiritfox26)Copy the complete error
09:39:00,890 ERROR [ScriptRenderer] Error send script to client for resource scripts/tiny_mce/themes/advanced/img/colorpicker.jpg
org.ajax4jsf.javascript.JSMin$UnterminatedStringLiteralException: Unterminated string literal at line 3 and column 0
at org.ajax4jsf.javascript.JSMin.action(JSMin.java:191)
at org.ajax4jsf.javascript.JSMin.jsmin(JSMin.java:289)
at org.ajax4jsf.resource.ScriptRenderer.send(ScriptRenderer.java:62)
at org.ajax4jsf.resource.InternetResourceBase.send(InternetResourceBase.java:374)
at org.ajax4jsf.resource.ResourceLifecycle.sendResource(ResourceLifecycle.java:219)
at org.ajax4jsf.resource.ResourceLifecycle.send(ResourceLifecycle.java:158)
at org.ajax4jsf.resource.InternetResourceService.load(InternetResourceService.java:335)
at org.ajax4jsf.cache.LRUMapCache.load(LRUMapCache.java:116)
at org.ajax4jsf.cache.LRUMapCache.get(LRUMapCache.java:87)
at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:195)
at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:141)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:508)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at uy.com.its.util.AuthenticationFilter.doFilter(AuthenticationFilter.java:82)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Unknown Source)
-
4. Re: rich:editor forecolor problem
spiritfox26 Oct 4, 2010 12:59 PM (in response to spiritfox26)I upgraded to RichFaces 3.3.3 and the error disappeared.
Regards
-
5. Re: rich:editor forecolor problem
peruzzo Feb 10, 2011 3:08 PM (in response to spiritfox26)the error remains because the image is mapped as javascript.
resources-config.xml
<resource>
<name>scripts/tiny_mce/themes/advanced/img/colorpicker.jpg</name>
<path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/img/colorpicker.jpg</path>
<renderer class="org.ajax4jsf.resource.ScriptRenderer"/>
</resource>
-
6. Re: rich:editor forecolor problem
yan.jiang Mar 16, 2012 7:26 AM (in response to spiritfox26)I am using richfaces 3.3.3 final, but i still have this problem! exactly same as you ~~ can you give me suggestion?
-
7. Re: rich:editor forecolor problem
peruzzo Mar 16, 2012 10:27 AM (in response to yan.jiang)Larry, you can make the correct mapping of this resource to your own project by creating the file WEB-INF/classes/META-INF/resources-config.xml.
<?xml version="1.0" encoding="UTF-8"?>
<resource-config>
<resource>
<name>scripts/tiny_mce/themes/advanced/img/colorpicker.jpg</name>
<path>org/richfaces/renderkit/html/scripts/tiny_mce/themes/advanced/img/colorpicker.jpg</path>
</resource>
</resource-config>
-
8. Re: rich:editor forecolor problem
yan.jiang Mar 23, 2012 4:21 AM (in response to peruzzo)Tiago Peruzzo, I tried your method, but it is still not working, I tried richfaces 3.3.1 GA it is working, but the icon of forecolor is not properly generately! and I still need to use richfaces 3.3.3 final. And i will give you my deploy structure: I deloyed my application as a war package in jboss. and inside war are those folders:
css, images, META-INF, pages, scripts, template, WEB-INF
insiede the WEB-INF are
classes, lib, and config files
I did created the folder with the xml file, but still not work.
if we created a xml here, how will the application knows that it is going to use this mapping instead of the mapping provided in the richfaces-ui-3.3.3.jar ? should i miss some configuration or something ?