- This topic has 0 replies, 1 voice, and was last updated 14 years, 7 months ago by Dwight.
Viewing 1 post (of 1 total)
-
AuthorPosts
-
DwightParticipantUsing MyEclipse 7.5, but I’ve had this problem with earlier versions, too. Using any of the icefaces tags that have a “var” attribute, the name supplied is not recognized in the nested statements. Example:
<?xml version="1.0" encoding="ISO-8859-1" ?> <jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ice="http://www.icesoft.com/icefaces/component"> <jsp:directive.page contentType="text/html"/> <f:view> <ice:outputDeclaration doctypeRoot="html" doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN" doctypeSystem="http://www.w3.org/TR/html4/loose.dtd" /> <html> <head></head> <body> <ice:form id="test"> <h:dataTable value="#{headerViewBean.mainMenus}" var="item"> <h:outputText value="#{item.subText}"><!-- no warning --> </h:outputText> </h:dataTable> <ice:dataTable value="#{headerViewBean.mainMenus}" var="menu"> <ice:outputText value="#{menu.subText}" ><!-- "menu cannot be resolved" --> </ice:outputText> </ice:dataTable> </ice:form> </body> </html> </f:view> </jsp:root>
In this case, the type returned by getMainMenus() is List<Tab>, but I get the same warning in many other cases with a variety of return types, although it’s most commonly a List<sometype>.
I installed icefaces 1.8.2 after the MyEclipse 7.5 update, using a download from icefaces.org, MyEclipse-IDE-v7.5-ICEfaces-v1.8.2.zip.
Any help or suggestions would be appreciated! -
AuthorPosts
Viewing 1 post (of 1 total)