由于我添加了参数化类,Juno 将我的属性引用突出显示为无效。
public abstract class AbstractBaseAction<viewDataClass extends AbstractViewData>
protected viewDataClass viewData;
public viewDataClass getViewData(){
return viewData;
}
....
}
public class SomeAction extends AbstractBaseAction<SomeViewData>
{
public AbstractMaturingOptionsAction()
{
super(new SomeViewData());
}
@PostConstruct
public void setupViewData(){
....
}
....
}
public class SomeViewData extends AbstractViewData
String someProperty;
public String getSomeProperty(){
return someProperty;
}
....
}
....
property="#{SomeAction.viewData.someProperty}"
朱诺正在突出一些属性
“someProperty 无法解析为 viewData 的成员”
这值得调查,还是我应该以另一种方式编码?