如何在adf中显示适当的按摩

时间:2015-10-29 10:51:53

标签: java oracle-adf

我怎么能以友好的方式展示这个呢?不要在jdeveloper 11.1.1.9.0

中显示o https://community.oracle.com/message/13376887#13376887

我这样做了37.8.1如何自定义基本ADF业务组件错误消息 假设您要自定义内置错误消息: JBO-27014:属性名称是产品是必需的 如果您已从Oracle全球支持部门请求Oracle ADF源代码,则可以查看oracle.jbo包中的CSMessageBundle.java文件,以查看此错误消息与该消息包文件中以下行的组合有关:

    public class CSMessageBundle extends CheckedListResourceBundle {
      // etc.
      public static final String EXC_VAL_ATTR_MANDATORY            = "27014";
      // etc. 
      private static final Object[][] sMessageStrings = {
        // etc.
        {EXC_VAL_ATTR_MANDATORY, "Attribute {2} in {1} is required"},
        // etc.
      }
    }

37.8.1 How to Customize Base ADF Business Components Error Messages
Assume you want to customize the builtin error message:
JBO-27014: Attribute Name is Product is required
If you have requested the Oracle ADF source code from Oracle Worldwide Support, you can look in the CSMessageBundle.java file in the oracle.jbo package to see that this error message is related to the combination of the following lines in that message bundle file:
public class CSMessageBundle extends CheckedListResourceBundle {
  // etc.
  public static final String EXC_VAL_ATTR_MANDATORY            = "27014";
  // etc. 
  private static final Object[][] sMessageStrings = {
    // etc.
    {EXC_VAL_ATTR_MANDATORY, "Attribute {2} in {1} is required"},
    // etc.
  }
}

0 个答案:

没有答案