Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

<f:param using ternary operator problem  RSS feed

 
Dan MacLeod
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
RAD 7.5 displays a "Syntax error in EL" message because of the ternary operator listed below. Is this not a valid option or am I formatting the ternary operator impropertly?


<h:outputFormat id="nofOutput" styleClass="nms_outputFormat" value="{0}" style="width: 40px">
<f:param id="param1" name="msg1" value="#{sessionScope.nof != null ? sessionScope.nof: ''}"></f:param>
</h:outputFormat>

Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!