{"id":37,"date":"2013-02-06T16:37:32","date_gmt":"2013-02-06T16:37:32","guid":{"rendered":"http:\/\/einaweb.es\/dev\/?p=37"},"modified":"2013-02-13T08:29:24","modified_gmt":"2013-02-13T08:29:24","slug":"adf-formats-de-numeros-segons-lidioma","status":"publish","type":"post","link":"http:\/\/www.einaweb.es\/develop\/adf-formats-de-numeros-segons-lidioma\/","title":{"rendered":"ADF &#8211; Formats de n\u00fameros segons l&#8217;idioma"},"content":{"rendered":"<p>A l&#8217;arxiu faces-config.xml:<\/p>\n<p>&lt;?xml version=\u00bb1.0&#8243; encoding=\u00bbwindows-1252&#8243;?&gt;<br \/>\n&lt;faces-config version=\u00bb2.0&#8243; xmlns=\u00bbhttp:\/\/java.sun.com\/xml\/ns\/javaee\u00bb&gt;<br \/>\n&lt;application&gt;<br \/>\n&lt;default-render-kit-id&gt;oracle.adf.rich&lt;\/default-render-kit-id&gt;<br \/>\n&lt;locale-config&gt;<br \/>\n&lt;default-locale&gt;es&lt;\/default-locale&gt;<br \/>\n&lt;supported-locale&gt;es&lt;\/supported-locale&gt;<br \/>\n&lt;\/locale-config&gt;<br \/>\n&lt;\/application&gt;<br \/>\n&lt;\/faces-config&gt;<\/p>\n<p>A l&#8217;arxiu trinidad-config.xml:<\/p>\n<p>&lt;?xml version=\u00bb1.0&#8243; encoding=\u00bbwindows-1252&#8243;?&gt;<br \/>\n&lt;trinidad-config xmlns=\u00bbhttp:\/\/myfaces.apache.org\/trinidad\/config\u00bb&gt;<br \/>\n&lt;skin-family&gt;fusionFx&lt;\/skin-family&gt;<br \/>\n&lt;skin-version&gt;v2.1&lt;\/skin-version&gt;<br \/>\n&lt;number-grouping-separator&gt;.&lt;\/number-grouping-separator&gt;<br \/>\n&lt;decimal-separator&gt;,&lt;\/decimal-separator&gt;<br \/>\n&lt;currency-code&gt;EUR&lt;\/currency-code&gt;<br \/>\n&lt;\/trinidad-config&gt;<\/p>\n<p>Al view Object:<\/p>\n<p><a href=\"http:\/\/www.einaweb.es\/dev\/wp-content\/uploads\/2013\/02\/AtributViewObjectNumeric.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-38\" alt=\"AtributViewObjectNumeric\" src=\"http:\/\/einaweb.es\/dev\/wp-content\/uploads\/2013\/02\/AtributViewObjectNumeric-300x115.png\" width=\"300\" height=\"115\" srcset=\"http:\/\/www.einaweb.es\/develop\/wp-content\/uploads\/2013\/02\/AtributViewObjectNumeric-300x115.png 300w, http:\/\/www.einaweb.es\/develop\/wp-content\/uploads\/2013\/02\/AtributViewObjectNumeric.png 1010w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<div>Si resulta que tenim un OutputText (o Input) que no tenim al viewObject podem utilitzar:<\/div>\n<div><\/div>\n<div>&lt;af:convertNumber type=\u00bbnumber\u00bb locale=\u00bbes-ES\u00bb pattern=\u00bb####.##\u00bb\/&gt;<\/div>\n<div><\/div>\n<div>Para los\u00a0Input a\u00f1adir en HintPattern: format: ####,##<\/div>\n<div><a href=\"http:\/\/www.einaweb.es\/dev\/wp-content\/uploads\/2013\/02\/hintpattern.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-39\" alt=\"hintpattern\" src=\"http:\/\/www.einaweb.es\/dev\/wp-content\/uploads\/2013\/02\/hintpattern-246x300.jpg\" width=\"246\" height=\"300\" srcset=\"http:\/\/www.einaweb.es\/develop\/wp-content\/uploads\/2013\/02\/hintpattern-246x300.jpg 246w, http:\/\/www.einaweb.es\/develop\/wp-content\/uploads\/2013\/02\/hintpattern.jpg 410w\" sizes=\"auto, (max-width: 246px) 100vw, 246px\" \/><\/a><\/div>\n<div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>A l&#8217;arxiu faces-config.xml: &lt;?xml version=\u00bb1.0&#8243; encoding=\u00bbwindows-1252&#8243;?&gt; &lt;faces-config version=\u00bb2.0&#8243; xmlns=\u00bbhttp:\/\/java.sun.com\/xml\/ns\/javaee\u00bb&gt; &lt;application&gt; &lt;default-render-kit-id&gt;oracle.adf.rich&lt;\/default-render-kit-id&gt; &lt;locale-config&gt; &lt;default-locale&gt;es&lt;\/default-locale&gt; &lt;supported-locale&gt;es&lt;\/supported-locale&gt; &lt;\/locale-config&gt; &lt;\/application&gt; &lt;\/faces-config&gt; A l&#8217;arxiu trinidad-config.xml: &lt;?xml version=\u00bb1.0&#8243; encoding=\u00bbwindows-1252&#8243;?&gt; &lt;trinidad-config xmlns=\u00bbhttp:\/\/myfaces.apache.org\/trinidad\/config\u00bb&gt; &lt;skin-family&gt;fusionFx&lt;\/skin-family&gt; &lt;skin-version&gt;v2.1&lt;\/skin-version&gt; &lt;number-grouping-separator&gt;.&lt;\/number-grouping-separator&gt; &lt;decimal-separator&gt;,&lt;\/decimal-separator&gt; &lt;currency-code&gt;EUR&lt;\/currency-code&gt; &lt;\/trinidad-config&gt; Al view Object: Si resulta que tenim un OutputText (o Input) que no tenim al viewObject podem utilitzar: &lt;af:convertNumber type=\u00bbnumber\u00bb locale=\u00bbes-ES\u00bb pattern=\u00bb####.##\u00bb\/&gt; Para los\u00a0Input [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-37","post","type-post","status-publish","format-standard","hentry","category-adf"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>ADF - Formats de n\u00fameros segons l&#039;idioma - Blog Desarrollador<\/title>\n<meta name=\"description\" content=\"ADF - Formats de n\u00fameros segons l&#039;idioma - Blog Desarrollador\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.einaweb.es\/develop\/adf-formats-de-numeros-segons-lidioma\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ADF - Formats de n\u00fameros segons l&#039;idioma - Blog Desarrollador\" \/>\n<meta property=\"og:description\" content=\"ADF - Formats de n\u00fameros segons l&#039;idioma - Blog Desarrollador\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.einaweb.es\/develop\/adf-formats-de-numeros-segons-lidioma\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog Desarrollador\" \/>\n<meta property=\"article:published_time\" content=\"2013-02-06T16:37:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-02-13T08:29:24+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/einaweb.es\/dev\/wp-content\/uploads\/2013\/02\/AtributViewObjectNumeric-300x115.png\" \/>\n<meta name=\"author\" content=\"Angel Fernandez Gutierrez\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@afernandezg76\" \/>\n<meta name=\"twitter:site\" content=\"@afernandezg76\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Angel Fernandez Gutierrez\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minuto\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.einaweb.es\/develop\/adf-formats-de-numeros-segons-lidioma\/\",\"url\":\"http:\/\/www.einaweb.es\/develop\/adf-formats-de-numeros-segons-lidioma\/\",\"name\":\"ADF - Formats de n\u00fameros segons l'idioma - Blog Desarrollador\",\"isPartOf\":{\"@id\":\"https:\/\/www.einaweb.es\/develop\/#website\"},\"datePublished\":\"2013-02-06T16:37:32+00:00\",\"dateModified\":\"2013-02-13T08:29:24+00:00\",\"author\":{\"@id\":\"https:\/\/www.einaweb.es\/develop\/#\/schema\/person\/2d3361868423160a6db46ce6f9fc9a3c\"},\"description\":\"ADF - Formats de n\u00fameros segons l'idioma - Blog Desarrollador\",\"breadcrumb\":{\"@id\":\"http:\/\/www.einaweb.es\/develop\/adf-formats-de-numeros-segons-lidioma\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.einaweb.es\/develop\/adf-formats-de-numeros-segons-lidioma\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.einaweb.es\/develop\/adf-formats-de-numeros-segons-lidioma\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\/\/www.einaweb.es\/develop\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ADF &#8211; Formats de n\u00fameros segons l&#8217;idioma\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.einaweb.es\/develop\/#website\",\"url\":\"https:\/\/www.einaweb.es\/develop\/\",\"name\":\"Blog Desarrollador\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.einaweb.es\/develop\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"es\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.einaweb.es\/develop\/#\/schema\/person\/2d3361868423160a6db46ce6f9fc9a3c\",\"name\":\"Angel Fernandez Gutierrez\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/www.einaweb.es\/develop\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/366f7c75ad085d0dcc2c290559c1aa5947679d86e3a8c55db42ac1c26e16c816?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/366f7c75ad085d0dcc2c290559c1aa5947679d86e3a8c55db42ac1c26e16c816?s=96&d=mm&r=g\",\"caption\":\"Angel Fernandez Gutierrez\"},\"url\":\"http:\/\/www.einaweb.es\/develop\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ADF - Formats de n\u00fameros segons l'idioma - Blog Desarrollador","description":"ADF - Formats de n\u00fameros segons l'idioma - Blog Desarrollador","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":"http:\/\/www.einaweb.es\/develop\/adf-formats-de-numeros-segons-lidioma\/","og_locale":"es_ES","og_type":"article","og_title":"ADF - Formats de n\u00fameros segons l'idioma - Blog Desarrollador","og_description":"ADF - Formats de n\u00fameros segons l'idioma - Blog Desarrollador","og_url":"http:\/\/www.einaweb.es\/develop\/adf-formats-de-numeros-segons-lidioma\/","og_site_name":"Blog Desarrollador","article_published_time":"2013-02-06T16:37:32+00:00","article_modified_time":"2013-02-13T08:29:24+00:00","og_image":[{"url":"http:\/\/einaweb.es\/dev\/wp-content\/uploads\/2013\/02\/AtributViewObjectNumeric-300x115.png"}],"author":"Angel Fernandez Gutierrez","twitter_card":"summary_large_image","twitter_creator":"@afernandezg76","twitter_site":"@afernandezg76","twitter_misc":{"Escrito por":"Angel Fernandez Gutierrez","Tiempo de lectura":"1 minuto"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/www.einaweb.es\/develop\/adf-formats-de-numeros-segons-lidioma\/","url":"http:\/\/www.einaweb.es\/develop\/adf-formats-de-numeros-segons-lidioma\/","name":"ADF - Formats de n\u00fameros segons l'idioma - Blog Desarrollador","isPartOf":{"@id":"https:\/\/www.einaweb.es\/develop\/#website"},"datePublished":"2013-02-06T16:37:32+00:00","dateModified":"2013-02-13T08:29:24+00:00","author":{"@id":"https:\/\/www.einaweb.es\/develop\/#\/schema\/person\/2d3361868423160a6db46ce6f9fc9a3c"},"description":"ADF - Formats de n\u00fameros segons l'idioma - Blog Desarrollador","breadcrumb":{"@id":"http:\/\/www.einaweb.es\/develop\/adf-formats-de-numeros-segons-lidioma\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.einaweb.es\/develop\/adf-formats-de-numeros-segons-lidioma\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.einaweb.es\/develop\/adf-formats-de-numeros-segons-lidioma\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/www.einaweb.es\/develop\/"},{"@type":"ListItem","position":2,"name":"ADF &#8211; Formats de n\u00fameros segons l&#8217;idioma"}]},{"@type":"WebSite","@id":"https:\/\/www.einaweb.es\/develop\/#website","url":"https:\/\/www.einaweb.es\/develop\/","name":"Blog Desarrollador","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.einaweb.es\/develop\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"es"},{"@type":"Person","@id":"https:\/\/www.einaweb.es\/develop\/#\/schema\/person\/2d3361868423160a6db46ce6f9fc9a3c","name":"Angel Fernandez Gutierrez","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.einaweb.es\/develop\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/366f7c75ad085d0dcc2c290559c1aa5947679d86e3a8c55db42ac1c26e16c816?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/366f7c75ad085d0dcc2c290559c1aa5947679d86e3a8c55db42ac1c26e16c816?s=96&d=mm&r=g","caption":"Angel Fernandez Gutierrez"},"url":"http:\/\/www.einaweb.es\/develop\/author\/admin\/"}]}},"_links":{"self":[{"href":"http:\/\/www.einaweb.es\/develop\/wp-json\/wp\/v2\/posts\/37","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.einaweb.es\/develop\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.einaweb.es\/develop\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.einaweb.es\/develop\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.einaweb.es\/develop\/wp-json\/wp\/v2\/comments?post=37"}],"version-history":[{"count":6,"href":"http:\/\/www.einaweb.es\/develop\/wp-json\/wp\/v2\/posts\/37\/revisions"}],"predecessor-version":[{"id":44,"href":"http:\/\/www.einaweb.es\/develop\/wp-json\/wp\/v2\/posts\/37\/revisions\/44"}],"wp:attachment":[{"href":"http:\/\/www.einaweb.es\/develop\/wp-json\/wp\/v2\/media?parent=37"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.einaweb.es\/develop\/wp-json\/wp\/v2\/categories?post=37"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.einaweb.es\/develop\/wp-json\/wp\/v2\/tags?post=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}