javax.el.MethodNotFoundException

UI Components for JSF
Post Reply
dejager911
Posts: 2
Joined: 24 Oct 2016, 15:54

25 Oct 2016, 09:38

javax.el.MethodNotFoundException /PerformRiskAnalysisStep1.xhtml @78,118 action="#{periculumrisk.scope}": Method not found: com.uj.businessbeans.PerformRiskAnalysisStep1@33e56214.scope()

I've been browsing all sorts of forums for 2 days and cannot find a solution to this issue. Please if someone would assist?


XML is as follows:
[*]

Code: Select all

<h:form>
        
            <p:layout style="min-width:1000px;min-height:200px;" fullPage="true">
             <p:layoutUnit position="north" resizable="false">
                <h:graphicImage value="/images/periculum.PNG" width="200" height="60" />
            </p:layoutUnit>
            
            
            <p:layoutUnit position="west" resizable="false" size="100" minSize="40" maxSize="200">
                <p:accordionPanel>
                    <p:tab title="Dashboards">
                        <p:link value="View Static Dashboards" outcome="staticDashboards"></p:link>
                    </p:tab>

                    <p:tab title="Risk Assessment Management">
                       <p:link value="Start a new RA" outcome="RiskAssessmentScope"></p:link><br/><br/>
                       <p:link value="Perform Risk Analysis" outcome="PerformRiskAnalysisStep1"></p:link><br/><br/>
                       <p:link value="View RA Status" outcome="RiskAssessmentStatusDashboard"></p:link><br/><br/>
                    </p:tab>

                    <p:tab title="DataCenter Management">
                        <p:link value="CRUD Datacenters" outcome="DataCenterInsertUpdate"></p:link>
                    </p:tab>

                    <p:tab title="Client Management">
                        <p:link value="CRUD Clients" outcome="ClientInsertUpdate"></p:link>               
                    </p:tab>

                    <p:tab title="SAP Site Management">
                        <p:link value="Configure SAP Sites" outcome="SAPSiteInsertUpdate"></p:link><br/><br/>
                    </p:tab>
                </p:accordionPanel>
            </p:layoutUnit>
            
            <p:layoutUnit position="center">
                
                 
                
                   
                        <p:panel header="Step 1 - Set the Scope">
                            <h:panelGrid columns="2" columnClasses="label,value">
                                
                                <h:outputText value="The following SAP Sites Status is Intitial and no risk analysis has been performed"/>
                                <h:outputText />
                                
                                <h:outputText value="Client Name * "/>
                                <p:selectOneMenu id="clientmenu" value="#{periculumrisk.selectedclientName}" style="width:300px" required="true">
                                    <f:selectItems value="#{periculumrisk.assessmentList}"/>
                                </p:selectOneMenu>
                                
                                <h:outputText value="Perspective * "/>
                                <p:selectOneMenu id="perspectivemenu" value="#{periculumrisk.selectedperspective}" required="true">
                                    <f:selectItems value="#{periculumrisk.perspectives}"/>
                                </p:selectOneMenu>
                                
                                <h:outputText value="Analysis Domain : * " />
                                <p:selectOneMenu id="domain" value="#{periculumrisk.selectedassessmentdomain}" required="true" requiredMessage="please select a value" >
                                    <f:selectItems value="#{periculumrisk.assessmentdomains}"/>
                                </p:selectOneMenu>
                                
                                <p:commandButton action="#{periculumrisk.scope}" process="@this"  value="Set Scope"/>
                            </h:panelGrid>
                        </p:panel>
            </p:layoutUnit>
            
        </p:layout>
            
        
         </h:form>
Here is my backing bean:

Code: Select all

@ManagedBean(name="periculumrisk") 
@SessionScoped
public class PerformRiskAnalysisStep1 implements Serializable 

public String setScope(javax.faces.event.ActionEvent e) {
            
            FacesContext context = FacesContext.getCurrentInstance(); 
            context.getExternalContext().getSessionMap().put("clientname",  selectedclientName);
            System.out.println("Saving context for :  " +  selectedclientName);
            return "PerformRiskAnalysisStep2";
    }


{

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

25 Oct 2016, 18:17

Interpret the error carefully... it says scope() is not found (parameterless method) and you do nothave a parameterless method in your bean. Search stackoverflow next time

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 40 guests