0

get instance method in zul

asked 2013-09-25 06:57:05 +0800

jatindersingh gravatar image jatindersingh
93 5
http://javaj2eehub.com/

updated 2013-09-25 07:48:33 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

Hi there, is there anyway we access the Instance variables method in .zul using expression Scenario is that i have a instance variable class type like UserRecord it has getUserName() method and i want to use in zul without creating getter and setter method like

Class Test { private UserRecord userRecord=new  UserRecord(); }



label value="${UserRecord.userName}"

... but it is not working.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-09-27 02:53:08 +0800

cor3000 gravatar image cor3000
4332 1 7
ZK Team

Hi,

since the ZEL (ZK expression language) is based on the jsp EL it does not support field access without a getter.

also see here: http://stackoverflow.com/questions/5834446/accessing-a-field-of-a-java-class-directly-in-el

Robert

link publish delete flag offensive edit
Your answer
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
1 follower

RSS

Stats

Asked: 2013-09-25 06:57:05 +0800

Seen: 15 times

Last updated: Sep 27 '13

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