Target Unreachable, identifier [utilisateurBean] resolved to null [on hold]
The context this example, I would like to list the users of my application. But I had as error Target Unreachable, identifier [utilisateurBean] resolved to null we display the page xhtml but the datatable is empty.
The managed Bean
@ManagedBean(name = "utilisateurMB")
@SessionScoped
public class UtilisateurBean {
@ManagedProperty(value = "#{utilisateurService}")
private IUtilisateurService utilisateurService;
private Utilisateur utilisateur;
private List<Utilisateur> utilisateurs;
private List<Role> rolesSlected;
private List<TypeUtilisateur> types = Arrays.asList(TypeUtilisateur.values());
@PostConstruct
public void init() {
refreshList();
}
public void refreshList() {
setUtilisateur(new Utilisateur());
utilisateurs=new ArrayList<Utilisateur>();
rolesSlected=new ArrayList<Role>();
utilisateurs.addAll(utilisateurService.listerUtilisateurs());
System.out.println("Taille table Utilisateur "+utilisateurs.size());
System.out.println("Taille Enum Type utilisateur "+types.size());
}
XHTML
<p:dataTable process="@all" id="dataTable" var="utilis"
value="#{utilisateurMB.utilisateurs}"
emptyMessage="La liste des utilisateurs est vide !!!">
<p:column headerText="Login">
<h:outputText value="#{utilis.login}" />
</p:column>
<p:column headerText="Email">
<h:outputText value="#{utilis.mail}" />
</p:column>
<p:column headerText="Type">
<h:outputText value="#{utilis.type}" />
</p:column>
<p:column headerText="Actif">
<h:outputText value="#{utilis.actif}" />
</p:column>
<p:column headerText="Droits">
</p:column>
</p:dataTable>
Whole exception:
Dec 27, 2018 6:59:33 PM com.sun.faces.context.AjaxExceptionHandlerImpl handlePartialResponseError
SEVERE: javax.el.PropertyNotFoundException: /securite/ajouterUtilisateur.xhtml @58,85 value="#{utilisateurMB.utilisateur.login}": Target Unreachable, identifier [utilisateurMB] resolved to null
at com.sun.faces.facelets.el.TagValueExpression.getType(TagValueExpression.java:100)
at org.primefaces.util.ComponentUtils.getConverter(ComponentUtils.java:152)
at org.primefaces.renderkit.InputRenderer.getConvertedValue(InputRenderer.java:199)
at javax.faces.component.UIInput.getConvertedValue(UIInput.java:1045)
at javax.faces.component.UIInput.validate(UIInput.java:975)
at javax.faces.component.UIInput.executeValidate(UIInput.java:1248)
at javax.faces.component.UIInput.processValidators(UIInput.java:712)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1260)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1260)
at org.primefaces.component.fieldset.Fieldset.processValidators(Fieldset.java:225)
at javax.faces.component.UIForm.processValidators(UIForm.java:253)
Caused by: javax.el.PropertyNotFoundException: Target Unreachable, identifier [utilisateurMB] resolved to null
at org.apache.el.parser.AstValue.getTarget(AstValue.java:74)
at org.apache.el.parser.AstValue.getType(AstValue.java:58)
at org.apache.el.ValueExpressionImpl.getType(ValueExpressionImpl.java:174)
at com.sun.faces.facelets.el.TagValueExpression.getType(TagValueExpression.java:98)
Thank you for your help
java spring jsf primefaces
put on hold as off-topic by Carcigenicate, Kukeltje, Matt Ball, greg-449, gnat Dec 27 at 14:16
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Carcigenicate, Kukeltje, Matt Ball, greg-449, gnat
If this question can be reworded to fit the rules in the help center, please edit the question.
|
show 2 more comments
The context this example, I would like to list the users of my application. But I had as error Target Unreachable, identifier [utilisateurBean] resolved to null we display the page xhtml but the datatable is empty.
The managed Bean
@ManagedBean(name = "utilisateurMB")
@SessionScoped
public class UtilisateurBean {
@ManagedProperty(value = "#{utilisateurService}")
private IUtilisateurService utilisateurService;
private Utilisateur utilisateur;
private List<Utilisateur> utilisateurs;
private List<Role> rolesSlected;
private List<TypeUtilisateur> types = Arrays.asList(TypeUtilisateur.values());
@PostConstruct
public void init() {
refreshList();
}
public void refreshList() {
setUtilisateur(new Utilisateur());
utilisateurs=new ArrayList<Utilisateur>();
rolesSlected=new ArrayList<Role>();
utilisateurs.addAll(utilisateurService.listerUtilisateurs());
System.out.println("Taille table Utilisateur "+utilisateurs.size());
System.out.println("Taille Enum Type utilisateur "+types.size());
}
XHTML
<p:dataTable process="@all" id="dataTable" var="utilis"
value="#{utilisateurMB.utilisateurs}"
emptyMessage="La liste des utilisateurs est vide !!!">
<p:column headerText="Login">
<h:outputText value="#{utilis.login}" />
</p:column>
<p:column headerText="Email">
<h:outputText value="#{utilis.mail}" />
</p:column>
<p:column headerText="Type">
<h:outputText value="#{utilis.type}" />
</p:column>
<p:column headerText="Actif">
<h:outputText value="#{utilis.actif}" />
</p:column>
<p:column headerText="Droits">
</p:column>
</p:dataTable>
Whole exception:
Dec 27, 2018 6:59:33 PM com.sun.faces.context.AjaxExceptionHandlerImpl handlePartialResponseError
SEVERE: javax.el.PropertyNotFoundException: /securite/ajouterUtilisateur.xhtml @58,85 value="#{utilisateurMB.utilisateur.login}": Target Unreachable, identifier [utilisateurMB] resolved to null
at com.sun.faces.facelets.el.TagValueExpression.getType(TagValueExpression.java:100)
at org.primefaces.util.ComponentUtils.getConverter(ComponentUtils.java:152)
at org.primefaces.renderkit.InputRenderer.getConvertedValue(InputRenderer.java:199)
at javax.faces.component.UIInput.getConvertedValue(UIInput.java:1045)
at javax.faces.component.UIInput.validate(UIInput.java:975)
at javax.faces.component.UIInput.executeValidate(UIInput.java:1248)
at javax.faces.component.UIInput.processValidators(UIInput.java:712)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1260)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1260)
at org.primefaces.component.fieldset.Fieldset.processValidators(Fieldset.java:225)
at javax.faces.component.UIForm.processValidators(UIForm.java:253)
Caused by: javax.el.PropertyNotFoundException: Target Unreachable, identifier [utilisateurMB] resolved to null
at org.apache.el.parser.AstValue.getTarget(AstValue.java:74)
at org.apache.el.parser.AstValue.getType(AstValue.java:58)
at org.apache.el.ValueExpressionImpl.getType(ValueExpressionImpl.java:174)
at com.sun.faces.facelets.el.TagValueExpression.getType(TagValueExpression.java:98)
Thank you for your help
java spring jsf primefaces
put on hold as off-topic by Carcigenicate, Kukeltje, Matt Ball, greg-449, gnat Dec 27 at 14:16
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Carcigenicate, Kukeltje, Matt Ball, greg-449, gnat
If this question can be reworded to fit the rules in the help center, please edit the question.
And try a search engine. It a very prominent Q with several A's in stackoverflow
– Kukeltje
Dec 27 at 13:36
And errors should be in text, not images. Please check the 'downvote' reasons on idownvotedbecau.se You sort of 'violate' many of them.
– Kukeltje
Dec 27 at 13:39
@InesZerriaa once you read for example this - idownvotedbecau.se/nomcve feel free to edit your question and someone will help you for sure. Getting an answer starts with asking a question properly...
– Betlista
Dec 27 at 14:17
And how to ask a question properly and what to do upfront was outlined to you in the How to Ask page when you signed up. Please read it again. And errors from a stacktrace make great search terms... Try it...
– Kukeltje
Dec 27 at 15:17
Hi, this is not a Minimal, Complete, and Verifiable example. And the error in your introduction is different from the error in the stacktrace and the usage in the code. And you still do npt mention any references to questions already present in SO. Please pay attention to thing like this!
– Kukeltje
2 days ago
|
show 2 more comments
The context this example, I would like to list the users of my application. But I had as error Target Unreachable, identifier [utilisateurBean] resolved to null we display the page xhtml but the datatable is empty.
The managed Bean
@ManagedBean(name = "utilisateurMB")
@SessionScoped
public class UtilisateurBean {
@ManagedProperty(value = "#{utilisateurService}")
private IUtilisateurService utilisateurService;
private Utilisateur utilisateur;
private List<Utilisateur> utilisateurs;
private List<Role> rolesSlected;
private List<TypeUtilisateur> types = Arrays.asList(TypeUtilisateur.values());
@PostConstruct
public void init() {
refreshList();
}
public void refreshList() {
setUtilisateur(new Utilisateur());
utilisateurs=new ArrayList<Utilisateur>();
rolesSlected=new ArrayList<Role>();
utilisateurs.addAll(utilisateurService.listerUtilisateurs());
System.out.println("Taille table Utilisateur "+utilisateurs.size());
System.out.println("Taille Enum Type utilisateur "+types.size());
}
XHTML
<p:dataTable process="@all" id="dataTable" var="utilis"
value="#{utilisateurMB.utilisateurs}"
emptyMessage="La liste des utilisateurs est vide !!!">
<p:column headerText="Login">
<h:outputText value="#{utilis.login}" />
</p:column>
<p:column headerText="Email">
<h:outputText value="#{utilis.mail}" />
</p:column>
<p:column headerText="Type">
<h:outputText value="#{utilis.type}" />
</p:column>
<p:column headerText="Actif">
<h:outputText value="#{utilis.actif}" />
</p:column>
<p:column headerText="Droits">
</p:column>
</p:dataTable>
Whole exception:
Dec 27, 2018 6:59:33 PM com.sun.faces.context.AjaxExceptionHandlerImpl handlePartialResponseError
SEVERE: javax.el.PropertyNotFoundException: /securite/ajouterUtilisateur.xhtml @58,85 value="#{utilisateurMB.utilisateur.login}": Target Unreachable, identifier [utilisateurMB] resolved to null
at com.sun.faces.facelets.el.TagValueExpression.getType(TagValueExpression.java:100)
at org.primefaces.util.ComponentUtils.getConverter(ComponentUtils.java:152)
at org.primefaces.renderkit.InputRenderer.getConvertedValue(InputRenderer.java:199)
at javax.faces.component.UIInput.getConvertedValue(UIInput.java:1045)
at javax.faces.component.UIInput.validate(UIInput.java:975)
at javax.faces.component.UIInput.executeValidate(UIInput.java:1248)
at javax.faces.component.UIInput.processValidators(UIInput.java:712)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1260)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1260)
at org.primefaces.component.fieldset.Fieldset.processValidators(Fieldset.java:225)
at javax.faces.component.UIForm.processValidators(UIForm.java:253)
Caused by: javax.el.PropertyNotFoundException: Target Unreachable, identifier [utilisateurMB] resolved to null
at org.apache.el.parser.AstValue.getTarget(AstValue.java:74)
at org.apache.el.parser.AstValue.getType(AstValue.java:58)
at org.apache.el.ValueExpressionImpl.getType(ValueExpressionImpl.java:174)
at com.sun.faces.facelets.el.TagValueExpression.getType(TagValueExpression.java:98)
Thank you for your help
java spring jsf primefaces
The context this example, I would like to list the users of my application. But I had as error Target Unreachable, identifier [utilisateurBean] resolved to null we display the page xhtml but the datatable is empty.
The managed Bean
@ManagedBean(name = "utilisateurMB")
@SessionScoped
public class UtilisateurBean {
@ManagedProperty(value = "#{utilisateurService}")
private IUtilisateurService utilisateurService;
private Utilisateur utilisateur;
private List<Utilisateur> utilisateurs;
private List<Role> rolesSlected;
private List<TypeUtilisateur> types = Arrays.asList(TypeUtilisateur.values());
@PostConstruct
public void init() {
refreshList();
}
public void refreshList() {
setUtilisateur(new Utilisateur());
utilisateurs=new ArrayList<Utilisateur>();
rolesSlected=new ArrayList<Role>();
utilisateurs.addAll(utilisateurService.listerUtilisateurs());
System.out.println("Taille table Utilisateur "+utilisateurs.size());
System.out.println("Taille Enum Type utilisateur "+types.size());
}
XHTML
<p:dataTable process="@all" id="dataTable" var="utilis"
value="#{utilisateurMB.utilisateurs}"
emptyMessage="La liste des utilisateurs est vide !!!">
<p:column headerText="Login">
<h:outputText value="#{utilis.login}" />
</p:column>
<p:column headerText="Email">
<h:outputText value="#{utilis.mail}" />
</p:column>
<p:column headerText="Type">
<h:outputText value="#{utilis.type}" />
</p:column>
<p:column headerText="Actif">
<h:outputText value="#{utilis.actif}" />
</p:column>
<p:column headerText="Droits">
</p:column>
</p:dataTable>
Whole exception:
Dec 27, 2018 6:59:33 PM com.sun.faces.context.AjaxExceptionHandlerImpl handlePartialResponseError
SEVERE: javax.el.PropertyNotFoundException: /securite/ajouterUtilisateur.xhtml @58,85 value="#{utilisateurMB.utilisateur.login}": Target Unreachable, identifier [utilisateurMB] resolved to null
at com.sun.faces.facelets.el.TagValueExpression.getType(TagValueExpression.java:100)
at org.primefaces.util.ComponentUtils.getConverter(ComponentUtils.java:152)
at org.primefaces.renderkit.InputRenderer.getConvertedValue(InputRenderer.java:199)
at javax.faces.component.UIInput.getConvertedValue(UIInput.java:1045)
at javax.faces.component.UIInput.validate(UIInput.java:975)
at javax.faces.component.UIInput.executeValidate(UIInput.java:1248)
at javax.faces.component.UIInput.processValidators(UIInput.java:712)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1260)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1260)
at org.primefaces.component.fieldset.Fieldset.processValidators(Fieldset.java:225)
at javax.faces.component.UIForm.processValidators(UIForm.java:253)
Caused by: javax.el.PropertyNotFoundException: Target Unreachable, identifier [utilisateurMB] resolved to null
at org.apache.el.parser.AstValue.getTarget(AstValue.java:74)
at org.apache.el.parser.AstValue.getType(AstValue.java:58)
at org.apache.el.ValueExpressionImpl.getType(ValueExpressionImpl.java:174)
at com.sun.faces.facelets.el.TagValueExpression.getType(TagValueExpression.java:98)
Thank you for your help
java spring jsf primefaces
java spring jsf primefaces
edited Dec 27 at 18:08
asked Dec 27 at 13:11
Ines Zerriaa
13
13
put on hold as off-topic by Carcigenicate, Kukeltje, Matt Ball, greg-449, gnat Dec 27 at 14:16
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Carcigenicate, Kukeltje, Matt Ball, greg-449, gnat
If this question can be reworded to fit the rules in the help center, please edit the question.
put on hold as off-topic by Carcigenicate, Kukeltje, Matt Ball, greg-449, gnat Dec 27 at 14:16
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Carcigenicate, Kukeltje, Matt Ball, greg-449, gnat
If this question can be reworded to fit the rules in the help center, please edit the question.
And try a search engine. It a very prominent Q with several A's in stackoverflow
– Kukeltje
Dec 27 at 13:36
And errors should be in text, not images. Please check the 'downvote' reasons on idownvotedbecau.se You sort of 'violate' many of them.
– Kukeltje
Dec 27 at 13:39
@InesZerriaa once you read for example this - idownvotedbecau.se/nomcve feel free to edit your question and someone will help you for sure. Getting an answer starts with asking a question properly...
– Betlista
Dec 27 at 14:17
And how to ask a question properly and what to do upfront was outlined to you in the How to Ask page when you signed up. Please read it again. And errors from a stacktrace make great search terms... Try it...
– Kukeltje
Dec 27 at 15:17
Hi, this is not a Minimal, Complete, and Verifiable example. And the error in your introduction is different from the error in the stacktrace and the usage in the code. And you still do npt mention any references to questions already present in SO. Please pay attention to thing like this!
– Kukeltje
2 days ago
|
show 2 more comments
And try a search engine. It a very prominent Q with several A's in stackoverflow
– Kukeltje
Dec 27 at 13:36
And errors should be in text, not images. Please check the 'downvote' reasons on idownvotedbecau.se You sort of 'violate' many of them.
– Kukeltje
Dec 27 at 13:39
@InesZerriaa once you read for example this - idownvotedbecau.se/nomcve feel free to edit your question and someone will help you for sure. Getting an answer starts with asking a question properly...
– Betlista
Dec 27 at 14:17
And how to ask a question properly and what to do upfront was outlined to you in the How to Ask page when you signed up. Please read it again. And errors from a stacktrace make great search terms... Try it...
– Kukeltje
Dec 27 at 15:17
Hi, this is not a Minimal, Complete, and Verifiable example. And the error in your introduction is different from the error in the stacktrace and the usage in the code. And you still do npt mention any references to questions already present in SO. Please pay attention to thing like this!
– Kukeltje
2 days ago
And try a search engine. It a very prominent Q with several A's in stackoverflow
– Kukeltje
Dec 27 at 13:36
And try a search engine. It a very prominent Q with several A's in stackoverflow
– Kukeltje
Dec 27 at 13:36
And errors should be in text, not images. Please check the 'downvote' reasons on idownvotedbecau.se You sort of 'violate' many of them.
– Kukeltje
Dec 27 at 13:39
And errors should be in text, not images. Please check the 'downvote' reasons on idownvotedbecau.se You sort of 'violate' many of them.
– Kukeltje
Dec 27 at 13:39
@InesZerriaa once you read for example this - idownvotedbecau.se/nomcve feel free to edit your question and someone will help you for sure. Getting an answer starts with asking a question properly...
– Betlista
Dec 27 at 14:17
@InesZerriaa once you read for example this - idownvotedbecau.se/nomcve feel free to edit your question and someone will help you for sure. Getting an answer starts with asking a question properly...
– Betlista
Dec 27 at 14:17
And how to ask a question properly and what to do upfront was outlined to you in the How to Ask page when you signed up. Please read it again. And errors from a stacktrace make great search terms... Try it...
– Kukeltje
Dec 27 at 15:17
And how to ask a question properly and what to do upfront was outlined to you in the How to Ask page when you signed up. Please read it again. And errors from a stacktrace make great search terms... Try it...
– Kukeltje
Dec 27 at 15:17
Hi, this is not a Minimal, Complete, and Verifiable example. And the error in your introduction is different from the error in the stacktrace and the usage in the code. And you still do npt mention any references to questions already present in SO. Please pay attention to thing like this!
– Kukeltje
2 days ago
Hi, this is not a Minimal, Complete, and Verifiable example. And the error in your introduction is different from the error in the stacktrace and the usage in the code. And you still do npt mention any references to questions already present in SO. Please pay attention to thing like this!
– Kukeltje
2 days ago
|
show 2 more comments
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
And try a search engine. It a very prominent Q with several A's in stackoverflow
– Kukeltje
Dec 27 at 13:36
And errors should be in text, not images. Please check the 'downvote' reasons on idownvotedbecau.se You sort of 'violate' many of them.
– Kukeltje
Dec 27 at 13:39
@InesZerriaa once you read for example this - idownvotedbecau.se/nomcve feel free to edit your question and someone will help you for sure. Getting an answer starts with asking a question properly...
– Betlista
Dec 27 at 14:17
And how to ask a question properly and what to do upfront was outlined to you in the How to Ask page when you signed up. Please read it again. And errors from a stacktrace make great search terms... Try it...
– Kukeltje
Dec 27 at 15:17
Hi, this is not a Minimal, Complete, and Verifiable example. And the error in your introduction is different from the error in the stacktrace and the usage in the code. And you still do npt mention any references to questions already present in SO. Please pay attention to thing like this!
– Kukeltje
2 days ago