• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is ? in JSF

 
Sam Saha
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am just wondering if somebody can explain what does ? means in JSF and how does it work. It would be great if you can provide an example to understand how it works for JSF.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65516
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some context might be helpful.
 
Sam Saha
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using the same form for the different conditions and I want to display different output as the condition match. I have a method called isAutoPolicy() in the pagecodeBase class and I want to show up different output for AUTO/HOME

If the JSP page is called Auto.jsp


 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65516
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's the ternary operator of the EL (Expression Language). Works pretty much the same as the similar Java operator.
 
Sam Saha
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!!!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!