PDA

View Full Version : Reg: Drop down disbale



sidarha
11-21-2007, 01:39 PM
in my jsf project i have requirement in which i want to disable drop down menu, how's it possible.
see exact scenario is i have 3 drop down menu according to 1st drop down menu db fetches data into 2nd drop down menu and similarly according to previous 2 last drop down menu fetches the data..
at the time i select 1st drop down , other 2 should be disabled, and same for other case.


<% String basePath= request.getContextPath(); %>
<h:panelGroup id="selectDomainsPanel">
<f:verbatim>
<head>
<link rel="stylesheet" type="text/css" href="<%=basePath %>/css/nrsStyle.css">
<script language="JavaScript" src="<%=basePath %>/js/DataTableSelection.js"></script>
</head>
</f:verbatim>
<f:loadBundle
basename="com.nortel.ems.mgmt.nrsm.messages.SelectDomainsMessageBundle"
var="msg" />
<h:outputText value="#{msg.limit}" />
<f:verbatim><p></p>&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; </f:verbatim>

<h:selectOneMenu
id="SDMenu"
valueChangeListener="#{DomainSelectionEventHandler.handleServiceDomainSelection}"
>
<f:selectItems
id="SDMenuVal"
value="#{DomainSelectionEventHandler.serviceDomains}"/>

</h:selectOneMenu >

<f:verbatim> &nbsp; &nbsp; &nbsp; </f:verbatim>

<h:selectOneMenu
id="L1DMenu"
valueChangeListener="#{DomainSelectionEventHandler.handleL1DSelection}"
>
<f:selectItems
id="L1DMenuVal"
value="#{DomainSelectionEventHandler.l1Domains}"/>

</h:selectOneMenu >

<f:verbatim> &nbsp; &nbsp; &nbsp; </f:verbatim>
<h:selectOneMenu
id="L0DMenu"
valueChangeListener="#{DomainSelectionEventHandler.handleL0DSelection}">
<f:selectItems
id="L0DMenuVal"
value="#{DomainSelectionEventHandler.l0Domains}" />

</h:selectOneMenu >