private void buildForm() {
fieldGroup = new PersistenceFieldGroup(beanItem);
fieldGroup.setFieldFactory(new PersistenceFieldGroupFieldFactory());
formLayout.addComponent(nimField = fieldGroup.buildAndBind("NIM", "NIM"));
nimField.addValidator(new BeanValidator(Mahasiswa.class, "NIM"));
((TextField) nimField).setNullRepresentation("");
((TextField) nimField).setInputPrompt("9 digit Nomor Induk Mahasiswa");
formLayout.addComponent(namaField = fieldGroup.buildAndBind("Nama Lengkap", "nama"));
namaField.addValidator(new BeanValidator(Mahasiswa.class, "nama"));
((TextField) namaField).setNullRepresentation("");
formLayout.addComponent(tanggalLField = fieldGroup.buildAndBind("Tanggal Lahir", "tanggalLahir"));
tanggalLField.addValidator(new BeanValidator(Mahasiswa.class, "tanggalLahir"));
formLayout.addComponent(sksField = fieldGroup.buildAndBind("SKS", "sks"));
sksField.addValidator(new BeanValidator(Mahasiswa.class, "sks"));
((TextField) sksField).setNullRepresentation("");
formLayout.addComponent(activeField = fieldGroup.buildAndBind("Aktif", "active"));
activeField.addValidator(new BeanValidator(Mahasiswa.class, "active"));
formLayout.addComponent(dosenPembimbingField = fieldGroup.buildAndBind("Dosen Pembimbing", "dosenPembimbing"));
PopupView view = new PopupView(new PopupView.Content() {
@Override