IT WORLD

Topic

  • chm
  • Compiz
  • Database
  • ettercap
  • firefox
  • flash
  • Fonts
  • GRUB
  • Gutsy
  • Hardy
  • ireport
  • JasperReport
  • Java
  • JDOM
  • Jetty
  • JSF
  • KibaDock
  • Linux
  • MAC
  • MacOS
  • Mail
  • MBR
  • Multimedia
  • Netbeans
  • OpenOffice
  • Opera
  • OSX
  • pdf
  • PostgreSQL
  • Remote Desktop
  • Samba
  • share
  • Sniff
  • Stardict
  • Thunderbird
  • Tomcat
  • Ubuntu
  • Unbuntu
  • Vista
  • Web Browser
  • Web Server
  • Wireless
  • XML

History

  • ►  2009 (3)
    • ►  December (1)
    • ►  August (1)
    • ►  June (1)
  • ►  2008 (16)
    • ►  December (1)
    • ►  November (1)
    • ►  October (1)
    • ►  September (3)
    • ►  August (1)
    • ►  July (1)
    • ►  June (4)
    • ►  May (2)
    • ►  April (2)
  • ▼  2007 (20)
    • ►  October (5)
    • ►  August (3)
    • ►  July (4)
    • ▼  June (8)
      • Opera on Ubuntu
      • Install PostgreSQL on Ubuntu
      • Netbeans JSF!!!!
      • rar archive!
      • Multimedia
      • Wine Instructions!
      • Setup postgreSQL in Ubuntu
      • Gõ tiếng Việt trong Ubuntu 6

About me

misamap
View my complete profile

Sunday, June 24, 2007

Netbeans JSF!!!!

public DataModel getTbcompanys() {
EntityManager em = getEntityManager();
try{
Query q = em.createQuery("select object(o) from Tbcompany as o ORDER BY o.id");
q.setMaxResults(batchSize);
q.setFirstResult(firstItem);
model = new ListDataModel(q.getResultList());
return model;
} finally {
em.close();
}
}

trong file Controller
Posted by misamap at 10:04 PM
Labels: Netbeans

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)