<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Mechanism to resolve data and logic of HtmlUserDialog</title><link>https://answers.axonivy.com/questions/2549/mechanism-to-resolve-data-and-logic-of-htmluserdialog</link><description>&lt;p&gt;Hi ivyteam&lt;/p&gt;
&lt;p&gt;As you know in HtlmUserDialog we can use #{data} or #{logic} to access the attribute/method on ivy from view(xhtml). 
No matter which component/page you have, you can use #{data} and #{logic} anywhere and it always work in correct context, There is no mistake that you use #{data} from component A but it return data of component B. That's great.&lt;/p&gt;
&lt;p&gt;So i have two questions:
 - Can you share the mechanism how did you resolve those keywords in ivy (ex: some class that i can explore by myself), i guess that there is a managed bean(view scope) behind the scene?
 - If i have the page with some components as below picture, can i access #{data} of any components i want programmatically? I tried to resolve EL #{data} after the page has been loaded and it always return data of &lt;em&gt;Page A&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/Untitled_IZPJdpz.png"&gt;&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/2549/mechanism-to-resolve-data-and-logic-of-htmluserdialog" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 03 Apr 2017 18:07:36 -0400</lastBuildDate><item><title>Answer by Genzer Hawker</title><link>https://answers.axonivy.com/questions/2549/mechanism-to-resolve-data-and-logic-of-htmluserdialog/2563</link><description>&lt;p&gt;Hi &lt;a href="http://answers.axonivy.com/users/118/trungdv"&gt;&lt;a href="http://answers.axonivy.com/users/118/trungdv"&gt;@trungdv&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Ivy needs to introduce custom &lt;code&gt;ELResolver&lt;/code&gt; to handle resolving the &lt;code&gt;#{logic}&lt;/code&gt; and &lt;code&gt;#{data}&lt;/code&gt;. So you may want to start looking at the class &lt;code&gt;IvyLogicBeanResolver&lt;/code&gt; and &lt;code&gt;IvyDataBeanResolver&lt;/code&gt; and work out how Ivy integrate the expression with its &lt;code&gt;DialogRuntimeManager&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;But I think they are not part of the public API, so any code relying on these class are subject to be changed from release to release. So be careful then.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Genzer Hawker</dc:creator><pubDate>Mon, 03 Apr 2017 18:07:36 -0400</pubDate><guid>https://answers.axonivy.com/questions/2549/mechanism-to-resolve-data-and-logic-of-htmluserdialog/2563</guid></item></channel></rss>