This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to call javascript function from jsf

 
anitha meena
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

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

Thanking you in Advance
 
anitha meena
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Please help me to solve this issue , still no reply from any body
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic