浏览 3019 次
锁定老帖子 主题:jsf中标签使用时遇到的一个小问题
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
---|---|
作者 | 正文 |
发表时间:2006-10-16
比如:下面这段程序 <td> <c:if test="${FLAG}"> <h:commandButton id="dfdf" value="#{msg['unsalable.save.approve']}" action=""></h:commandButton> <h:commandButton id="ddd" value="#{msg['unsalable.cancel.buhuo']}" action=""></h:commandButton> </c:if> <c:if test="${!FLAG}"> <h:commandButton id="ff" value="#{msg['unsalable.out.addPage.cancel']}"></h:commandButton> </c:if> </td> 如果第一个按钮的id和第三个按钮的id没有标识,那么 <c:if test="${!FLAG}"> <h:commandButton id="ff" value="#{msg['unsalable.out.addPage.cancel']}"></h:commandButton> </c:if> 显示后再显示 <c:if test="${FLAG}"> <h:commandButton id="dfdf" value="#{msg['unsalable.save.approve']}" action=""></h:commandButton> <h:commandButton id="ddd" value="#{msg['unsalable.cancel.buhuo']}" action=""></h:commandButton> </c:if> 那么第一个按钮显示的值就会和第三个按钮显示的值一样,不会按照你自己的定义的标签显示 声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |