aspose file tools*
The moose likes JSF and the fly likes how to call javascript function from jsf Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "how to call javascript function from jsf" Watch "how to call javascript function from jsf" New topic
Author

how to call javascript function from jsf

anitha meena
Ranch Hand

Joined: Oct 22, 2007
Posts: 40
Hi all,

I am working on a jsf page in which it contains a part where am going to retrieve the images from
a particluar folder(let us assume the current folder) and pass them to a javascript function to make marquee for those set of
images

so the javascript is called runAdv
and passing the parameters (the name of the images separeted by delimater ',')
runAdv(image1,image2,image3)

I have to keep checking the folder which contains the images for any changes
(if the user adds/deletes images then we have to refresh the marque not
the whole page )

I have used a jax poll which check for any changes in the images .

the problem is that:
how do i call this javascript runAdv if ajax poll return true , as in the first time i have called it when the page
loads.


I really feel that my current approach to deal with this issue is not the right and
the optimum one

please help me to fix this issue and recommand a other solution if there is , i do beleive that there are
some other ideas and solutions for such case.

main.xhtml



myjs.js





anitha meena
Ranch Hand

Joined: Oct 22, 2007
Posts: 40
Hi All,

Any one can give me some tips regarding this issue .....

Thanking you in Advance
anitha meena
Ranch Hand

Joined: Oct 22, 2007
Posts: 40
Hi All,

Any reply for this question , is this issue can be fixed using the jsf components or i have to create custom component ....
anitha meena
Ranch Hand

Joined: Oct 22, 2007
Posts: 40
Hi All,

Please help me to solve this issue , still no reply from any body
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to call javascript function from jsf