Can you run the following code correctly?
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <%@ taglib uri="http://myfaces.apache.org/extensions" prefix="x"%>
<f:view>
<h:form id="form">
<x:inputCalendar id="date" value="#{eventHandler.selectedDate}" renderAsPopup="true"
popupTodayString="Today String" popupWeekString="Week String" />
<h:selectOneMenu id="category" value="#{eventHandler.selectedCategory}">
<f:selectItems id="items" value="#{eventHandler.categories}" />
</h:selectOneMenu>
<h:commandButton id="submit" title="Submit" action="succes"/>
</h:form>
</f:view>
//-----------------------------------------------------------------------------------------------------------------
The method:
public List getCategories(){
ArrayList retValue=new ArrayList();
SelectItem select=new SelectItem(null,"Horror");
retValue.add(select);
select=new SelectItem(new Boolean(true),"Comedy");
retValue.add(select);
select=new SelectItem(new Boolean(true),"Drama");
retValue.add(select);
select=new SelectItem(new Boolean(true),"Opera");
retValue.add(select); return retValue;
}Thank you in advance, Kostas

