Search in sources :

Example 1 with Applicant

use of com.liferay.faces.demos.applicant.richfaces.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.richfaces.facelets.dto.Attachment) Applicant(com.liferay.faces.demos.applicant.richfaces.facelets.dto.Applicant) File(java.io.File) UploadedFile(com.liferay.faces.bridge.model.UploadedFile) PostConstruct(javax.annotation.PostConstruct)

Aggregations

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