This content has been marked as final.
Show 6 replies
-
1. Re: Richfaces logical operators
gonorrhea Apr 9, 2009 8:13 PM (in response to mpssantos.mpssantos.gmail.com)This doesn't work:
<h:outputText value="test1" rendered="#{testSFSBAction.toDisplay1} and #{testSFSBAction.toDisplay2}"/>
getToDisplay1() and getToDisplay2() are both returning true from my JavaBean but test1 text doesn't appear in the UI.
In the Core JSF book it states on pg. 68 that "logical operators && || ! and their alphabetic variants and or not. The first variant is required for XML safety."
I also tried this:
<h:outputText value="test1" rendered="#{testSFSBAction.toDisplay1} && #{testSFSBAction.toDisplay2}"/>
but I get this error:
Error Parsing /TestSFSB.xhtml: Error Traced[line: 57] The entity name must immediately follow the '&' in the entity reference.
I've been doing Seam dev for 2 yrs now and can't figure this out. That's lame... -
2. Re: Richfaces logical operators
gonorrhea Apr 9, 2009 8:14 PM (in response to mpssantos.mpssantos.gmail.com)this works:
<h:outputText value="test1" rendered="#{testSFSBAction.toDisplay1 and testSFSBAction.toDisplay2}"/>
-
3. Re: Richfaces logical operators
mpssantos.mpssantos.gmail.com Apr 13, 2009 1:08 PM (in response to mpssantos.mpssantos.gmail.com)I worked. Thank you very much. the strange thing is that the operator ! is interpreted, but the
&&
and||
not.Its working its working.
Thanx again.
-
4. Re: Richfaces logical operators
martinstuga Nov 23, 2009 8:25 PM (in response to mpssantos.mpssantos.gmail.com)It worked!!
Thanks a lot.
-
5. Re: Richfaces logical operators
felipebutcher Jun 17, 2010 11:23 PM (in response to mpssantos.mpssantos.gmail.com)Hey there! What about "<".
I get a compile error (Start tag (<s:span>) not closed) when trying to use this operator. Seems like it tries to open a new tag instead of use the < operator. Code is:
<s:span rendered="#{myRequests.getQualificationByUser(user) < 1}">
Thanks! -
6. Re: Richfaces logical operators
felipebutcher Jun 18, 2010 12:01 AM (in response to mpssantos.mpssantos.gmail.com)