• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Alternative tag for a4j:jsFunction in jsf

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,

I am using a4j:jsFunction in a4j:form to call the bean method and get the data and also calling the js function, i am looking to replace the a4j:jsFuntion tag with other alternative tag,
because a4j response contains duplicate content.

here is my code

<a4j:form>
<a4j:jsFunction name = "clusters"
data = "#{bean.generateContent()}"
ajaxSingle = "true"
ignoreDupResponses = "true"
oncomplete = "clusterInitialize(data);">
</a4j:jsFunction>
</a4j:form>

<script type = "text/javascript">
window.onload = clusters;
</script>

which fetches the data from bean and calls the js method by passing the fetching data.

here i wanted to replace the a4j:jsFunction tag with JSF/Ajax tag to do this
can anyone help me out on this?

Thanks in Advance.
reply
    Bookmark Topic Watch Topic
  • New Topic