Eclipse 如何消除诸如“警告”之类的警告;无法将属性解析为cc的成员;?

Eclipse 如何消除诸如“警告”之类的警告;无法将属性解析为cc的成员;?,eclipse,jsf,jsf-2,composite-component,code-completion,Eclipse,Jsf,Jsf 2,Composite Component,Code Completion,如何消除标记“cc.attrs.onCompleteJS”、“cc.attrs.updateAjax”和“cc.attrs.imageValue”的警告?每个警告都有与“ATTR不能作为cc成员解析”相同的解释。我使用JSF2.x作为框架,使用Eclipse作为编辑器 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/j

如何消除标记“cc.attrs.onCompleteJS”、“cc.attrs.updateAjax”和“cc.attrs.imageValue”的警告?每个警告都有与“ATTR不能作为cc成员解析”相同的解释。我使用JSF2.x作为框架,使用Eclipse作为编辑器

<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:composite="http://java.sun.com/jsf/composite"
xmlns:p="http://primefaces.org/ui">

<composite:interface>
    <composite:attribute name="imageValue"></composite:attribute>
    <composite:attribute name="updateAjax"></composite:attribute>
    <composite:attribute name="onCompleteJS"></composite:attribute> 
</composite:interface>
<composite:implementation>
    <h:outputStylesheet library="css" name="regionTreeComponent.css"></h:outputStylesheet>      
    <table style="width: 100%" cellspacing="0" cellpadding="5">
        <tr>
            <td style="width: 100%">
                <p:autoComplete forceSelection="true" id="sTxtRegionName" value="#{regionTreeBean.sRegionName}" 
                completeMethod="#{regionTreeBean.completeRegionName}" styleClass="sTxtRegionName" />
            </td>
            <td>
                <p:commandButton styleClass="rSearchButton"  id="iconOnly" icon="ui-icon-search" actionListener="#{regionTreeBean.searchSelectNode}" 
                oncomplete="#{cc.attrs.onCompleteJS}" update=":mainForm:treeComponent:regionTree #{cc.attrs.updateAjax}"/>
            </td>
        </tr>
    </table>
    <hr style="width: 100%;"></hr>
    <div style="text-align: center;">
        <h:graphicImage styleClass="headerImage" library="images" name="#{cc.attrs.imageValue}"></h:graphicImage>
        <p:outputLabel styleClass="headerLabel" value="#{msgs['treeComponent.regions']}"></p:outputLabel>
    </div>
    <p:tree value="#{regionTreeBean.rootNode}" var="node"
    animate="true" selection="#{regionTreeBean.selectedNode}"
    selectionMode="single" styleClass="tree" id="regionTree">
        <p:ajax event="select" listener="#{regionTreeBean.onNodeSelect}" update="#{cc.attrs.updateAjax}" oncomplete="#{cc.attrs.onCompleteJS}" />
        <p:treeNode styleClass="slTreeNode" icon="region">
            <h:outputText value="#{node.REGION_NAME}"/>
        </p:treeNode>
    </p:tree>   
</composite:implementation>
</html>



哪个Eclipse版本?为Web开发人员试用了最新的?@BalusC、Eclipse Java EE IDE。版本:开普勒服务发布1构建id:20130919-0819。Eclipse会在短时间内生成新版本,这就是为什么我的Eclipse可能已经过时的原因。这绝对不是最新版本。Eclipse每年只生成一次新版本。首先尝试最新的方法,排除已经修复了很长时间的bug或实现的缺失特性。每当你遇到奇怪或遗漏的行为时,一定要确保一切都是最新的。谢谢你的建议。