Hello,

I am having trouble with connecting my java bean output to the HTML User Dialog string. Basically I want the string output of my java bean to go to my HTML User Dialog data string. How do I do this?

Thanks!

asked 07.11.2013 at 12:50

mprvijay's gravatar image

mprvijay
(suspended)
accept rate: 0%

edited 08.11.2013 at 09:06

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958


It's a standard JSF problem:

  1. Try to communicate directly between the two beans. Resolve them over the faces context and then call getters / setters. Answer: Content of a HtmlDialog in my javabean
  2. The other possible (but not recommended way) would be to access the setter in an el-expression within the view: #{data.setMyString(javaBean.evaluateString())}. This is possible since within ivy expression language 2.2 is supported (which brought method calls for el-expressions)
link

answered 08.11.2013 at 09:01

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958
accept rate: 70%

edited 08.11.2013 at 09:07

For a better understanding: Could you explain, why is the second solution not recommended?

(08.11.2013 at 09:31) Nikel Weis Nikel%20Weis's gravatar image

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:

×58
×52

Asked: 07.11.2013 at 12:50

Seen: 2,615 times

Last updated: 08.11.2013 at 09:31