Examples of Kategori


Examples of bukualamat.entity.Kategori

            throws ServletException, IOException {
       
        String strIdKategori = request.getParameter("id");
        //konversi string menjadi Long
        Long id = Long.valueOf(strIdKategori);
        Kategori k = bukualamatServiceBean.cariKategoriById(id);
       
       
        response.setContentType("text/html;charset=UTF-8");
        PrintWriter out = response.getWriter();
        try {
            /*
             * TODO output your page here. You may use following sample code.
             */
            out.println("<html>");
            out.println("<head>");
            out.println("<title>Detail Kategori</title>");           
            out.println("</head>");
            out.println("<body>");
            out.println("<h1>Detail Kategori</h1>");
            out.println("<h2>ID Kategori : "+k.getId()+"</h2>");
            out.println("<h2>Nama Kategori : "+k.getNama()+"</h2>");
           
            out.println("</body>");
            out.println("</html>");
        } finally {           
            out.close();
View Full Code Here

Examples of bukualamat.entity.Kategori

     */
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
       
        String nama = request.getParameter("nama");
        Kategori k = new Kategori();
        k.setNama(nama);
       
        bukualamatServiceBean.simpan(k);
       
        response.setContentType("text/html;charset=UTF-8");
        PrintWriter out = response.getWriter();
View Full Code Here

Examples of bukualamat.entity.Kategori

       
        // simpan ke database menggunakan EJB
        bukualamatServiceBean.simpan(kategori);
       
        // setelah tersimpan, reset menjadi object kosong lagi
        kategori = new Kategori();
       
        return "list?faces-redirect=true";
    }
View Full Code Here

Examples of bukualamat.entity.Kategori

       
        return "list?faces-redirect=true";
    }
   
    public String tambah(){
        kategori = new Kategori();
        return "form?faces-redirect=true";
    }
View Full Code Here

Examples of bukualamat.entity.Kategori

        return bukualamatServiceBean.cariKategoriById(id);
    }

    @Override
    public String getAsString(FacesContext context, UIComponent component, Object value) {
        Kategori k = (Kategori) value;
        return k.getId().toString();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.