Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

An EL question

 
Higgledy Smith
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In JSF, how can I refence two attributes defined in the backing bean?

I tried both of these, but neither worked. :


OR



Thank you.>
 
Rainer Eschen
author
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The first syntax should work. But, it misses the object reference, or the attribute reference ;-). You always need something like



Your backing bean offers getter for both attributes then.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic