{"id":129,"date":"2014-07-16T14:12:05","date_gmt":"2014-07-16T13:12:05","guid":{"rendered":"http:\/\/elstarit.nl\/?p=129"},"modified":"2014-07-16T14:17:16","modified_gmt":"2014-07-16T13:17:16","slug":"bootstrap-ui-xpages-file-upload-component","status":"publish","type":"post","link":"https:\/\/elstarit.nl\/?p=129","title":{"rendered":"Bootstrap UI for XPages File Upload component"},"content":{"rendered":"<p>On my current XPages project, I use bootstrap, as I wrote in my <a title=\"Bootstrap datetimepicker for XPages\" href=\"http:\/\/elstarit.nl\/?p=118\" target=\"_blank\">previous blog item<\/a>.<\/p>\n<p>In the end I ended up with not so pretty file upload control on,\u00a0so after some searching I found a very <a title=\"Whipping file inputs into shape with Bootstrap 3\" href=\"http:\/\/www.surrealcms.com\/blog\/whipping-file-inputs-into-shape-with-bootstrap-3\" target=\"_blank\">neat example<\/a>.<\/p>\n<p>It require only an element around your file upload control, some CSS and a few lines of JQuery code to make it pretty.<\/p>\n<p>[dropshadowbox align=&#8221;none&#8221; effect=&#8221;lifted-both&#8221; width=&#8221;400px&#8221; height=&#8221;&#8221; background_color=&#8221;#ffffff&#8221; border_width=&#8221;1&#8243; border_color=&#8221;#dddddd&#8221; ]<\/p>\n<div id=\"attachment_130\" style=\"width: 844px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-16-at-14.51.58.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-130\" class=\"size-full wp-image-130\" src=\"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-16-at-14.51.58.png\" alt=\"Bootstrap UI for XPages File Upload\" width=\"834\" height=\"130\" srcset=\"https:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-16-at-14.51.58.png 834w, https:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-16-at-14.51.58-300x46.png 300w\" sizes=\"auto, (max-width: 834px) 100vw, 834px\" \/><\/a><p id=\"caption-attachment-130\" class=\"wp-caption-text\">Bootstrap UI for XPages File Upload<\/p><\/div>\n<p>[\/dropshadowbox]<\/p>\n<p>To make all this happen I created a custom control with custom properties, so I can reuse the code.<\/p>\n<p>[dropshadowbox align=&#8221;none&#8221; effect=&#8221;lifted-both&#8221; width=&#8221;600px&#8221; height=&#8221;&#8221; background_color=&#8221;#ffffff&#8221; border_width=&#8221;1&#8243; border_color=&#8221;#dddddd&#8221; ]<\/p>\n<div id=\"attachment_131\" style=\"width: 1034px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-16-at-14.53.14.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-131\" class=\"size-large wp-image-131\" src=\"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-16-at-14.53.14-1024x341.png\" alt=\"Custom Control File Upload Bootstrap UI\" width=\"1024\" height=\"341\" srcset=\"https:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-16-at-14.53.14-1024x341.png 1024w, https:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-16-at-14.53.14-300x100.png 300w, https:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-16-at-14.53.14-750x250.png 750w, https:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-16-at-14.53.14.png 1638w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><p id=\"caption-attachment-131\" class=\"wp-caption-text\">Custom Control File Upload Bootstrap UI<\/p><\/div>\n<p>[\/dropshadowbox]<\/p>\n<p>As you can I added a input field \u00a0just before the closing tag of the panel. It is just for displaying the filename.<\/p>\n<p>Another thing I will point out is that I put a computed text component inside the File Upload Control tags. This computed text only purpose is to get from my property file the text for the button inside the file upload control, in my case &#8216;Browse&#8217;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>On my current XPages project, I use bootstrap, as I wrote in my previous blog item. In the end I ended up with not so pretty file upload control on,\u00a0so after some searching I found a very neat example. It require only an element around your file upload control, some CSS and a few lines <a class=\"read-more\" href=\"https:\/\/elstarit.nl\/?p=129\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[2],"tags":[29,30,66,12],"class_list":["post-129","post","type-post","status-publish","format-standard","hentry","category-development","tag-bootstrap","tag-component","tag-development","tag-xpages"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Bootstrap UI for XPages File Upload component - elstar IT<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/elstarit.nl\/?p=129\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bootstrap UI for XPages File Upload component - elstar IT\" \/>\n<meta property=\"og:description\" content=\"On my current XPages project, I use bootstrap, as I wrote in my previous blog item. In the end I ended up with not so pretty file upload control on,\u00a0so after some searching I found a very neat example. It require only an element around your file upload control, some CSS and a few lines Read More\" \/>\n<meta property=\"og:url\" content=\"https:\/\/elstarit.nl\/?p=129\" \/>\n<meta property=\"og:site_name\" content=\"elstar IT\" \/>\n<meta property=\"article:published_time\" content=\"2014-07-16T13:12:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-07-16T13:17:16+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-16-at-14.51.58.png\" \/>\n<meta name=\"author\" content=\"flinden68\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"flinden68\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/elstarit.nl\\\/?p=129#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elstarit.nl\\\/?p=129\"},\"author\":{\"name\":\"flinden68\",\"@id\":\"https:\\\/\\\/elstarit.nl\\\/#\\\/schema\\\/person\\\/426456e816ad57bf411d5d2bb9768935\"},\"headline\":\"Bootstrap UI for XPages File Upload component\",\"datePublished\":\"2014-07-16T13:12:05+00:00\",\"dateModified\":\"2014-07-16T13:17:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/elstarit.nl\\\/?p=129\"},\"wordCount\":218,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/elstarit.nl\\\/?p=129#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/elstarit.nl\\\/wp-content\\\/uploads\\\/2014\\\/07\\\/Screen-Shot-2014-07-16-at-14.51.58.png\",\"keywords\":[\"bootstrap\",\"component\",\"development\",\"xpages\"],\"articleSection\":[\"development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/elstarit.nl\\\/?p=129#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/elstarit.nl\\\/?p=129\",\"url\":\"https:\\\/\\\/elstarit.nl\\\/?p=129\",\"name\":\"Bootstrap UI for XPages File Upload component - elstar IT\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elstarit.nl\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/elstarit.nl\\\/?p=129#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/elstarit.nl\\\/?p=129#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/elstarit.nl\\\/wp-content\\\/uploads\\\/2014\\\/07\\\/Screen-Shot-2014-07-16-at-14.51.58.png\",\"datePublished\":\"2014-07-16T13:12:05+00:00\",\"dateModified\":\"2014-07-16T13:17:16+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/elstarit.nl\\\/#\\\/schema\\\/person\\\/426456e816ad57bf411d5d2bb9768935\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/elstarit.nl\\\/?p=129#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/elstarit.nl\\\/?p=129\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/elstarit.nl\\\/?p=129#primaryimage\",\"url\":\"http:\\\/\\\/elstarit.nl\\\/wp-content\\\/uploads\\\/2014\\\/07\\\/Screen-Shot-2014-07-16-at-14.51.58.png\",\"contentUrl\":\"http:\\\/\\\/elstarit.nl\\\/wp-content\\\/uploads\\\/2014\\\/07\\\/Screen-Shot-2014-07-16-at-14.51.58.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/elstarit.nl\\\/?p=129#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/elstarit.nl\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"development\",\"item\":\"https:\\\/\\\/elstarit.nl\\\/?cat=2\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Bootstrap UI for XPages File Upload component\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/elstarit.nl\\\/#website\",\"url\":\"https:\\\/\\\/elstarit.nl\\\/\",\"name\":\"elstar IT\",\"description\":\"Fullstack | Java | Tech Speaker | Tech Coach | Frank van der Linden\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/elstarit.nl\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/elstarit.nl\\\/#\\\/schema\\\/person\\\/426456e816ad57bf411d5d2bb9768935\",\"name\":\"flinden68\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b915e82bbf3665adb6f7cef5acc5292b5958aec259f763ccde322ec72c643ec0?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b915e82bbf3665adb6f7cef5acc5292b5958aec259f763ccde322ec72c643ec0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b915e82bbf3665adb6f7cef5acc5292b5958aec259f763ccde322ec72c643ec0?s=96&d=mm&r=g\",\"caption\":\"flinden68\"},\"sameAs\":[\"http:\\\/\\\/www.elstarit.nl\",\"https:\\\/\\\/x.com\\\/elstarit\"],\"url\":\"https:\\\/\\\/elstarit.nl\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Bootstrap UI for XPages File Upload component - elstar IT","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/elstarit.nl\/?p=129","og_locale":"en_US","og_type":"article","og_title":"Bootstrap UI for XPages File Upload component - elstar IT","og_description":"On my current XPages project, I use bootstrap, as I wrote in my previous blog item. In the end I ended up with not so pretty file upload control on,\u00a0so after some searching I found a very neat example. It require only an element around your file upload control, some CSS and a few lines Read More","og_url":"https:\/\/elstarit.nl\/?p=129","og_site_name":"elstar IT","article_published_time":"2014-07-16T13:12:05+00:00","article_modified_time":"2014-07-16T13:17:16+00:00","og_image":[{"url":"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-16-at-14.51.58.png","type":"","width":"","height":""}],"author":"flinden68","twitter_misc":{"Written by":"flinden68","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/elstarit.nl\/?p=129#article","isPartOf":{"@id":"https:\/\/elstarit.nl\/?p=129"},"author":{"name":"flinden68","@id":"https:\/\/elstarit.nl\/#\/schema\/person\/426456e816ad57bf411d5d2bb9768935"},"headline":"Bootstrap UI for XPages File Upload component","datePublished":"2014-07-16T13:12:05+00:00","dateModified":"2014-07-16T13:17:16+00:00","mainEntityOfPage":{"@id":"https:\/\/elstarit.nl\/?p=129"},"wordCount":218,"commentCount":0,"image":{"@id":"https:\/\/elstarit.nl\/?p=129#primaryimage"},"thumbnailUrl":"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-16-at-14.51.58.png","keywords":["bootstrap","component","development","xpages"],"articleSection":["development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/elstarit.nl\/?p=129#respond"]}]},{"@type":"WebPage","@id":"https:\/\/elstarit.nl\/?p=129","url":"https:\/\/elstarit.nl\/?p=129","name":"Bootstrap UI for XPages File Upload component - elstar IT","isPartOf":{"@id":"https:\/\/elstarit.nl\/#website"},"primaryImageOfPage":{"@id":"https:\/\/elstarit.nl\/?p=129#primaryimage"},"image":{"@id":"https:\/\/elstarit.nl\/?p=129#primaryimage"},"thumbnailUrl":"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-16-at-14.51.58.png","datePublished":"2014-07-16T13:12:05+00:00","dateModified":"2014-07-16T13:17:16+00:00","author":{"@id":"https:\/\/elstarit.nl\/#\/schema\/person\/426456e816ad57bf411d5d2bb9768935"},"breadcrumb":{"@id":"https:\/\/elstarit.nl\/?p=129#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/elstarit.nl\/?p=129"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/elstarit.nl\/?p=129#primaryimage","url":"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-16-at-14.51.58.png","contentUrl":"http:\/\/elstarit.nl\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-16-at-14.51.58.png"},{"@type":"BreadcrumbList","@id":"https:\/\/elstarit.nl\/?p=129#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/elstarit.nl\/"},{"@type":"ListItem","position":2,"name":"development","item":"https:\/\/elstarit.nl\/?cat=2"},{"@type":"ListItem","position":3,"name":"Bootstrap UI for XPages File Upload component"}]},{"@type":"WebSite","@id":"https:\/\/elstarit.nl\/#website","url":"https:\/\/elstarit.nl\/","name":"elstar IT","description":"Fullstack | Java | Tech Speaker | Tech Coach | Frank van der Linden","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/elstarit.nl\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/elstarit.nl\/#\/schema\/person\/426456e816ad57bf411d5d2bb9768935","name":"flinden68","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b915e82bbf3665adb6f7cef5acc5292b5958aec259f763ccde322ec72c643ec0?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b915e82bbf3665adb6f7cef5acc5292b5958aec259f763ccde322ec72c643ec0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b915e82bbf3665adb6f7cef5acc5292b5958aec259f763ccde322ec72c643ec0?s=96&d=mm&r=g","caption":"flinden68"},"sameAs":["http:\/\/www.elstarit.nl","https:\/\/x.com\/elstarit"],"url":"https:\/\/elstarit.nl\/?author=1"}]}},"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/elstarit.nl\/index.php?rest_route=\/wp\/v2\/posts\/129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elstarit.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elstarit.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elstarit.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elstarit.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=129"}],"version-history":[{"count":3,"href":"https:\/\/elstarit.nl\/index.php?rest_route=\/wp\/v2\/posts\/129\/revisions"}],"predecessor-version":[{"id":134,"href":"https:\/\/elstarit.nl\/index.php?rest_route=\/wp\/v2\/posts\/129\/revisions\/134"}],"wp:attachment":[{"href":"https:\/\/elstarit.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elstarit.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elstarit.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}