cancel
Showing results for 
Search instead for 
Did you mean: 

i am not able to call a manage bean ?

jetty
Champ in-the-making
Champ in-the-making
hi ,
     i have written an been class called startworkflowcustom . i am calling this manage bean from an custom config file .but it's not executing the bean .here is the  config custom xml. i have also mentioned in faces config file as below.
please let me if any error is there in this xml


<br/>
<br/>

faces config.xml
<managed-bean>
      <description>Starting Workflow Wizard</description>
      <managed-bean-name>StartWorkflowWizardCustom</managed-bean-name>
      <managed-bean-class>com.acme.web.bean.workflow.StartWorkflowWizardCustom</managed-bean-class>
      <managed-bean-scope>session</managed-bean-scope>
      <managed-property>
         <property-name>nodeService</property-name>
         <value>#{NodeService}</value>
      </managed-property>
      <managed-property>
         <property-name>fileFolderService</property-name>
         <value>#{fileFolderService}</value>
      </managed-property>
   </managed-bean>


here is the config custom file

<conifg>
      <wizards>
         <wizard name="startWorkflow" managed-bean="web/bean/workflow/StartWorkflowWizardCustom"
            description-id="start_workflow_desc" icon="/images/icons/new_workflow_large.gif">
            <permissions>
               <permission allow="true">Collaborator</permission>
            </permissions>
            <step name="choose-workflow" title-id="step_choose_workflow"
               description-id="start_workflow_choose_desc">
               <page path="/jsp/workflow/start-workflow-wizard/choose-workflow.jsp"
                  title-id="start_workflow_choose_title" description-id="start_workflow_choose_desc"
                  instruction-id="default_instruction" />
            </step>
            <step name="options" title-id="step_workflow_options"
               description-id="start_workflow_options_desc">
               <page path="/jsp/workflow/start-workflow-wizard/workflow-options.jsp"
                  title-id="start_workflow_options_title" description-id="start_workflow_options_desc"
                  instruction-id="default_instruction" />
            </step>
            <step name="summary" title-id="summary" description-id="summary_step_description">
               <page path="/jsp/wizard/summary.jsp" title-id="summary"
                  description-id="summary_desc" instruction-id="start_workflow_finish_instruction" />
            </step>
         </wizard>
      </wizards>
   </conifg>
3 REPLIES 3

amitabhandari1
Champ in-the-making
Champ in-the-making
Hi jetty,

Why you have to write a complete path "web/bean/workflow/StartWorkflowWizardCustom" .
Please  replace the line as mentioned below
<wizard name="startWorkflow" managed-bean="StartWorkflowWizardCustom"

Thanks,
Amita

jetty
Champ in-the-making
Champ in-the-making
Hi AmitaBhandari,

i have replaced this <wizard name="startWorkflow" managed-bean="StartWorkflowWizardCustom">line aloso.its not calling the java file .May i write any bean defination in action context xml file . if please let me  know what are all the  properties that i have to include in that bean defination please let me know .

amitabhandari1
Champ in-the-making
Champ in-the-making
Please check the "StartWorkflowWizard"  bean and follow the same steps to create your custom bean.

Thanks,