*
* @param component The component whose properties we're setting
*/
public void setProperties(final UIComponent component)
{
final FacesContext context = this.getFacesContext();
ComponentUtils.setValueProperty(context, component, this.getValue());
ComponentUtils.setStringProperty(BinaryFile.FILE_NAME_ATTRIBUTE, context, component, this.getFileName());
ComponentUtils.setStringProperty(BinaryFile.CONTENT_TYPE_ATTRIBUTE, context, component, this.getContentType());
ComponentUtils.setBooleanProperty(BinaryFile.PROMPT_ATTRIBUTE, context, component, this.getPrompt());
super.setProperties(component);