1

JSF 2 および PrimeFaces (3.5) で動作する Liferay protlet を開発しています。私は Eclipse を使用しています。プロジェクト ファセットで「Java Server Faces」を有効にすると、この驚くべきエラーが発生します。

    Multiple annotations found at this line:
- Syntax error in EL
- Method must have signature "String method(), String method(String), String method(String, String), String method(String, String, String), String method(String, String, 
 String, String), String method(String, String, String, String, String), String method(String, String, String, String, String, String), String method(String, String, String, String, String, String, 
 String), String method(String, String, String, String, String, String, String, String), String method(String, String, String, String, String, String, String, String, String), String method(String, 
 String, String, String, String, String, String, String, String, String), String method(String, String, String, String, String, String, String, String, String, String, String), String method(String, 
 String, String, String, String, String, String, String, String, String, String, String), String method(String, String, String, String, String, String, String, String, String, String, String, String, 
 String), String method(String, String, String, String, String, String, String, String, String, String, String, String, String, String), String method(String, String, String, String, String, String, 
 String, String, String, String, String, String, String, String, String), String method(String, String, String, String, String, String, String, String, String, String, String, String, String, String, 
 String, String), String method(String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String), String method(String, String, 
 String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String), String method(String, String, String, String, String, String, String, 
 String, String, String, String, String, String, String, String, String, String, String, String)" but has signature "String method(ABC)"

それを引き起こすxhtmlコードは次のとおりです。

<p:column headerText="Some Column Headed">  
    <h:outputText value="#{ mysteryBean.getABCName(widgetVarInstanceOfClassABC)}" />  
</p:column>

また、BackingBean (@ManagedBean) のコード (上記で mysteryBean として参照) は次のとおりです。

public String getABCName(ABC abc) throws Exception{
    // Used to get something that is not available through the get functions of ABC Class 
    // Do stuff related to the instance...
    return something;       
}

これまでのところ、私のコードは問題なく正常に動作します。
Eclipse EL の構文と検証に問題があることは知っていますが、それだけなのか、何か間違ったことをしたのかはわかりません。心配する必要がありますか?

4

1 に答える 1