This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
now, the code flow should reach block 1, but it is interpreting remainderQty as string and failing the comparison and end up reaching block 2.
Can anyone experienced the same? What is the alternative/fix available for the same?
First of all, "Code should not flow" in your View Definition. The View Definition is not the place to put logic. It pollutes the Model/View/Controller Separation of Concerns contract. Logic should be in backing beans. The View should only contain graphic templates.
Secondly, JSTL is not recommended with JSF. JSTL assumes a servet/JSP architecture and JSF works on completely different principles, so JSTL frequently malfunctions. For any View-related conditions that you need to specify, JSF has native constructs that work much better than JSTL.
Finally, the View Template Language (also known as View Definition Language or ".xhtml") is an XML format document and therefore must adhere to the XML syntax rules. Because the less-than, greater-than, quote, apostrohe and ampersand characters all have specific meanings in XML, any attempt to insert them into text values can result in ambiguous syntax which must be resolved by using CDATA or entity escapes.
An IDE is no substitute for an Intelligent Developer.
Joined: Dec 07, 2010
thanks Tim for the reply.
I have used the following facelet and resolved the issue.
where ui is "xmlns:ui="http://java.sun.com/jsf/facelets".