【发布时间】:2012-07-07 00:40:09
【问题描述】:
我正在尝试使用 JSF 2.1.10 在 Tomcat 7.0.28 上运行现有应用程序
我有以下 bean:
@Named
@Dependent
public class FormatterBean
{
public String replaceNewLineWithBrTag(String s)
{
return Formatter.replaceNewLineWithBrTag(s);
}
public String leftJustifyWithZeros(String string, Integer zeroTotal)
{
return Formatter.leftJustifyWithZeros(string, zeroTotal);
}
}
当我做这样的事情时
<p:tooltip for="visualizar" value="#{formatterBean.replaceNewLineWithBrTag(adiantamento.observacao)}" />
我收到以下错误:
/page/rdv/adiantamento.xhtml @87,117 value="#{formatterBean.replaceNewLineWithBrTag(adiantamento.observacao)}": 在类型上找不到属性“replaceNewLineWithBrTag” br.com.spdata.util.FormatterBean
一些细节:
- 同样的代码在 Glassfish 3.1.2 上运行良好
- leftJustifyWithZeros 方法运行良好
有什么想法吗?
谢谢, 菲利普
【问题讨论】: