How to access the managed bean taskflow action result?

Hi all
I have a requirement where I have two areas of text (username and password) and a SignIn button. When the user clicks login, my action managed bean will run the view object and get the password for this user name. And that's why it will compare the password presented by the user and the password came from the view object. I a taskflow, in which I have two points of view, we're signIn page and other is the home page, and the result of the action is successful.
The managed bean method here signIn Page for SignIn button.

public String execute() {}
String EnteredPassword = PassEncrypt();
ApplicationModule am = ADFUtils.getApplicationModuleForDataControl ("AppModuleDataControl");
ViewObject myView1 = am.findViewObject("LogindetailsView1");
System.out.println ("Usrname is" + this.) (Username);
myView1.setNamedWhereClauseParam ("v_Username", this.) (Username);
myView1.executeQuery ();
DCBindingContainer links =
(DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
DCIteratorBinding empIter = bindings.findIteratorBinding("LogindetailsView1Iterator");
String DBPassword = empIter.getCurrentRow ().getAttribute("Password").toString ();

System.out.println ("password is" + DBPassword);

{if (EnteredPassword.Equals (dbpassword))}

Here, I need to call the result of success, which will allow the user to get access to the display of the home page in taskflow.

}
else {}
FacesMessage fm =
new FacesMessage (FacesMessage.SEVERITY_ERROR, "Please check your name of user and password",
"Please check your name of user and password");
FacesContext.getCurrentInstance () .addMessage (null, fm);
}
Returns a null value.
}

If this can be done using the method call in taskflow then how could use it in my script?
Please suggest.
Thank you.

you have a rule of navigation between these two pages
If so, simply return the navigation rule name

if(EnteredPassword.equals(DBPassword)) {
return "success";
}

Tags: Java

Similar Questions

  • How to update a managed bean taskflow?

    Hello

    Do any of you know how to refresh a managed bean taskflow? In the affirmative, please let me know.

    Thank you and best regards,
    Kiran kristelle

    Hello

    If refreshing a parent page and the af: region has a link reference in the managed bean (Richregion), then you can call refresh on this instance

    Frank

  • How to access the management of VLANs with a different virtual LAN (Dell powerconnect 6224)

    Hello

    DELL powerconnect 6224 reference.

    I want to access the management of a different VIRTUAL LAN VLAN.

    The management of VLANS is 100 of VLAN. not the routing

    My computer is vlan 60 (192.168.60.10) and I want to connect via ssh or http (192.168.100.1) to manage my switch.

    Thank you for your help on the command line

    The management of VLANS on the 6224 is not routable. So, you will not be able to access VLAN 100 from any other VLAN. However, you can manage the switch from other VLAN IP addresses. So if VLAN 60 has an IP of 192.168.60.1 you can http and ssh to it. And if the VLAN routing is enabled you have access to 192.168.60.1 on the other VLAN.

    See you soon

  • PowerConnect 2724 - how to access the managed mode

    I have a Dell Power Connect 2724 performer in our network. Since that it has been installed, it has failed but I would now add the ability to manage and configure remotely... especially so that I can activate a GigE at our NAS bundle

    When I look at the switch I see MANAGED light is on but in this case how would I connect to manage it?

    I see references to a default address 192.168.2.1 but that IP does not exist in our network domestic

    All addresses of our home network are the DHCP pool given by our router from Virgin Media and are in the range of 192.168.0/24 so what should I do to access the port of the DELL printer management please?

    When you have had access for the first time were all changed settings? You can try to disable any browser addons, cookies, clear cache, etc. Then try again.

  • How to access the Page bean for handling Fields

    Scenario is,

    I have a page Fragment on delimited from the workflow and the page Fragment contained text entry boxes that are not related to any column from the database.  I put my stream of delimited tasks JSPx on page as a static region. Please help me about this how can I access these boxes comments presented on the Page of Data Manipulation in the bean to manage.

    Zaid,

    Please see the thread for details suggested below:

    What can do us for inputText fields in a bean for the data entry of user page jsff?

    You can create a variable of bean and who associate with the inputtext.

    You can bind the text of entry to the beans using the element binding.

    See you soon

    AJ

  • How to access the CLI Mode in cisco sf 302 - 08 p 8-port 10/100 Managed switch

    Hello

    Can someone help me on how to access the CLI mode in cisco sf 302 - 08 p 8-port 10/100 Managed switch. I treid the each method they mentioned in the administration guide. I am not able to enter the command debug mode and comand menu after resetting the default password. Once connected, sound directly to guide me to switch main menu.

    Hello FAL, Mark,.

    Thank you for your participation in the community of support to small businesses. My name is Nico Muselle of Cisco Sofia HWC.

    To access the CLI, you must make sure that the version of the firmware on your switch is at least 1.1.0.73 or preferably higher. Then activate telnet or ssh on the switch and opening of these sessions or a console session you will see that you are in CLI mode. You can return to the console to function menu using the menucommand.

    I hope that answers your questions!

    Best regards

    Best regards

    Nico glacier

    Senior Network Engineer - CCNA - CCNA security

  • To access the definitions of TaskFlow

    Is it possible in the code PhaseListener for discover the Taskflow belong (if any) the view and how to access the definition of the taskflow?

    Hello

    ControllerContext.getInstance () .getCurrentViewPort () .getTaskFlowContext () .getTaskFlowId)

    http://download.Oracle.com/docs/CD/E17904_01/apirefs.1111/e10651/Oracle/ADF/controller/ControllerContext.html

    Frank

  • How to access the features of the APP from SessionBroker/UnitOfWork application?

    How to access the features of the APP from SessionBroker/UnitOfWork application (legacy TopLink APIs)?

    For example, how can I get similar APIs like em.createNativeQuery (managed object query return native) when you use the UnitOfWork API?

    Not JPA-coded on top of UnitOfWork or UnitOfWork on top of JPA?

    SessionBroker can an EntityManager is running?

    How can I execute JPQL via UnitOfWork?

    The answer would be no. We put only support flush multiples for the use of the APP.

    A more detailed inside the code look will show that we have actually created a RepeatabaleWriteUnitOfWork that offers extended support to match the requirements of the Joint Parliamentary Assembly. I have not tried using this subclass directly with our API native and the SessionBroker. I will review the developers to see what we believe, this is the best way forward for SessionBroker users looking to use JPA and our extended features associated with JPA.

    Doug

  • How to access the value of component

    Hi I wan to show/hide a panelBox according to the value in a box (a database in a table field).
    I want to render... or something like that to #{expression that gets the current value of the line of the field chechbox}
    It was simply: BLOCDONNEES. On the GROUND... but here I am naïve how to get

    Thank you kquizak

    Hello

    in forms, it gave you the current data of the selected line. Do the same thing in ADF (always keep in mind that it is a web application and either a thick client)

    -Assuming you're on JDeveloper 10.1.3 (because you do not explicitly), set to the tableSingleSelect component autosubmit = true
    -on the table, define a ValueChange listener that you create in a managed bean. Ideally this managed bean has the pair Set/getter accessor that
    is used by the panelBox
    -define a PartialTrigger on the panelBox to reference the id of the table
    -In the valueChange relaxation, retrieve the data of table cell you want to use for the evaluation

        public void onRowChange(SelectionEvent selectionEvent) {
    
           // keep the default functionality
           FacesContext fctx = FacesContext.getCurrentInstance();
           MethodBinding mb = fctx.getApplication().createMethodBinding("#{bindings.DepartmentsView1.collectionModel.makeCurrent}",new Class[]{SelectionEvent.class});
           mb.invoke(fctx,new Object[]{selectionEvent});   
    
           //add your functionality
    
            JUCtrlValueBindingRef wrappedRowData = (JUCtrlValueBindingRef)((CoreTable)selectionEvent.getComponent()).getSelectedRowData();
            Row rw = wrappedRowData.getRow();
    
            ... = rw.getAttribute("name_of_attribute");
    
            //set the variable to the cell value
            ...
    
        }
    

    -set the managed bean variable that is referenced by the panelBox to true/false

    Frank

    PS. : JDeveloper 11 is almost similar: there is no such thing as the tableSelectOne component and the EL changed ;-)

  • How to access the info in my iCloud account

    How to access the info in my iCloud account?

    You can access much of the iCloud.com on a computer or through specific applications on your mobile device such as contacts, calendars, iCloud Drive, Photos. What exactly you were looking for and what type of device.

  • How to access the bios?

    I am trying to install a new OS, how to access the bios on my HP Pavilian dv8?

    Hello:

    You should be able to access the BIOS by pressing the F10 key as soon as you see the HP welcome screen.

    Paul

  • How to access the BIOS on a Pavilion Elite e9237c with mouse and keyboard wireless?

    I have a desktop computer Pavilion Elite e9237 with a wireless keyboard and mouse. I tried to access the BIOS by pressing F10 at startup with no luck, and I can't access any of the other menus for the start-up eiither. I don't have a PS/2 port on my computer, so I can't get a wired keyboard and mouse. Does anyone know how to access the BIOS with this configuration?

    I bought a USB keyboard and he answered in the same way... No bios access. I then studied why it did not work and discovered that it was the way in which he has been connected to the computer. I had initially plugged into a USB hub when he was not working and I moved it directly into a USB port and it works! I plugged my keyboard wireless directly into the USB port and it works too! Thanks for your help... I wouldn't have thought of it if it wasn't for to recommend you the USB keyboard.

  • How to access the firefox on laptop Office keeping all the features?

    How to access the firefox on laptop Office keeping all tabs and bookmarks?

    Hello

    You may be able to do this in Firefox Sync configuration on both devices. Please see for detailed instructions.

  • Qosmio G30-126 - how to access the bios!

    I have a laptop Qosmio G30-126 and I don't know the key to enter the bios to change real estate for the HARD drive or something... then how to access the bios? What is the key for the bios?

    Hello

    Try pressing the F2 key by turning on the device.
    The Toshiba notebooks supported the ESC and then F1 button
    If these two options are possible

  • Re: How to access the BIOS on Satellite Pro A120

    Can someone tell me how to access the BIOS on my SAT Pro A120?

    Hello

    You must press ESC and then F1 key immediately after the laptop has been powered!

    The laptop seems to be to use the Toshiba BIOS and ESC key should be the right one!

    Good bye

Maybe you are looking for

  • Bronkhorst gas mass flow controller is not powered

    Hello I have connected the mass flow controller of company BRONKHORST using RS232 to USB to my PC connection, but not flashing LEDs on mfc. I don't know if he needs additional power or not? MFC has only RS232 PIN. I have attached the mfc manual and m

  • New HD and in HD windows XP now I can not find my USER auto

    I installed a new HD and format of operating system XP and everything works, but today, I bought a new iphone and tried to find my network and I can't find it on the iphone or another phone! All laptop computers work but I can't find my wireless user

  • No sound in media center

    It happened recently.  I am getting sound in WMP and QuickTime player but not Windows Media Center.  It will not read video files or live tv.  He plays good music.  I tried to configure the speakers, but that did not work. Anyone knows what is the ca

  • VS web cache WCCP service numbers

    Hello I'm working on configuring WCCP for our LAN and I wonder if there are any differences in features between the use of 'ip wccp web cache' or 'ip wccp [number] "? (The plan is to have caching devices and using the WCCP, web traffic would be picke

  • [SOLVED] Impossible to get directions to Internet with IE L3 Switch

    Hey all!  My head hurts trying to understand this. I have a L3 central office switch (Allen Bradley 5400 running IOS) I have several VLANS, which is management (vlan 10) where I can plug in my laptop to access VIRTUAL networks and their devices by us