I am in the process of upgrading an old JSF 1 web application to JSF 2 (specifically from MyFaces 1.1 to MyFaces 2.2.12). The old application used JSP which I am right now replacing with Facelets. I am mainly using Migrating from JSF 1.2 to JSF 2.0 as a guide.
There are a few component libraries used in the old version of the web application that seemingly aren't supported in Facelets for which I need to find suitable replacements.
One of those are the "EasySi" tags from the JSF-Comp project. We use the "selectItems" tag from that library, but according to the last answer in this thread on the PrimeFaces forum, EasySi indeed only supports JSP by default.
According to the JSF 2.2/Facelets documention of selectItems, the selectItems
tag in the core library specifically supports the itemValue
and itemLabel
attributes (among others) since version 2. These are the attributes we used with the EasySi version of selectItems
in our old JSP templates.
So, my question is:
Does the selectItems
from the JSF 2 core tag library has the exact same functionality as the selectItems
from the JSF 1 component library EasySi? In other words, can I replace something like
<%@ taglib uri="http://sourceforge.net/projects/jsf-comp/easysi" prefix="si" %>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
...
<t:selectOneMenu>
<si:selectItems value="#{someExpression}" var="item" itemLabel="#{item}" itemValue="#{item}"/>
</t:selectOneMenu>
in a JSF 1 JSP template with something like
<!DOCTYPE html>
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:t="http://myfaces.apache.org/tomahawk">
...
<t:selectOneMenu>
<f:selectItems value="#{someExpression}" var="item" itemLabel="#{item}" itemValue="#{item}"/>
</t:selectOneMenu>
in my Facelet and expect the same behavior as before?