}
@Override
public void decode(FacesContext facesContext, UIComponent uiComponent) {
HtmlInputFile htmlInputFile = (HtmlInputFile) uiComponent;
Map<String, List<UploadedFile>> uploadedFileMap = getUploadedFileMap(facesContext);
if (uploadedFileMap != null) {
String clientId = uiComponent.getClientId(facesContext);
List<UploadedFile> uploadedFiles = uploadedFileMap.get(clientId);
if ((uploadedFiles != null) && (uploadedFiles.size() > 0)) {
Part part = new HtmlInputFilePartImpl(uploadedFiles.get(0), clientId);
htmlInputFile.setTransient(true);
htmlInputFile.setSubmittedValue(part);
}
}
RendererUtil.decodeClientBehaviors(facesContext, uiComponent);
}