Note that there are some explanatory texts on larger screens.

plurals
  1. POTarget Unreachable, returned null
    text
    copied!<p>i'm experiencing problems while trying to use the object currentActeurObjetProjet and display its attributes on a dialog using Primefaces but it keeps showing this error:<br/></p> <blockquote> <p>ATTENTION: /infoprojet.xhtml @493,159 value="#{acteurObjetProjetBean.currentActeurObjetProjet.objets.nomObjet}": Target Unreachable, 'objets' returned null javax.el.PropertyNotFoundException: /infoprojet.xhtml @493,159 value="#{acteurObjetProjetBean.currentActeurObjetProjet.objets.nomObjet}": Target Unreachable, 'objets' returned null</p> </blockquote> <p>here is the back up bean:</p> <pre><code>package com.mycompany.projet; ....... /** * * @author Omar */ @Component("etatsBean") @Scope("session") public class ActeurObjetProjetBean implements Serializable{ ....... private ActeurObjetProjet currentActeurObjetProjet=new ActeurObjetProjet(); ....... ////////////////////////////////////////////////////////// Méthodes &amp; fonctions\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ ////////////////////////////////////////////////////////// setters &amp; getters \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ public void setCurrentActeurObjetProjet(ActeurObjetProjet currentActeurObjetProjet) { this.currentActeurObjetProjet=currentActeurObjetProjet; } public ActeurObjetProjet getCurrentActeurObjetProjet() { return currentActeurObjetProjet; } ....... } </code></pre> <p>here is my page code:</p> <pre><code>&lt;p:dialog header="Editer Objet" widgetVar="editobjetDialog" resizable="true" width="300" height="300" showEffect="clip" hideEffect="clip" modal="true"&gt; &lt;p:outputPanel id="editobjetDetail" style="text-align:center;" layout="block"&gt; &lt;center&gt; &lt;h:panelGrid columns="2" cellpadding="5"&gt; &lt;h:outputLabel value="Nom Objet "/&gt; &lt;p:inputText value="#{acteurObjetProjetBean.currentActeurObjetProjet.objets.nomObjet}" style="width: 180px"/&gt; &lt;h:outputLabel value="Accès DB2 "/&gt; &lt;p:inputText value="#{acteurObjetProjetBean.currentActeurObjetProjet.objets.accesDb2}" style="width: 180px"/&gt; &lt;h:outputLabel value="Etat "/&gt; &lt;p:inputText value="#{acteurObjetProjetBean.currentActeurObjetProjet.objets.etatObjet}" style="width: 180px"/&gt; &lt;h:outputLabel value="Version "/&gt; &lt;p:inputText value="#{acteurObjetProjetBean.currentActeurObjetProjet.objets.versionObjet}" style="width: 180px"/&gt; &lt;/h:panelGrid&gt; &lt;/center&gt; &lt;/p:outputPanel&gt; &lt;/p:dialog&gt; </code></pre> <p>Regards</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload