0

How can i display different bean property value using databinding?

asked 2009-08-20 10:19:18 +0800

SerFingolfin gravatar image SerFingolfin
70 2

Hi everybody.
My binded bean has a String property called "side".
But i want to display, in my binded grid, side property differently as it is.
For example :
if side values "a" i want to display "a side".
if side values "xxx" i want to display another string message.
How can i do it using data binding?
Thanks in advance

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2009-08-20 11:44:02 +0800

robertpic71 gravatar image robertpic71
1275 1

1.) You can use typeconverters.
Check my page for some simple examples.

2.) Extend your beans...

/Robert

link publish delete flag offensive edit

answered 2009-08-20 13:29:09 +0800

SerFingolfin gravatar image SerFingolfin
70 2

Thanks a lot.
I solved using typeconverters.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-08-20 10:19:18 +0800

Seen: 151 times

Last updated: Aug 20 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More