-
1. Re: JS error in the Firebug...
ealonso04 Aug 22, 2012 10:47 AM (in response to hantsy)Hi Hantsy!
That's the problem I have too. Check out this:
https://community.jboss.org/thread/204082?tstart=0
I hope someone can help us soon!
-
2. Re: JS error in the Firebug...
hantsy Aug 23, 2012 11:26 AM (in response to ealonso04)Hi Ernesto,
Do you include the following codes in your web.xml ?
Richfaces 4.2 introduced it to
Optimizate
the resource files.When I changed the value to "false", the problem is missing. It is magic.
<context-param> <param-name>org.richfaces.resourceOptimization.enabled</param-name> <param-value>true</param-value> </context-param>
BTW, it also fixed another problem I encountered,
https://community.jboss.org/message/755411#755411
But introduced a new problem, maybe the resource loading is correct, but the Richfaces css style will be conflict with some of my Bootstrap css.
-
3. Re: JS error in the Firebug...
ealonso04 Aug 23, 2012 11:38 AM (in response to hantsy)Hi Hantsy,
You mean that I have to set the
org.richfaces.resourceOptimization.enabled
to false? Because I have included those lines of code in my web.xml setting the value to true. -
4. Re: JS error in the Firebug...
ealonso04 Aug 23, 2012 12:15 PM (in response to ealonso04)Hi again,
I did what you told me setting the value to false. But unfortunately that doesn't work for me. I need to create some tooltips programmatically. So when I set the value to true, the tooltip is created but having the issue with "jQuery.atmosphere is undefined" and if I set it to false, the "jQuery.atmosphere is undefined" issue disappears but the tooltip is not created, besides I get another issue teeling me that Richfaces.ui.Tooltip is not a constructor. = (
-
5. Re: JS error in the Firebug...
ealonso04 Aug 23, 2012 5:49 PM (in response to ealonso04)Do you have the jquery.atmosphere.js in your javascript resources files?
-
6. Re: JS error in the Firebug...
hantsy Aug 23, 2012 9:25 PM (in response to ealonso04)No, this file shoule be included in Richfaces itself...Richfaces used atmosphere for push
-
7. Re: JS error in the Firebug...
ealonso04 Aug 23, 2012 9:57 PM (in response to hantsy)I see. Well, I don't know what else to do to solve my issue. As I mentioned before, setting the value to false did not work. It can disappear that error, but the tooltips would not work.
-
8. Re: JS error in the Firebug...
vernon.singleton Apr 5, 2013 11:15 PM (in response to hantsy)It has been a while since you posted this issue.
Not sure if you ever solved it.
If you have not, let me know, and I'll update with our work around.
-
9. Re: JS error in the Firebug...
amittikoo84 Oct 10, 2013 9:34 AM (in response to vernon.singleton)Why not just post the workaround. Please.
-
10. Re: JS error in the Firebug...
bleathem Oct 10, 2013 2:24 PM (in response to amittikoo84)are you guys still getting this error with RichFaces 4.3.4.Final?
-
11. Re: JS error in the Firebug...
amittikoo84 Oct 10, 2013 3:41 PM (in response to bleathem)Thanks for responding Brian. Unfortunately we are a little behind. We are using 4.2.3. Is this issue fixed in the latest release?
-
12. Re: JS error in the Firebug...
bleathem Oct 10, 2013 5:09 PM (in response to amittikoo84)I don't know if it's fixed, but I'm surprised to hear of the error - I'd expect the resources to be served correctly. Can you try using a newer RichFaces version? If you continue to get a failure, please post some simple-as-possible code I can use to reproduce locally.
Also please share details of your environments:
1) container (JBoss EAP, Wildfly, Tomcat, etc)
2) JSF implementation (Mojarra/MyFaces) and version
3) Any browser console errors, or messages in the server log
-
13. Re: JS error in the Firebug...
amittikoo84 Oct 14, 2013 2:27 PM (in response to bleathem)Hello Brian
The issue happens specifically after I turn on optimization using the following param in web.xml
<context-param>
<param-name>org.richfaces.resourceOptimization.enabled</param-name>
<param-value>true</param-value>
</context-param>
CONSOLE:
- Uncaught TypeError: Cannot set property 'abordingConnection' of undefined packed.js:3193
- THis is the line where it happens:
- jQuery.atmosphere.abordingConnection=true; (jQuery.atmosphereis undefined)
On further investigation I found that we were adding our own version of jquery in thee XHTML.
<h:outputScript library="js" name="jquery-1.8.3.js" target="head"/>
<h:outputScript library="js" name="jquery-ui-1.9.0.custom.min.js" target="head"/>
If I remove "jquery-1.8.3.js" I get this:
- Uncaught TypeError: Cannot read property 'length' of undefined jquery.js:149
- jQuery.extend.eachjquery.js:149
- e.widgetjquery-ui-1.9.0.custom.min.js?ln=js:6
- (anonymous function)jquery-ui-1.9.0.custom.min.js?ln=js:6
- (anonymous function)
If I remove both:
Uncaught TypeError: Object [object Object] has no method 'sortable'
My Environment:
JSF/ Mojaara
Richfaces 4.2.3.
Weblogic
I do not see any error message on the console but there is the following log statement:
14, 2013 2:17:17 PM org.richfaces.cache.lru.LRUMapCacheFactory createCache
: Creating LRUMap cache instance using parameters: {com.sun.faces.injectionProvider=com.bea.faces.WeblogicInjectionProvider, org.ajax4jsf.COMPRESS_SCRIPT=false, org.richfaces.L
tyleStrategy=ALL, javax.faces.PARTIAL_STATE_SAVING=true, org.apache.myfaces.SERIALIZE_STATE_IN_SESSION=false, com.sun.faces.defaultResourceMaxAge=86400000, org.ajax4jsf.DEFAULT
IRE=86400, javax.faces.PROJECT_STAGE=Production, org.apache.myfaces.RESOURCE_MAX_TIME_EXPIRES=3628800000, com.sun.faces.responseBufferSize=131070, org.ajax4jsf.xmlparser.ORDER=
,NEKO,TIDY, org.richfaces.LoadScriptStrategy=ALL, javax.faces.FACELETS_BUFFER_SIZE=65535, javax.faces.FACELETS_LIBRARIES=/WEB-INF/infor.taglib.xml, javax.faces.FACELETS_SKIP_CO
TS=true, org.richfaces.resourceOptimization.enabled=true}
Thanks
Amit
-
14. Re: JS error in the Firebug...
amittikoo84 Oct 17, 2013 4:35 PM (in response to amittikoo84)Update: I manually added the jquery atmosphere js library and it seems to be working. However I would love to know if there is a right way of doing it.
Update: Ajax Push component doesn't work now! Uncaught TypeError: Object #<Object> has no method 'closeSuspendedConnection'