• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to compare two variables in jsf?  RSS feed

 
Raghu Sha
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Having two values


and eq also

above condition is not working.
Both are same object (.
Please suggest how to check?
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all, no matter what Oracle says, we strongly discourage the use of JSTL in JSF. It may work better now than it used to, but it's still a big problem, and in almost all cases, there's a cleaner JSF-native way to do the same thing. In particular, the c:set construct shouldn't be use in JSF.

Secondly, JSF is a very pure implementation of a template-based Model/View/Controller system. The Controllers are already written for you and pre-supplied as part of JSF. The Models are done as JavaBeans. The Views are defined as templates, thus should not have executable code in them. Views may contain EL expressions that control the rendering of the view, but business logic has no place in them at all. And if you value your sanity, even the display-related logic should be done in a backing bean if it is the least bit complicated.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!