4 Replies Latest reply: Nov 18, 2012 12:21 PM by kdario RSS

    How to change af_messages text 'Information' to something like 'Info'

    Mansoor
      I use jdev 11.1.1.5 and whant to change af_messages text 'Information' to something like 'Info' how can I do that I see Re: Like to change af:messages text 'Error' to 'Problem occured' and put af_messages.INFORMATION=Info in resourcebundle but it not work
      I apply my resource bundle in trinidad-skins
      please help me
        • 1. Re: How to change af_messages text 'Information' to something like 'Info'
          Alejandro Profet
          Hi Mansoor,

          Try with this resource string:
          af_messages.TIP_INFO
          See more here: http://jdevadf.oracle.com/adf-richclient-demo/docs/skin-selectors.html#af:messages
          Also check this out: http://jdevadf.oracle.com/adf-richclient-demo/faces/components/skinningKeys/messages.jspx

          AP

          Edited by: Alejandro Profet on Nov 17, 2012 5:58 PM
          • 2. Re: How to change af_messages text 'Information' to something like 'Info'
            Timo Hahn
            Check the doc http://docs.oracle.com/cd/E25054_01/user.1111/e21420/adfsg_text.htm#autoId2 which show how do do this in your version.

            If you use trinidad-skins.xml you can define the skin resource file as list bundle like (not tested this under 11.1.1.5)
            package xxx.yyy.zzz;
            
            public class CustomAdfStringBundle extends ListResourceBundle {
                static final Object[][] contents = {
                    {"af_messages.INFORMATION","Info"}
                };
            
                public CAAdfStringBundle() {
                }
            
                public Object[][] getContents(){
                    return contents;
                }
            }
            and you specify the class name in the bundle-name property of the skin
            ...
            <bundle-name>
            xxx.yyy.zzz.SkinBundle
            </bundle-name>...
            Timo
            • 3. Re: How to change af_messages text 'Information' to something like 'Info'
              Mansoor
              I define a new skin and add my default viewcontroller bundle in skin bundle but for some resource it work and for some it does not work
              for example when I changed af_dialog.LABEL_OK=yeah in resource bundle it change in all dialog but when I add af_dialog.INFORMATION=info for chanching the caption of validation messages it does not work or when I change the af_table.LABEL_FETCHING=request data it does not change
              is there any magic tune??
              and another question I can not find af_dialog.INFORMATION in http://docs.oracle.com/cd/E23943_01/apirefs.1111/e15862/toc.htm ?!!!!????!!!!!
              • 4. Re: How to change af_messages text 'Information' to something like 'Info'
                kdario
                Just tested in JDev 11.1.2.3: af_messages.TIP_ERROR=my error message
                The text was changed after clearing browser cache, so this is probably some issue with resource caching.

                Dario