Dear Ivy team I would like to know is there any way to trigger a HTML dialog from java code. Lets me describe the situation: I have a page that contains a method named "run" In HTML view I have a button to call a method from backing bean "Bean" Now what we need to how to trigger method "run" from the backing bean We can achieve this only when the method belongs to an Ivy component by using something like this Unfortunately, this way only work for Ivy's component, not for the page. So my question is do we have any way to call HTML dialog's method from java? asked 04.12.2019 at 04:53 hieulam |
Hmm... You may try to run an EL expression from you java bean like this:
answered 06.12.2019 at 03:44 Lukas Lieb ♦♦ |
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 04.12.2019 at 04:53
Seen: 1,824 times
Last updated: 06.12.2019 at 03:45
Did you consider to write the run method in this bean (ivy script content in the bean method run)? With this approach you can run this method easily from the bean and from the htmldialog too (e.g #{bean.run()})
Kind regards lukas
Thank Lukas for your suggestion. Moving the logic from ivy script to bean works for me but impossible in my situation because the method from HTML dialog contains a whole workflow with many ivy's elements. That means moving HTML dialog method to java is impossible