This content has been marked as final.
Show 6 replies
-
1. Re: problem in a4j:jsFunction ?
fantaisie Jun 7, 2010 5:34 AM (in response to orkun)try
<a4j:jsFunction name="showHey"><a4j:actionparam name="pram" assignTo="#{haritaBean1.gmaplist}" actionListener="#{gheyelandata}"> </a4j:actionparam></a4j:jsFunction> -
2. Re: problem in a4j:jsFunction ?
orkun Jun 7, 2010 7:25 AM (in response to fantaisie)thank you
But, I was able to get the list from the server to jsp. I checked with <rich:dataList. it ran normally
what I couldn't achive is to pass the list to javascript and manipulate in there.
in my case object "data" how is its value be retrieved ?
regards
-
3. Re: problem in a4j:jsFunction ?
ilya_shaikovsky Jun 7, 2010 7:33 AM (in response to orkun)try to use alert(data[0])
-
4. Re: problem in a4j:jsFunction ?
orkun Jun 8, 2010 4:11 AM (in response to ilya_shaikovsky)thank you
data[0] just gives "[object Object]".
ı need its value
-
5. Re: problem in a4j:jsFunction ?
ilya_shaikovsky Jun 8, 2010 4:22 AM (in response to orkun)Which objects in your gmaplist? If for example it's list of MyCustomObject with name and id fields use alert(data[0].name)
-
6. Re: problem in a4j:jsFunction ?
orkun Jun 8, 2010 4:34 AM (in response to ilya_shaikovsky)Real thank you
and
Long live !
it is same as java