Latest Tutorials| Questions and Answers|Ask Questions?|Site Map




Have Programming Question? Ask it here!
 
 
 


srikala

1 Answer(s)      5 years and 10 months ago
Posted in : Java Server Faces Questions



Advertisement
View Answers

November 11, 2008 at 5:21 AM


Hi friend,

Code to solve the problem :

<%@ taglib uri="http://richfaces.org/a4j"; prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich"; prefix="rich"%>
<%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>

<html>
<f:view>
<head>
<title>User</title>
<link href="../css/pmscss.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<h:form id="UserForm">
<rich:panel header="User">



<h:outputText value="Department"/>
<h:selectOneMenu id="department" value="#{userForm.department}">
<f:selectItems value="#{userForm.departments}" />
</h:selectOneMenu>

<h:outputText value="Status"/>
<h:selectOneMenu id="status" value="#{userForm.status}">
<f:selectItems value="#{userForm.statusses}" />
</h:selectOneMenu>




</h:panelGrid>
</rich:panel>
</h:form>
</f:view>
</body>
</html>

For more information on JSF visit to :

http://www.roseindia.net/jsf/selectOneMenu.shtml

Thanks


Related Tutorials/Questions & Answers:
 

 

 

DMCA.com