Deprecated: Assigning the return value of new by reference is deprecated in /var/www/clients/client231/web1294/web/multikoop.de/wordpress/wp-settings.php on line 520 Deprecated: Assigning the return value of new by reference is deprecated in /var/www/clients/client231/web1294/web/multikoop.de/wordpress/wp-settings.php on line 535 Deprecated: Assigning the return value of new by reference is deprecated in /var/www/clients/client231/web1294/web/multikoop.de/wordpress/wp-settings.php on line 542 Deprecated: Assigning the return value of new by reference is deprecated in /var/www/clients/client231/web1294/web/multikoop.de/wordpress/wp-settings.php on line 578 Deprecated: Function set_magic_quotes_runtime() is deprecated in /var/www/clients/client231/web1294/web/multikoop.de/wordpress/wp-settings.php on line 18 Strict Standards: Declaration of Walker_Page::start_lvl() should be compatible with Walker::start_lvl(&$output) in /var/www/clients/client231/web1294/web/multikoop.de/wordpress/wp-includes/classes.php on line 1199 Strict Standards: Declaration of Walker_Page::end_lvl() should be compatible with Walker::end_lvl(&$output) in /var/www/clients/client231/web1294/web/multikoop.de/wordpress/wp-includes/classes.php on line 1199 Strict Standards: Declaration of Walker_Page::start_el() should be compatible with Walker::start_el(&$output) in /var/www/clients/client231/web1294/web/multikoop.de/wordpress/wp-includes/classes.php on line 1199 Strict Standards: Declaration of Walker_Page::end_el() should be compatible with Walker::end_el(&$output) in /var/www/clients/client231/web1294/web/multikoop.de/wordpress/wp-includes/classes.php on line 1199 Strict Standards: Declaration of Walker_PageDropdown::start_el() should be compatible with Walker::start_el(&$output) in /var/www/clients/client231/web1294/web/multikoop.de/wordpress/wp-includes/classes.php on line 1244 Strict Standards: Declaration of Walker_Category::start_lvl() should be compatible with Walker::start_lvl(&$output) in /var/www/clients/client231/web1294/web/multikoop.de/wordpress/wp-includes/classes.php on line 1391 Strict Standards: Declaration of Walker_Category::end_lvl() should be compatible with Walker::end_lvl(&$output) in /var/www/clients/client231/web1294/web/multikoop.de/wordpress/wp-includes/classes.php on line 1391 Strict Standards: Declaration of Walker_Category::start_el() should be compatible with Walker::start_el(&$output) in /var/www/clients/client231/web1294/web/multikoop.de/wordpress/wp-includes/classes.php on line 1391 Strict Standards: Declaration of Walker_Category::end_el() should be compatible with Walker::end_el(&$output) in /var/www/clients/client231/web1294/web/multikoop.de/wordpress/wp-includes/classes.php on line 1391 Strict Standards: Declaration of Walker_CategoryDropdown::start_el() should be compatible with Walker::start_el(&$output) in /var/www/clients/client231/web1294/web/multikoop.de/wordpress/wp-includes/classes.php on line 1442 Strict Standards: Redefining already defined constructor for class wpdb in /var/www/clients/client231/web1294/web/multikoop.de/wordpress/wp-includes/wp-db.php on line 306 Strict Standards: Redefining already defined constructor for class WP_Object_Cache in /var/www/clients/client231/web1294/web/multikoop.de/wordpress/wp-includes/cache.php on line 431 Strict Standards: Declaration of Walker_Comment::start_lvl() should be compatible with Walker::start_lvl(&$output) in /var/www/clients/client231/web1294/web/multikoop.de/wordpress/wp-includes/comment-template.php on line 1266 Strict Standards: Declaration of Walker_Comment::end_lvl() should be compatible with Walker::end_lvl(&$output) in /var/www/clients/client231/web1294/web/multikoop.de/wordpress/wp-includes/comment-template.php on line 1266 Strict Standards: Declaration of Walker_Comment::start_el() should be compatible with Walker::start_el(&$output) in /var/www/clients/client231/web1294/web/multikoop.de/wordpress/wp-includes/comment-template.php on line 1266 Strict Standards: Declaration of Walker_Comment::end_el() should be compatible with Walker::end_el(&$output) in /var/www/clients/client231/web1294/web/multikoop.de/wordpress/wp-includes/comment-template.php on line 1266 Strict Standards: Redefining already defined constructor for class WP_Dependencies in /var/www/clients/client231/web1294/web/multikoop.de/wordpress/wp-includes/class.wp-dependencies.php on line 31 Strict Standards: Redefining already defined constructor for class WP_Http in /var/www/clients/client231/web1294/web/multikoop.de/wordpress/wp-includes/http.php on line 61 multiKOOP.de » Blog Archive » ADF11: Select Text Resource Bug

ADF11: Select Text Resource Bug

August 2, 2009 – 12:28 pm

Last week I came accross a cool blog about ADF BUGS FACTS. The author inspired me to write myself about similiar experiences with ADF11/JDeveloper.  So today I will describe a bug concerning the i18n capabilities in ADF11.

First I have to mention tha the support for i18n text resources improved very well with JDev11 but there is a case when things do not work correctly. So in the case your ViewController project name contains a dash. things do not work anymore as expected. So in our company we have following convention to name our applications/projects.

customer-app
  app-model
  app-webui

With that convention your not able to work with the “select text resource” feature on ADF Faces Pages, because invalid code is generated. So here is the example

jdev11_i18n_bug

Because the ViewController project is called myapp-ui you get the following buggy code

jdev11_i18n_bug2

Solution is to remove the dash in c:set and of course all  EL references.

<c:set var="myappuiBundle"
         value="#{adfBundle['de.team.training.i18n.myapp-uiBundle']}"/>

and

<af:outputText value="#{myappuiBundle.MY_APPLICATION_TITLE}" id="ot1"/>

After this fix the text resource is resolved correctly

jdev11_i18n_bug3

So notice: Using dashes (-) in project names may cause trouble in development of fusion web applications.

  1. One Response to “ADF11: Select Text Resource Bug”

  2. Thanks for your reference Andreas

    I think this is realy usefull, since someone could loose a lot of time to find out what is wrong and how to fix it

    By Milkbird on Oct 26, 2009

Post a Comment