Ankur Thakur

Greenhorn
+ Follow
since Nov 12, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ankur Thakur

what ever you want to get or to add that must be belong to Select item class or that type always return List
See this code here


public void setSelectSection(String selectSection) {
this.selectSection = selectSection;
}

public List<SelectItem> getSelectSelectioncatagorey() {
selectSelectioncatagorey = new ArrayList<SelectItem>();
selectSelectioncatagorey.add(new SelectItem("", "Select Catagorey"));
selectSelectioncatagorey.add(new SelectItem("PIN", "PIN"));
selectSelectioncatagorey.add(new SelectItem("PRN", "PRN"));
return selectSelectioncatagorey;
}
14 years ago
JSF
Theist what ever you want to get or to add that must be belong to Select item class or that type always return List
See this code here


public void setSelectSection(String selectSection) {
this.selectSection = selectSection;
}

public List<SelectItem> getSelectSelectioncatagorey() {
selectSelectioncatagorey = new ArrayList<SelectItem>();
selectSelectioncatagorey.add(new SelectItem("", "Select Catagorey"));
selectSelectioncatagorey.add(new SelectItem("PIN", "PIN"));
selectSelectioncatagorey.add(new SelectItem("PRN", "PRN"));
return selectSelectioncatagorey;
}
14 years ago
JSF
two ways we have here
One is here described below and another one with hep of renedered

<h:selectOneMenu id="catagoreyEmail"
value="#{managedEmailRespondent.selectCatagoreyEmail}" valueChangeListener="#{managedEmailRespondent.selectCatagoreyEmailValue}" [color=red]onchange="this.form.submit();"[/color] :D >
<f:selectItems id="selectionCatagoreyEmailBody"
value="#{managedEmailRespondent.selectSelectionCatagoreyEmail}" />
</h:selectOneMenu>
14 years ago
JSF