The following JSF code contains two separate . Let's look at it.
xmlns:h="http://java.sun.com/jsf/html"
xmlns:c="http://java.sun.com/jsp/jstl/core">
JSF ELIt simply displays value=10 on the JSF page at run time. I need to represent the above same with the following if-elseif-else (Java context).
if(row.equals(10))
{
//Do something...(JSF stuff)
}
else if(row.equals(15))
{
//Do something...(JSF stuff)
}
else
{
//Do something...(JSF stuff)
}
How can it be represented with Expression Language (EL) using JSF?
解决方案
The following code the easiest way: