• Post Reply Bookmark Topic Watch Topic
  • New Topic

Alternative tag for a4j:jsFunction in jsf  RSS feed

 
kishi kiran
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!