-
1. Re: Need help with JSFunction
ilya_shaikovsky Dec 3, 2007 2:59 PM (in response to fmarwede)seems the problem is more complex that some fault in js Function itself
http://jira.jboss.com/jira/browse/RF-1487
Thanks! -
2. Re: Need help with JSFunction
fmarwede Dec 3, 2007 4:30 PM (in response to fmarwede)Thank you for validating that!
-
3. Re: Need help with JSFunction
fmarwede Jan 3, 2008 11:00 AM (in response to fmarwede)Why it is closed? After change to "resolved" I added a code snippet where errors come still up under newest snap shot and now it is closed without any comment.
Please test this: For me alert says "undefined".<h:form id="form"> <a4j:jsFunction name="callfunction" data="#{bean.property1}" oncomplete="alert(data);" /> <h:graphicImage value="/pages/alabama.gif" onclick="callfunction();" /> <a4j:log popup="false"></a4j:log> </h:form>
Bean code is trivial:public String getProperty1() { return "TestString"; }
-
-
5. Re: Need help with JSFunction
sergeyhalipov Jan 4, 2008 9:24 AM (in response to fmarwede)It works well for me with richfaces 3.2.0-snapshot and jsf 1.2.
-
6. Re: Need help with JSFunction
fmarwede Jan 4, 2008 9:45 AM (in response to fmarwede)I tested again with latest RF 3.2.0 snapshot and still doesn't work.
Perhaps it's something about my environment: Other libraries are copied from 3.1.3 RF Demo WAR file, so I'm using jsf 1.2 and facelets.
Firefox 2.0, Tomcat 5.5, Win XP. -
7. Re: Need help with JSFunction
sergeyhalipov Jan 4, 2008 9:56 AM (in response to fmarwede)Could you send us WAR file with some application where the problem is reproducible? You can attach it to JIRA issue.
-
8. Re: Need help with JSFunction
fmarwede Jan 4, 2008 10:27 AM (in response to fmarwede)This is strange...I built a minimal web project only with the elements needed for this topic. But with exactly the same configuration and libs. And here it works but in my application it still does not...I have to analyze that a little bit more I think...
I will attach a war file to the issue as soon as I can! -
9. Re: Need help with JSFunction
ilya_shaikovsky Jan 4, 2008 10:35 AM (in response to fmarwede)Thanks for your assistance. Up this topic also where you will able to reproduce this on sample to reopen closed bug.
-
10. Re: Need help with JSFunction
fmarwede Jan 4, 2008 11:34 AM (in response to fmarwede)Got it!
Good news: The code above works for me too and I found a workaround for my original problem (see first post of this topic).
Bad news: In my opinion the following is still a bug...
In this code only onclick works.<h:form id="form"> <a4j:jsFunction name="callfunction" data="#{bean.property1}" 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>
I can't attach a WAR-file to a closed bug. Will attach when it's open again. -
11. Re: Need help with JSFunction
sergeyhalipov Jan 4, 2008 11:50 AM (in response to fmarwede)I've reopened http://jira.jboss.com/jira/browse/RF-1487. Please, try to attach file again.
-
12. Re: Need help with JSFunction
fmarwede Jan 4, 2008 12:28 PM (in response to fmarwede)Done. Thanks for caring about this topic
-
13. Re: Need help with JSFunction
sergeyhalipov Jan 4, 2008 1:20 PM (in response to fmarwede)It seems you are using old richfaces build. The issue is reproducible with JARs from your Source1487.war, but is not reproducible with the latest build.
-
14. Re: Need help with JSFunction
fmarwede Jan 4, 2008 1:43 PM (in response to fmarwede)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?