IF如何绑定页面类里的一个方法?
163
2007-02-27
<span jwcid="@If" condition="ognl:isEnough">
isEnough为此页面类的一个方法。 public boolean isEnough(){ if(getIsUserEnough()){ return true; }else{ return false; } } 运行提示condition表达式错误 |
|
bclxz520
2007-02-27
<span jwcid="@If" condition="ognl:enough">
private boolean enough; public boolean getEnough(){ if(getIsUserEnough()){ return true; }else{ return false; } } 试试这样 |
|
tapestry
2007-02-28
<span jwcid="@If" condition="ognl:isEnough">提示condition表达式正确</span>
<span jwcid="@Else">提示condition表达式错误</span> |