<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Content of a HtmlDialog in my javabean</title><link>https://answers.axonivy.com/questions/40/content-of-a-htmldialog-in-my-javabean</link><description>&lt;p&gt;I want use my xpert.IVY htmldialog data in my javabean . Will it be possible ?if possible how to do that?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/40/content-of-a-htmldialog-in-my-javabean" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 04 Nov 2013 11:40:17 -0500</lastBuildDate><item><title>Comment by Reguel Wermelinger on Raphael Bürgin's answer</title><link>https://answers.axonivy.com/questions/40/content-of-a-htmldialog-in-my-javabean#50</link><description>&lt;p&gt;the data class bean is always called "&lt;strong&gt;data&lt;/strong&gt;". So in your code example you should change "&lt;strong&gt;sampledata&lt;/strong&gt;" to "&lt;strong&gt;data&lt;/strong&gt;" as it is in the code snip from Raphael&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Mon, 04 Nov 2013 11:40:17 -0500</pubDate><guid>https://answers.axonivy.com/questions/40/content-of-a-htmldialog-in-my-javabean#50</guid></item><item><title>Comment by mprvijay on Raphael Bürgin's answer</title><link>https://answers.axonivy.com/questions/40/content-of-a-htmldialog-in-my-javabean#49</link><description>&lt;p&gt;import teamAllotment.TeamAllocating.TeamAllocatingData;
    import teamAllotment.sample.sampleData;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;@ApplicationScoped
@ManagedBean
public class Teamallocating 
{
private TeamAllocatingData sample1 ;
private String example="";
public Teamallocating()
{
FacesContext context = FacesContext.getCurrentInstance();
example=  (String)      context.getELContext().getELResolver().getValue(context.getELContext(), null,"sampledata");

}
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But the value of example string is Null&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mprvijay</dc:creator><pubDate>Mon, 04 Nov 2013 10:34:09 -0500</pubDate><guid>https://answers.axonivy.com/questions/40/content-of-a-htmldialog-in-my-javabean#49</guid></item><item><title>Answer by Raphael Bürgin</title><link>https://answers.axonivy.com/questions/40/content-of-a-htmldialog-in-my-javabean/46</link><description>&lt;p&gt;I think it is possible but in a limited way.
Do you want the content of a HtmlDialog?&lt;/p&gt;
&lt;p&gt;First of all you have to define the Data on your html Dialog.
In the javabean you can import this DataClass and fill it with the current content of the HTML Dialog&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;import test.TestManagedBean.TestManagedBeanData;

@ManagedBean
public class JustABean {

public void getIt(){        
    ELContext elContext = FacesContext.getCurrentInstance().getELContext(); 
    TestManagedBeanData value = (TestManagedBeanData)elContext.getELResolver().getValue(elContext, null, "data"); 
    }

}
&lt;/code&gt;&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Raphael Bürgin</dc:creator><pubDate>Thu, 31 Oct 2013 09:02:53 -0400</pubDate><guid>https://answers.axonivy.com/questions/40/content-of-a-htmldialog-in-my-javabean/46</guid></item><item><title>Comment by Reguel Wermelinger on mprvijay's question</title><link>https://answers.axonivy.com/questions/40/content-of-a-htmldialog-in-my-javabean#42</link><description>&lt;p&gt;Ivy Dataclass definitions generate normal Java Classes. So yes, basically they are usable everywhere in the Java environment. &lt;/p&gt;
&lt;p&gt;If you edit your question (especially the title), so that it is more specific, we could help you even better.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Wed, 30 Oct 2013 10:45:14 -0400</pubDate><guid>https://answers.axonivy.com/questions/40/content-of-a-htmldialog-in-my-javabean#42</guid></item></channel></rss>