Search in sources :

Example 1 with Applicant

use of com.liferay.faces.demos.applicant.alloy.facelets.dto.Applicant in project liferay-faces-bridge-impl by liferay.

the class ApplicantBacking method postConstruct.

@PostConstruct
public void postConstruct() {
    applicant = new Applicant();
    FacesContext facesContext = FacesContext.getCurrentInstance();
    File attachmentDir = attachmentManager.getAttachmentDir(facesContext);
    List<Attachment> attachments = attachmentManager.getAttachments(attachmentDir);
    applicant.setAttachments(attachments);
}
Also used : FacesContext(javax.faces.context.FacesContext) Attachment(com.liferay.faces.demos.applicant.alloy.facelets.dto.Attachment) Applicant(com.liferay.faces.demos.applicant.alloy.facelets.dto.Applicant) UploadedFile(com.liferay.faces.util.model.UploadedFile) File(java.io.File) PostConstruct(javax.annotation.PostConstruct)

Aggregations

Applicant (com.liferay.faces.demos.applicant.alloy.facelets.dto.Applicant)1 Attachment (com.liferay.faces.demos.applicant.alloy.facelets.dto.Attachment)1 UploadedFile (com.liferay.faces.util.model.UploadedFile)1 File (java.io.File)1 PostConstruct (javax.annotation.PostConstruct)1 FacesContext (javax.faces.context.FacesContext)1