私はこの問題に保護された属性を含むクラスを取得しました:
テストクラス:
abstract public class Test extends WithAttachment{
static ISQLTest pISQLTest = null;
// Ajour une refence au campagne ??? pour resoudre le Warning
/**
* Date de creation du test
*/
protected Date creationDate;
/**
* Nom complet du concepteur du test
*/
protected String conceptorName;
/**
* Login du concepteur du test
*/
protected String conceptorLogin;
.....}
マネージドBean:
private Test selectedTest; // with getters and setters
xhtmlページ:
<h:panelGrid columns="2" cellpadding="4" header="Test Details">
<h:outputText value="Name of The Test :" />
<h:outputText value="#{projectTestManagementMB.selectedTest.name}" />
<h:outputText value="Creation Date :" />
<h:outputText value="#{projectTestManagementMB.selectedTest.creationDate}" />
<h:outputText value="Executed :" />
<h:outputText value="#{projectTestManagementMB.testExecutedFlag}" />
<h:outputText value="Owner :" />
<h:outputText value="#{projectTestManagementMB.selectedTest.conceptorName} #{projectTestManagementMB.selectedTestconceptorLogin}" />
</h:panelGrid>
したがって、EL式のxhtmlページでそれらにアクセスしようとすると、このエラーが発生します。t
attribute name can no be resolved as member of selectedTest
したがって、クラスTest属性のアクセスタイプ(保護)を変更せずにこの問題を解決する可能性はありますか。
どんな助けでもありがたいです