【问题标题】:JSF/ADF selectOneChoice shortDesc sizeJSF/ADF selectOneChoice shortDesc 大小
【发布时间】:2012-12-14 15:58:04
【问题描述】:

我创建了一个带有属性绑定的 selectOneChoice。

<af:selectOneChoice
        simple="true"
        binding="#{backing_Deletion.nodeRenderer.propBinding['value']}"
        contentStyle="width:500px;"/>

nodeRenderer 提供来自 Oracle DRM 服务器的 shortDesc。问题是,shortDesc 在渲染时只有 8 个字符宽和 70 行高。

有没有办法覆盖它?

【问题讨论】:

  • 找到更多信息。 propBinding 是一个映射,其中包含 shortDesc 属性。 shortDesc 属性是一个字符串。我遇到的问题是由于 selectOneChoice 所在面板的宽度。我仍然不知道具体影响 shortDesc 的方法,但我找到了一种解决方法,使 selectOneChoice 的宽度小于面板它位于。

标签: oracle jsf oracle-adf jspx


【解决方案1】:

此属性的长度必须在模型层中。如果它在那里被指定为 LOV 的最大长度为 8 的提示的一部分,那么它不会显示更多。您可以通过以下方式从模型中获得精度:

#{bindings.sampleAttribute.hints.precision}

【讨论】:

    【解决方案2】:

    请删除 contentStyle="width:500px; 和 添加“AFStretchWidth”样式类

    【讨论】:

    • 这对所有 ADF 版本都有效吗?
    猜你喜欢
    • 2011-11-03
    • 2014-09-17
    • 1970-01-01
    • 1970-01-01
    • 2012-12-18
    • 1970-01-01
    • 2012-10-09
    • 2021-10-18
    • 2021-05-28
    相关资源
    最近更新 更多