Search in sources :

Example 6 with InputFile

use of com.liferay.faces.alloy.component.inputfile.InputFile in project liferay-faces-alloy by liferay.

the class InputFileRendererBase method encodeAlloyAttributes.

@Override
public void encodeAlloyAttributes(FacesContext facesContext, ResponseWriter responseWriter, UIComponent uiComponent) throws IOException {
    InputFile inputFile = (InputFile) uiComponent;
    boolean first = true;
    Boolean appendNewFiles = inputFile.isAppendNewFiles();
    if (appendNewFiles != null) {
        encodeAppendNewFiles(responseWriter, inputFile, appendNewFiles, first);
        first = false;
    }
    encodeHiddenAttributes(facesContext, responseWriter, inputFile, first);
}
Also used : InputFile(com.liferay.faces.alloy.component.inputfile.InputFile)

Aggregations

InputFile (com.liferay.faces.alloy.component.inputfile.InputFile)6 ResponseWriter (javax.faces.context.ResponseWriter)3 FileUploadEvent (com.liferay.faces.alloy.component.inputfile.FileUploadEvent)1 I18n (com.liferay.faces.util.i18n.I18n)1 UploadedFile (com.liferay.faces.util.model.UploadedFile)1 JavaScriptFragment (com.liferay.faces.util.render.JavaScriptFragment)1 List (java.util.List)1 Locale (java.util.Locale)1 Application (javax.faces.application.Application)1 ViewHandler (javax.faces.application.ViewHandler)1 NamingContainer (javax.faces.component.NamingContainer)1 UIViewRoot (javax.faces.component.UIViewRoot)1 ExternalContext (javax.faces.context.ExternalContext)1