Axon.ivy 7.0 - the Digital Business Platform - is out now...

We need to integrate some JavaScript code in the HTML Dialog and we need the good way to call JavaScript from HTML Dialog View or Logic and pass some data. How to do that? Thanks.

asked 14.11.2013 at 09:16

Rifat%20Binjos's gravatar image

Rifat Binjos
accept rate: 0%

From the view you can call javascript by binding it to the available widget events. For example on the command button you can bind your script to "onClick":

<p:commandButton onclick="alert('hi javascript world' + #{data.myString})"/>

Primefaces also makes it possible to execute javascript within a bean (in the process logic). A sample can be found in the primefaces showcase.


answered 14.11.2013 at 09:57

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
accept rate: 68%

edited 14.11.2013 at 11:21

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 14.11.2013 at 09:16

Seen: 1,091 times

Last updated: 14.11.2013 at 11:21