Deploying
Deploying

Reputation: 1

"#{rolebean.roleId}": Target Unreachable, identifier 'roleBean' resolved to null

This is my xhtml

<f:metadata>
 <f:viewParam name="roleid" value="#{roleBean.roleid}"/>
 <f:event type="preRenderView" listener="#{warManagedBean.generatewar()}"/>
 </f:metadata>

This is my code in

@ManagedBean(name = "roleBean")
@SessionScoped
public class RoleBean implements Serializable{

    private String x;
    private String y;
    private String z;
    private String roleid;

Here i am trying to pass the id as a parameter to next page and it should retrieve values based on that id. When i pass the bean id as a parameter to next page i get error

"#{rolebean.roleId}": Target Unreachable, identifier 'roleBean' resolved to null

This is the value from the column from the first xhtml page which i carry to next xhtml

<h:column>
 <f:facet name="header">
 <h:outputText value="RoleID" />
 </f:facet>
 <h:link outcome="info">
 <h:outputText value="#{roleBean.roleid}" style="white-space:nowrap"></h:outputText>
  <f:param name="roled" value="#{roleBean.roleid}">
</f:param>
  </h:link>
 </h:column>

Upvotes: 0

Views: 256

Answers (0)

Related Questions