Name: Anonymous 2013-03-03 15:22
Try to explain this impossibility: http://i.xomf.com/gszrg.png
(For those without image support:
<c:if test="${t.dataMode.toString().equals('TweetWithUser')}">
<h:outputText value="frefefrefrevrev" />
<h:link value="#{t.userText}" outcome="index?userid=#{t.userId}" />
<br />
<h:outputText value="#{t.tweetText}" />
<br />
<h:outputText value="#{t.dateText}" />
</c:if>
<c:if test="${'TweetWithUser'.equals('TweetWithUser')}">
<h:outputText value="OFCOURSE IT IS" />
</c:if>
<h:outputText value="#{t.dataMode.toString()}" />
The first if block does not execute, even though the second one does and the outputText has a value of 'TweetWithUser'.)
I've pretty much given up on trying to understand Java Server Faces at this point.
(For those without image support:
<c:if test="${t.dataMode.toString().equals('TweetWithUser')}">
<h:outputText value="frefefrefrevrev" />
<h:link value="#{t.userText}" outcome="index?userid=#{t.userId}" />
<br />
<h:outputText value="#{t.tweetText}" />
<br />
<h:outputText value="#{t.dateText}" />
</c:if>
<c:if test="${'TweetWithUser'.equals('TweetWithUser')}">
<h:outputText value="OFCOURSE IT IS" />
</c:if>
<h:outputText value="#{t.dataMode.toString()}" />
The first if block does not execute, even though the second one does and the outputText has a value of 'TweetWithUser'.)
I've pretty much given up on trying to understand Java Server Faces at this point.