2 Replies Latest reply: May 28, 2012 5:48 AM by Tshifhiwa RSS

    task flow error not able to navigate to home page

    Tshifhiwa
      hi am not able to navigate to my home page screen my task flow is bounded task flow,i have set my control action in my login screen button but still cannot navigate to my homw page.

      my task flow source defination is
      <?xml version="1.0" encoding="windows-1252" ?>
      <adfc-config xmlns="http://xmlns.oracle.com/adf/controller">
      <task-flow-definition id="LogOntask-flow-definiton">
      <view id="LogOn">
      <page>/sms0000 LogOn.jspx</page>
      <redirect/>
      <input-page-parameter id="__5">
      <from-value>#{data.SmsFrontUI_LogOnPageDef}</from-value>
      <to-value>#{data.SmsFrontUI_LogOnPageDef}</to-value>
      </input-page-parameter>
      </view>
      <view id="sms0000-v2">
      <page>/sms0000-v2.jspx</page>
      <redirect/>
      </view>
      <view id="Users">
      <page>/sms9300.jspx</page>
      </view>
      <view id="sms0300">
      <page>/sms0300.jspx</page>
      </view>
      <view id="sms0400">
      <page>/sms0400.jspx</page>
      </view>
      <view id="sms0600">
      <page>/Facility Document task List-SMS0600.jspx</page>
      </view>
      <control-flow-rule id="__1">
      <from-activity-id>LogOn</from-activity-id>
      <control-flow-case id="__2">
      <from-outcome>Login</from-outcome>
      <to-activity-id>sms0000-v2</to-activity-id>
      </control-flow-case>
      </control-flow-rule>
      <control-flow-rule id="__6">
      <from-activity-id>sms0000-v2</from-activity-id>
      <control-flow-case id="__7">
      <from-outcome>transfertask</from-outcome>
      <to-activity-id>sms0300</to-activity-id>
      </control-flow-case>
      </control-flow-rule>
      <control-flow-rule id="__8">
      <from-activity-id>sms0300</from-activity-id>
      <control-flow-case id="__9">
      <from-outcome>canceltask</from-outcome>
      <to-activity-id>sms0400</to-activity-id>
      </control-flow-case>
      </control-flow-rule>
      <control-flow-rule id="__3">
      <from-activity-id>sms0400</from-activity-id>
      <control-flow-case id="__4">
      <from-outcome>task</from-outcome>
      <to-activity-id>sms0600</to-activity-id>
      </control-flow-case>
      </control-flow-rule>
      </task-flow-definition>
      </adfc-config>

      and login page xml is
      <?xml version='1.0' encoding='UTF-8'?>
      <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
      xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
      <af:document title="sms0000 LogOn.jspx" id="d1" inlineStyle="background-color:Navy;">
      <af:messages id="m1"/>
      <af:form id="f1">
      <af:panelSplitter orientation="horizontal" splitterPosition="126" positionedFromEnd="true" id="ps1"
      inlineStyle="background-color:Navy;">
      <f:facet name="first">
      <!-- id="af_twocol_right_partial_header_TwosplitsandStretched -->
      <af:decorativeBox theme="dark" id="db2" inlineStyle="background-color:Navy;">
      <f:facet name="center">
      <af:panelStretchLayout id="psl1" topHeight="142px" endWidth="50px" startWidth="50px"
      bottomHeight="50px" inlineStyle="background-color:Navy;">
      <f:facet name="center">
      <af:panelStretchLayout id="psl2" startWidth="99px" bottomHeight="110px"
      endWidth="50px" topHeight="116px">
      <f:facet name="center">
      <af:panelGroupLayout id="pgl2" valign="baseline" halign="center"
      layout="vertical" inlineStyle="height:200px;">
      <af:panelFormLayout id="pfl1"
      inlineStyle="height:186px; border-color:Navy; border-style:ridge; width:315px;">
      <af:commandButton text="Change Password" id="change"
      visible="false"/>
      <af:inputText value="#{bindings.userid.inputValue}"
      label="UserName"
      required="#{bindings.userid.hints.mandatory}"
      columns="15"
      maximumLength="#{bindings.userid.hints.precision}"
      shortDesc="#{bindings.userid.hints.tooltip}"
      id="it1">
      <f:validator binding="#{bindings.userid.validator}"/>
      </af:inputText>
      <af:inputText value="#{bindings.upwd.inputValue}"
      label="Password"
      required="#{bindings.upwd.hints.mandatory}"
      columns="15"
      maximumLength="#{bindings.upwd.hints.precision}"
      shortDesc="#{bindings.upwd.hints.tooltip}"
      id="it2" secret="true">
      <f:validator binding="#{bindings.upwd.validator}"/>
      </af:inputText>
      <af:commandButton actionListener="#{bindings.PerformSdmsLogon.execute}"
      text="Login"
      disabled="#{!bindings.PerformSdmsLogon.enabled}"
      id="cb1" action="Login"/>
      <af:inputText value="#{bindings.usrid.inputValue}"
      label="UserName"
      required="#{bindings.usrid.hints.mandatory}"
      columns="15"
      maximumLength="#{bindings.usrid.hints.precision}"
      shortDesc="#{bindings.usrid.hints.tooltip}"
      id="it5">
      <f:validator binding="#{bindings.usrid.validator}"/>
      </af:inputText>
      <af:inputText value="#{bindings.pwd1.inputValue}"
      label="New Password"
      required="#{bindings.pwd1.hints.mandatory}"
      columns="15"
      maximumLength="#{bindings.pwd1.hints.precision}"
      shortDesc="#{bindings.pwd1.hints.tooltip}"
      id="it3">
      <f:validator binding="#{bindings.pwd1.validator}"/>
      </af:inputText>
      <af:inputText value="#{bindings.newPwd.inputValue}"
      label="Confirm New Password"
      required="#{bindings.newPwd.hints.mandatory}"
      columns="15"
      maximumLength="#{bindings.newPwd.hints.precision}"
      shortDesc="#{bindings.newPwd.hints.tooltip}"
      id="it4">
      <f:validator binding="#{bindings.newPwd.validator}"/>
      </af:inputText>
      <af:commandButton actionListener="#{bindings.performNewPwd.execute}"
      text="Change Password"
      disabled="#{!bindings.performNewPwd.enabled}"
      id="cb2" action="Login"/>
      </af:panelFormLayout>
      </af:panelGroupLayout>
      </f:facet>
      <f:facet name="top">
      <af:panelGroupLayout id="pgl1" valign="baseline" halign="center"
      layout="scroll"
      styleClass="AFAuxiliaryStretchWidth">
      <af:panelLabelAndMessage
      id="plam1"
      inlineStyle="color:Black; font-size:x-large;">
      <af:panelLabelAndMessage
      id="plam2">
      <af:outputFormatted
      id="of1"/>
      </af:panelLabelAndMessage>
      </af:panelLabelAndMessage>
      <af:panelLabelAndMessage
      id="plam5"
      inlineStyle="font-size:large; color:Black;">
      <af:outputFormatted value="#{bindings.Environment.inputValue}"
      id="of2" inlineStyle="font-size:xx-large;"/>
      </af:panelLabelAndMessage>
      <af:outputText id="ot1"
      inlineStyle="font-size:x-large; color:Black;"/>
      <af:panelLabelAndMessage
      id="plam4"
      inlineStyle="color:Black; font-size:large;"/>
      </af:panelGroupLayout>
      </f:facet>
      </af:panelStretchLayout>
      </f:facet>
      <f:facet name="top">
      <af:image source="#{resource['images:sms_sd_logo.jpg']}" id="i1"
      inlineStyle="width:850px;"/>
      </f:facet>
      </af:panelStretchLayout>
      </f:facet>
      </af:decorativeBox>
      </f:facet>
      <f:facet name="second">
      <af:panelGroupLayout layout="scroll" id="pgl3">
      <af:panelLabelAndMessage id="plam3" inlineStyle="font-size:large; color:Black;"/>
      <af:panelLabelAndMessage id="plam6"
      inlineStyle="font-size:large; color:Black;">
      <af:outputFormatted value="#{bindings.LogonMess.inputValue}" id="of3"/>
      </af:panelLabelAndMessage>
      </af:panelGroupLayout>
      </f:facet>
      </af:panelSplitter>
      </af:form>
      </af:document>
      </f:view>
      </jsp:root>

      Edited by: Tshifhiwa on 2012/05/23 6:56 PM