Hi All,
Why my code doesn't works? After code execution on
JSP page I get empty selectOneMenu. Please help me!
Page: test1.jsp:
<html>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<f:view>
<head>
<link href="styles.css" rel="stylesheet" type="text/css"/>
<title>
</title>
</head>
<body>
<h:form >
<h:selectOneMenu value="#{test1.value}">
<f:selectItems value="#{test1.values}" />
</h:selectOneMenu>
</h:form>
</body>
</f:view>
</html>
Bean: Test1.java
faces-config.xml:
<managed-bean>
<managed-bean-name>test1</managed-bean-name>
<managed-bean-class>com.va.epms.dept.Test1</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>