简体   繁体   English

如何换行 <af:commandLink> 在Oracle ADF 11g应用程序中

[英]How to wrap text for <af:commandLink> in Oracle ADF 11g application

I am building a Fusion Web Application using Jdeveloper 11.1.2.3 我正在使用Jdeveloper 11.1.2.3构建Fusion Web Application

How to wrap text for <af:commandLink> ? 如何包装<af:commandLink>文本?

In <af:outputText> component there is propriety called noWrap where I can choose warp the text or not. <af:outputText>组件中,有一个名为noWrap ,在这里我可以选择是否扭曲文本。

In my case I have a lengthy title which defined as <af:commandLink> and I want to wrap around the link text, but there is no such propriety. 就我而言,我有一个冗长的标题,它定义为<af:commandLink>并且我想包装链接文本,但是没有这样的适当性。

Note: I do not want to sub-string the value or doing it in Database level, instead I want to solve this issue in application level. 注意:我不想在数据库级别对值进行sub-string或替换,而是希望在应用程序级别解决此问题。

It is possible to nest the outputText into the command link. 可以将outputText嵌套到命令链接中。

Thusly 正是如此

<af:commandLink> <af:outputText value="Wrapped Text Line"/> </af:commandLink>

Just style it with css, either inline or via skin class. 只需内联或通过外观类使用CSS设置样式即可。
"white-space:nowrap;" or "white-space:normal;" "white-space:normal;"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM