日期:2014-05-19  浏览次数:20580 次

JavaEE,JSF TAG 嵌套 EL表达式。苦苦苦,大家来看看咯。
本帖最后由 wangtianxun 于 2012-12-04 18:05:56 编辑
                                            <h:form>
                                                <c:forEach items="${allSorts}" var="sort">
                                                    <li>
                                                    <h:commandLink  action="#{SortBean.sort_look_action}">
                                                          <h:outputText value="<c:out value="${sort.soName}" />"></h:outputText>
                                                          <f:param name="soId" value="<c:out value="${sort.soId}" />"></f:param>
                                                    </h:commandLink>
                                                    </li>
                                                </c:forEach>
                                            </h:form>


出错了。Error(21,103):  This attribute is not recognized.
Error(20,96):  This attribute is not recognized.

不知道大家遇到这问题怎么解决的,里面不能嵌EL表达式呢。
------解决方案--------------------
找到解决法方法了,今天看了下书,就用JSF的托管BEAN好了。