icefaces


How to get values in dropdown list from database in icefaces?


i just wanna list the list of employee names from database in the dropdown list using ice faces . can anyone suggest me how to write the query in icefaces page to get the list of employees in the database . say table name is "employee" .
Thanks in advance .
I do it like this.
in your bean call your business class
e.g:
ArrayList<SelectItem> selectEmployees = new ArrayList<SelectItem>();
ArrayList<Employee> employees = company.getEmployees(); //this one calls the EmployeeDAO to get the records from database.
for(int i = 0; i < employees.size(); i++){
selectEmployees.add(new SelectItem(employes.get(i).getId(),employees.get(i).getName));
}
now you can use selectEmployees as the value of the selectOneMenu.

Related Links

Icefaces ace:autoCompleteEntry not working
ICEFaces: values for the “icon” attribute
EffectQueue and chaining effects in IceFaces 1.8
Ace Datatable row selector with paginator
How to customize internal server error popup?
How to use more than one ace:fileEntry tag in the same page?
Enabling ICEfaces compat leads to not recognizing h:head and h:body
Passing parameter to <ice:rowSelector>'s clickListener attribute
ICEfaces configured for view, but h:head and h:body components are required
ace:tabSet style is corrupted when using ICEFaces 3
How to configure rime style in ICEfaces 3
scrolling changes the size of the ice datatable headers
How to get values in dropdown list from database in icefaces?
Data pager in icefaces not paging
use sbt for generate a webapp with icefaces
Cancel button Icefaces with immediate=true

Categories

HOME
arrays
python
makefile
ajax
security
mql4
ncurses
nuxeo
cocos2d-x-3.0
playframework
survival-analysis
automated-tests
jscript
apple-numbers
webdav
branch.io
defragmentation
proguard
sudo
slim-3
rfid
pdo
mod-pagespeed
eclipse-luna
r-lavaan
alfresco-share
off-canvas-menu
google-openid
pyephem
boolean-expression
os161
hhvm
avplayeritem
iup
profile
bcrypt
printdocument
guile
ui5
emv
i3
hibernate-cache
consumer
preg-grep
large-data
initializer
magiczoomplus
google-account
resuming-training
rich-text-editor
catia
tableau-server
dwarf
crystal-reports-8.5
info
heroku-postgres
selenium-firefoxdriver
gmt
rsqlite
pspice
payu
nsfetchedresultscontrolle
sql-import-wizard
xib
icefaces
slam-algorithm
excon
ruby-2.0
foxit
instruments
elastix
android-recyclerview
java.util.calendar
mysqldumpslow
apigee-baas
risk-analysis
stream-framework
prezto
pylearn
uos
start-job
django-1.6
left-recursion
tcpreplay
fragment-tab-host
sortable
jstat
bullet
codeigniter-a3m
sgml
zipalign
opensocial
visual-studio-addins
pyjade
magicalrecord-2.2
document-database
cdata
trimming
ruboto
carddav
sharpmap
icefaces-3
isolatedstorage
hobo
ihttphandler
.app
webrat
web-statistics
hmacsha1
weborb
document-library

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App