-
15. Re: Need help with JSFunction
sergeysmirnov Jan 4, 2008 2:05 PM (in response to fmarwede)"fmarwede" wrote:
I took today the one with the latest date from http://snapshots.jboss.org/maven2/org/richfaces/ui/richfaces-ui/3.2.0-SNAPSHOT/
Is there another possibility to get the absolutely newest RF libs?
What does it mean "another"? It is a standard official way. -
16. Re: Need help with JSFunction
ilya_shaikovsky Jan 4, 2008 2:07 PM (in response to fmarwede)please make sure that you clear all the caches while testing new jars.
-
17. Re: Need help with JSFunction
fmarwede Jan 4, 2008 2:12 PM (in response to fmarwede)I asked because Sergey Halipov said:
It seems you are using old richfaces build.
In my opinion it could not be a caching problem because I built a new eclipse web project from start with an empty lib folder and then I copied those newest RIF libs in it - and deployed it on a new tomcat.
@Sergey Halipov: Because you could send me the libs-bundle which is working with the sample. So we can test if it is something about other things of the environment. -
18. Re: Need help with JSFunction
fmarwede Jan 7, 2008 4:51 AM (in response to fmarwede)Sorry guys for bothering you again.
The mystery is: Sergey Halipov said, he can reproduce the bug with the libraries of my war-file. So it can't be a caching problem on my side, right? But these libraries are new (downloaded on friday).
I'm not sure what to do next...
1.) Are you sure that this is not a question of the environment (see mine above)?
2.) Is there a chance to provide another war-file like mine only with libraries where the bug not appears?
3.) Perhaps someone else will download that war file and check. Perhaps it's only me who goes slowly insane... ;-)
4.) I'm waiting for any other suggestion what I can do to come closer to a solution for that problem...
Cheers,
F. Marwede -
19. Re: Need help with JSFunction
fmarwede Jan 7, 2008 9:40 AM (in response to fmarwede)Hello again: There is definitly something wrong with the javascript event handlers. Today I downloaded brand new RF libraries and tested the code snippet posted above in different browsers.
Firefox 2.0:
-> onclick works
-> oncomplete, onbeforedomupdate, ondblclick doesn't work
-> onclick works only until I tried to click on the other links
IE 6.0:
-> oncomplete and onbeforedomupdate works (!)
-> onclick, ondblclick: I get a string that I loaded with the data attribute sometime before in the same application (!!!)
Opera 9.25:
-> for all client handlers this last strangest thing happens
So if you work with IE in a little test environment without other ajax communication it's no mystery anymore that you get no errors.
Please try to reproduce these new findings. -
20. Re: Need help with JSFunction
fmarwede Jan 7, 2008 1:55 PM (in response to fmarwede)To state it more precisely for you to specifiy:
Modify the code in given WAR file in this way:<body onload="callfunction2()"> <h:form id="form"> <a4j:jsFunction name="callfunction" data="#{bean.property1}" oncomplete="alert(data);" /> <a4j:jsFunction name="callfunction2" data="#{bean.property2}" oncomplete="alert(data);" /> <a4j:commandLink value="Test onclick" onclick="callfunction();"/> <br /> <a4j:commandLink value="Test oncomplete" oncomplete="callfunction();"/> <br /> <a4j:commandLink value="Test onbeforedomupdate" onbeforedomupdate="callfunction();"/> <br /> <a4j:commandLink value="Test ondblclick" ondblclick="callfunction();"/> <a4j:log popup="false"></a4j:log> </h:form>
Your bean code:public String getProperty1() { return "TestString"; } public String getProperty2() { return "body onload"; }
So you can reproduce the effect getting sometimes the wrong output in IE/Opera. -
21. Re: Need help with JSFunction
fmarwede Jan 8, 2008 9:07 AM (in response to fmarwede)Thanks in advance!
-
22. Re: Need help with JSFunction
sergeyhalipov Jan 8, 2008 9:31 AM (in response to fmarwede)I've tested again with different browsers. There is alert message "undefined" under Firefox for all events.
IE7, IE6, Opera and Safari work well. There is a "TestString" alert as expected.
I'll reopen the Jira issue and will deal with it.