I want use my xpert.IVY htmldialog data in my javabean . Will it be possible ?if possible how to do that?

asked 29.10.2013 at 13:42

mprvijay's gravatar image

mprvijay
(suspended)
accept rate: 0%

edited 04.11.2013 at 09:34

Ivy Dataclass definitions generate normal Java Classes. So yes, basically they are usable everywhere in the Java environment.

If you edit your question (especially the title), so that it is more specific, we could help you even better.

(30.10.2013 at 10:45) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image

I think it is possible but in a limited way. Do you want the content of a HtmlDialog?

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

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"); 
    }

}
link

answered 31.10.2013 at 09:02

Raphael%20B%C3%BCrgin's gravatar image

Raphael Bürgin
(suspended)
accept rate: 55%

edited 31.10.2013 at 09:03

import teamAllotment.TeamAllocating.TeamAllocatingData; import teamAllotment.sample.sampleData;

@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");

}
}

But the value of example string is Null

(04.11.2013 at 10:34) mprvijay mprvijay's gravatar image

the data class bean is always called "data". So in your code example you should change "sampledata" to "data" as it is in the code snip from Raphael

(04.11.2013 at 11:40) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image
Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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

Tags:

×52
×51

Asked: 29.10.2013 at 13:42

Seen: 3,867 times

Last updated: 04.09.2014 at 04:31