Manipulate the controls in the different pages and different controlled beans

Greetings. JDeveloper 11.1.2.1. I have some questions on how to access a bean managed in a different JSF or Jsff pages.

I have to jsf pages. hand. JSF that contains dynamic regions. Main.JSF has buttons on it that are managed by a bean view-reach level successful. The buttons are disabled depending on how dynamic region go you. If I move to the form.jsff, for example, the "GO to the FORM" button is disabled.

Main.JSF - home page contains dynamic regions (a holding table.jsff taskflow and an another taskflow taking into form.jsff).
TableTaskFlow - contains table.jsff. Table.JSFF has a CHANGE button which will take you to Form.jsff.
FormTaskFlow - contains Form.jsff. (form.jsff is also in the taskflow taking into table.jsff)

Main.JSF has buttons that are across the scope view. When you press certain keys, dynamic regions are changed, and some buttons becomes disabled.

Table.JSFF has a CHANGE button which will lead you to the Form.jsff. Button change is a request-scope bean

Form.JSFF has a button that takes back you to the Table.jsff. "Back" button is a request-scope bean.

The Main.jsf bean, I am able to disable a button by calling its name of the variable and .setDisabled (false):

ex:
mainGoFormBtn.setDisabled (false);


What I do is press the ASSEMBLY (on the Table.jsff and go to the Form.jsff), but some keys on the main.jsff (outermost page) have become invalid.

However, I'm not sure how to call variables and set them off in an another bean. I tried this code and it worked in Java (I was able to select the variable and set it using the drop down menus and compile it), but when I ran the form, he gave me a pointer null expression error message.

mainManagedBean n = new mainManagedBean();
n.navMainGoForm.setDisabled (true); to do this, I had to put the variable for this button to the public...

Then I tried this:

mainManagedBean n = null;
n.navMainGoForm.setDisabled (true); to do this, I had to put the variable for this button to the public...


I do not know how to reference a button on a page different jsf in a different grain and also a bean that is located in a region that is 'different '.

Thank you
Stuart

Hello

define an input parameter of workflow for the managed bean you carried in sight. Then, on the binding of workflow, you configure this bean as an input parameter. If you save the bean in a range of memory in the workflow or a managed bean that is, then you can access the functionality of bean from anywhere in the called workflow.

example:

1 ParentPageBean (ViewScope): accessible under parentPageBean
2 InputParameter taskflow: parentPageBean--> value: #{pageFlowScope.parentFlowBeanReference}
3. the flow binding task parent pageDef: parentPageBean--> value #{viewScope.parentPageBean}
4. then, in the workflow, you solve #{pageFlowScope.parentFlowBeanReference} to access the bean

To avoid dependencies between the parent and the workflow, you must implement an Interface in the ParentPageBean (e.g. ParentPageBeanInterface) so tha in 4. the type cast is at ParentPageBeanInterface

Another option that works - drank only if the activation/deactivation can be determined by the current view Id is displayed in the area is to define a (property) RegionNavigationListener on af:region

Frank

Tags: Java

Similar Questions

  • Different presentation between the first page and following pages within a section

    Hello

    I met a requirement as follows:

    The report prints some information to order. Each command is a section, including the header and the lines. For a section, there may be several pages (if the number of lines is good enough). It is necessary that, on the first page of each section, it prints all order information in the header of the report and for the next page, it displays only the sequence number in the header of the report.

    It seems necessary different presentation between the first page and the following pages. Has anyone required even like that? Any advice will be useful.

    Thank you
    Clark

    Do you use a for-each@section to get the different sections?

    In this case use "Different first Page" in the "Page layout".

    Published by: amri on July 13, 2010 15:34

  • Different footer on the first page and last page

    Hello
    I try to display continue on the first page and average pages and Total amount on the last page on a multipage PO. I can view the page of different footer for the first page and last page, but the pages means is not a footer. What to do if possible. There are so many threads here, but not one gives exact measurements.


    first page header footer

    Add a Page break
    2nd foot header

    Add the Section break = > Next Page
    <? start@last-page-first:body? > <? end body? >
    last page footer


    Help, please

    Thank you

    Did you miss this?

    http://winrichman.blogspot.com/search/label/different%20page%20header
    http://winrichman.blogspot.com/search/label/element%20in%20header
    http://winrichman.blogspot.com/search/label/diff%20header

  • What on Earth is the lego man ' click me ' on the home page, and why he doesn't something when I click on?

    What on Earth is the lego man ' click me ' on the home page, and why he doesn't something when I click on?

    Click Me logo is part of the promotion of the Humble Mozilla Bundle - clicked once you should be able to control the character with the "WASD" and "IJKL" key.

    Citing the-edmeister https://support.mozilla.org/en-US/questions/1025706

    Who click Me the game is part of the promotion of the Humble Bundle of Mozilla on the default Home Page [topic: Home], which loads from the Mozilla servers in the "Brand Logo" section (DIV) of about: House. A feature that has been used in Firefox 29 [IDE] just before the start of the Olympic Games.

    Also, part of this promotion is addressed in the "excerpt" under the container of the research on the topic: homepage.

    If you want to prevent the section "Brand Logo" (and the "snippet" under the reservoir of research) never to be seen again, you can install this UserStyle and elegant. https://userstyles.org/styles/104673/about-home-hide-snippets-and-hide-brand-logo

  • Duplex printing on letterhead on the wrong Page and backwards!

    Hi all

    I googled this question and it seems that many have the same problem, but none of the solutions seem to work for me!

    I have a LaserJet P2055dn.  In 'tray 3', I have paper with a letterhead on one side.  It is in the status bar with letterhead down and towards the front edge of the printer, which works fine when I print a page.

    However... When I tried to print the pages back to back, it prints pages 1 to the last page, page 2 on the first page, and the two pages are in reverse!

    I realize I could exceed a flip manually the paper in the tray, but I'm evolving as to if I need to single page and pages back to back.

    I made sure the latest driver has been downloaded and installed, and I tried to change the following settings:

    Printing options > advanced > header Alternative Mode 'On '.

    Paper source: plain / header / pre-printed (have tried all)
    Print on both sides: Yes, Flip on

    Is there a way to change the settings so that I don't have to keep exchanging the paper around the status bar?

    See you soon

    Glenn

    With many printers. the 'face' paper must be loaded in the trays in a way for Simplex jobs, but in a different way to work two-sided .

    Some printers offer Alternative letterhead Mode (according to your comments, your printer seems to be one of them), in which case media that are declared with a Type of paper , letterhead can always be loaded in a sense (the necessary way for double-sided work).

    With the work front, the printer then automatically manage switching sides (probably by adding a blank page and print front and back of each front page).

  • R12.2.4 data lost after using the dialog Page and return to the calling page. (Help please!)

    Hi team,

    I'm new to OAF and works on a requirement to add some custom validation when the user clicks a button in a seeded standard page.

    The approach I took was to extend the seeded controller object managed this press event button and put my custom logic in the extended controller and substitute the standard controller through customization.

    The standard rate which was pressing the Complete button A Page, the user was taken to the next and epepinee page (Page B) some operations based on records that have been chosen Page A.

    Part of the custom validation requirement that was if some postings were not met, the user must be a pop-up asking if they really wanted to move forward and if they have selected Yes then continue with the seeded standard flow (transition to page B) and if they have NOT selected then just remain on the current page.

    I have used OADialogPage and to do this, in part, the question , I am running into is that when the user selects one or more records using a check box in a region of several record (table) and click the full page and if the validation fails then a modal page and the user made a selection i.e.either Yes or no modal page and when they return to the calling page (ex. Page A), all data (records) they chose previously is lost (the Page is refreshed). Based on what I see on this forum, I suspect it's because after having click Yes on the modal page and then return to the original page the processRequest fires again and the VO data is queried again and has all the parts on the page are lost. Since I am changing the flow in seedlings pages based on the intervention of the user I'm confused as to how this problem can be solved. that is, prevent the page refreshes or preserve the selections that were made before you navigate to modal page. Any help is really appreciated!

    My Code:

    ' Public Sub processFormRequest (OAPageContext oapagecontext, OAWebBean oawebbean)

    ...

    ...

    If (oapagecontext.getParameter ("completeOps")! = null) {}

    ...

    ...

    If (warnCount > 0) {}

    OAException message = new OAException ("not in order...", OAException.WARNING);

    oapagecontext.putDialogMessage (message);

    OAException message = new OAException ("XYZ Violated rule. Do you want to continue? ", OAException.WARNING);

    DialogPage OADialogPage = new OADialogPage (OAException.WARNING, message, null, "","");

    String Yes = oapagecontext.getMessage ("AK", "FWK_TBX_T_YES", null);

    String number = oapagecontext.getMessage ("AK", "FWK_TBX_T_NO", null);

    dialogPage.setOkButtonItemName ("ConYesButton");

    dialogPage.setNoButtonItemName ("ConNoButton");

    dialogPage.setOkButtonToPost (true);

    dialogPage.setNoButtonToPost (true);

    dialogPage.setPostToCallingPage (true);

    dialogPage.setOkButtonLabel (yes);

    dialogPage.setNoButtonLabel (no);

    oapagecontext.redirectToDialogPage (dialogPage);

    }

    If (oapagecontext.getParameter ("ConYesButton")! = null) {}

    Write Yes button Action code

    oapagecontext.putParameter ("completeOps", "Continue");

    }

    If (oapagecontext.getParameter ("ConNoButton")! = null) {}

    Write the code of the Action for the No button

    Dim errormsg = ' rule Violations have occurred. "

    throw new OAException (errormsg);

    }

    super.processFormRequest (oapagecontext, oawebbean);

    }

    I managed to work around this problem by adding a simple control in my controller processRequest method extended to avoid the call to super.processRequest incase lhen control returns to the page once the user has made a selection on the Page of the dialog box

    If ((oapagecontext. (GetParameter ("ConYesButton") == null) & (oapagecontext.getParameter ("ConNoButton") == null)) {}

    super.processRequest (oapagecontext, oawebbean);


    }


    Thank you!

  • How can I change the layout or the size of the photos in my Gallery?  I have started a project and downloaded some pictures of her.  Now when I click on projects opens the gallery page and I do not see the pictures because the vertical photographs are dis

    I have started a project and downloaded some pictures of her.  Now when I click on projects opens the gallery page and I do not see the images because the vertical photographs are displayed on the monitor.  I tried all layouts different portfolio and it does not change the way my photos appear in the gallery.  They are too big!  Here is my example.  Astriya photography

    Thanks for the help!

    Place the cursor over an image and a pencil appears on the side. Click on it and you will get the options including one to change the width and alignment. This seems to be the only option currently.

  • I clicked on the source page and remove nodes with the web developer and removal became permanent. EBay does not load pictures. How to fix?

    The problem is on my desktop and my laptop. I got a little happy click on my desktop and click the Web Developer. I tried to remove an ad really annoying flash on the side of the screen. I think I entered in the source page and remove the node. I really don't know what happened, but stopped loading for ebay pictures and everything is a list written on the side of the page. I deleted the cache and cookies. I have reset mozilla. I uninstalled and reinstalled mozilla. Laptop is not immediately affected, but now having the same problem.

    It is a very strange problem.

    Any changes made with the web developer tool will save and should be cleared when the page is reloaded.

    Try disabling graphics hardware acceleration. As this feature has been added to Firefox, it has gradually improved, but there are still some problems.

    You will have to perhaps restart Firefox for it to take effect, so save any work first (e.g. you compose mail, documents online that you are editing, etc.).

    Then perform the following steps:

    • Click on the orange top left Firefox button, then select the 'Options' button, or, if there is no Firefox button at the top, go to tools > Options.
    • In the Firefox options window, click the Advanced tab, and then select 'General '.
    • You will find in the list of parameters, the checkbox use hardware acceleration when available . Clear this check box.
    • Now restart Firefox and see if the problems persist.

    In addition, please check the updates for your graphics driver by following the steps in the following knowledge base articles:

    This solve your problems? The report please come back shortly.

  • Update of Firefox, and now all of the web pages and icons are inflated. How do I put back it as it was?

    Update of Firefox, and now all of the web pages and icons are inflated. How do I put back it as it was?

    Hello

    Firefox on Windows is now after display, scaling options that can make the biggest text on screens at high resolution.
    You can adjust the resolution of your screen.
    To change it follow these steps:

    • Type of topic: config in the Firefox address bar and hit the Enter key.
    • If the warning that this might void your warranty , click I'll be careful, I promised.
    • Search for layout.css.devPixelsPerPx

    • Double-click layout.css.devPixelsPerPx to edit its value. The default value is - 1.0 in Firefox 22 and above. Change it to 1.0 to run as in previous versions of Firefox.

    If necessary, further adjust the value of 0.1 or 0.05. Values between 1.0 and around 0.5 to reduce the size of the elements. Use a value greater than 1.0 to increase the size. For example, a value of 1.25 will increase the font size of the 125% to account for the default DPI setting in Windows 8. Check the value that you enter. Definition of a value that is too small will take everything away and too high will explode things.

    If the web pages should always be adjusted so you can watch the extension Default FullZoom Level or NoSquint .

    To adjust the font size for the user interface, you can use the extension of theme font & size changer .

    This solve your problems? Please report to us!

    Thank you.

  • Printer Photosmart 5520 problem:, I have access to the secure page and cannot open a session

    My printer does not print in black. I followed all the instructions to fix it. I can't go down loard that assistance because it is a Vista. I get to the secure page and he asked my name and my password. I am the administrator, but it does not accept my names or passwords and blocking me. What name and password it seeks?

    Hi @arts4pat,

    Welcome to the Forums of HP Support!

    I see that you get a secure page and that you are unable to print black on your HP Photosmart 5520 e-all-in-one printer. I'd be happy to help you with this.

    I like that you get the login screen for the Built-in Web server for the printer. Is this correct? This seems to indicate that someone has put a username and password on the printer, for security reasons. If you don't know what are the connection information, the only way to remove this is to do a factory reset on the device. I can send you this information in a private message. In the forum next to your handle name simply click on the envelope to see.

    That being said, I would like to start here. Please, try the steps in this guide, the printer prints blank Page or fact not printing black or color ink for HP Photosmart 5520 and Deskjet Ink Advantage 5520 series e-all-in-one printer.

    NOTE: This problem may be caused by problems with the ink cartridge print head or with the printer ink system.

    If you have completed all the above steps and your product still has a problem, the printer service.

    Contact HP for service in all countries except Asia-Pacific.
    First, check your product warranty to check your warranty printer status and then go to contact HP support to find an authorized dealer or to schedule a repair.
    Cost of repair out-of-warranty printers may apply.

    What you can do, is to use the following link to create yourself a file number, then call and it can help to expedite the appeal process:
    Step 1. Open the link: www.hp.com/contacthp/
    Step 2. Enter the product number or select Auto detection
    Step 3. Scroll up to "still need help? Fill out the form to choose your
    contact options»
    Step 4. Scroll down and click on: contact HP options - click Get phone
    number
    File number and phone number are displayed.

    I hope this helps. Good luck!

  • When I turn on my computer it tells me that I need to activate windows. I click on 'YES' it takes me to the activation page and says that Windows is already activated.

    Windows XP Activation loop.

    When I turn on my computer it tells me that I need to activate windows. I click on 'YES' it takes me to the activation page and says that Windows is already activated. All I can do is, click 'OK' and he takes me into a log on screen with my name on it and goes through the same process, as described at the beginning of this statement. I'm in a loop. The only way out is to wipe my hard drive and reload windows new who, within 30 days, it will do no doubt once again. How to do this?
    For 3 years I rebooted my computer. That's why I reloaded it in the first place. I sent this version of Windows XP by Microsoft and have recharged the system at least 4 times in the past 10 or 11 years.

    Ken

    Hello

    1. don't you make changes to the computer until the problem occurred?

    I suggest you to see link below and check if it helps.

    You are prompted to activate Windows XP or Windows Server 2003 every time that you start the computer:

    http://support.Microsoft.com/kb/312295

    Hope this information is useful.

  • Protection of the system. Responding file or directory is not a reparse point: (0 X 80071126) if please close the property page and try again.

    Three weeks ago, I got a problem of compatibility with nero premium 7 that I installed it, so I had to remove my laptop with great difficulty! I tried restoring the system by removing, and it failed. Whenever I open the system restore, I get a message... "There was an unexpected error in the property page. "The file or directory is not a reparse point: (0 X 80071126) if please close the property page and try again. For the protection of the system disks can not be re-analyzed for the same reason.
    What is the problem and how can I solve it? System repair not even managed to solve!

    Hello
     
    We will first check if the system restore services are set to automatic and started. To do this, follow these steps.
    1. Click Start, type services.msc and press to enter.
    2. from the list of services, double-click Windows backup and Volume shadow copy services.
    3. in the Properties window, select the automatic startup type and click Start.
    4. apply the changes.
    5. try to open the system restore and check the result.
     
    If the problem continues, check if the system of protection is disabled. To do this, follow these steps.
    1. Click Start, right-click computer and click Properties.
    2. click on Protection of the system under tasks.
    3. on the System Protection tab, be sure to place a check mark under all available disks to enable system restore or to market.
    4. apply the settings and check the result.
     
    For more information, see this link: http://windows.microsoft.com/en-us/windows-vista/System-Restore-frequently-asked-questions
     
    I hope this helps.

    Kind regards
    Syed
    Answers from Microsoft supports the engineer.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Win 10 update placed on the updates page, and does not update us '.

    We have a HP while a win 7 64-bit home premium.  We do not want to win 10 and hid all the updates that relate to what we know.  Now, to win 10 placed itself on the update page and wants to be installed.  It will not install to us of new updates of win 7.  What can we do?  Don't really like how microsoft has tried to impose it on everyone.  Please give us an answer.  Thanks Mammy37

    I had the same problem and used http://blog.ultimateoutsider.com/2015/08/using-gwx-stopper-to-permanently-remove.html

    I tried to hide the upgrade, but it came back in return. Finally forced to use the above with 'success' on the computers that I don't want to upgrade to Windows 10.

  • I live in Colombia and I would buy the full suite in Colombian pesos creative, I try in the Web page and he makes me in USD. How can I buy it?

    I live in Colombia and I would buy the full suite in Colombian pesos creative, I try in the Web page and he makes me in USD. How can I buy it?

    They may also help:

    FAQ: Is creative cloud available in my country?

    FAQ: Why my purchase showing the wrong currency?

    FAQ: How can I view Adobe web pages in another language?

    FAQ: How can I change the country associated with my Adobe ID?

  • I can't download the trial for inDesign (for Mac), Safari cannot open what I think is the redirection page and says he does not know how to open the app

    Safari can't open what I think is the redirection page and says he does not know how to open the app.


    It gives me the following information:

    OS X does not know how to open the addresses starting with aam

    Click on the link below and download Creative Cloud Installer file and use them to install the creative Cloud Desktop application.

    https://ccmdls.Adobe.com/AdobeProducts/KCCC/1/OSX10/CreativeCloudInstaller.dmg

  • I'm not able to download Adobe Edge reflow to my Windows 10. It is said there download on the web page, and the seams do something on the cloud adobe creative (but that's all). I don't see that she has actually download the apps tab and tried remained

    I'm not able to download Adobe Edge reflow to my Windows 10. It is said there download on the web page, and the seams do something on the cloud adobe creative (but that's all). I don't see that there actually download the apps tab and tried to restart my computer, but nothing works.

    Has managed to understand me. Right-click on the icon "Adobe Creative Cloud" and click "Properties" and click on the tab "compatibility". The decline of the antipodes 'Compatibility Mode' select 'Windows 8 ', click on 'Apply' then 'OK'. You should be able to go back and re - download the Adobe Edge reflow, by going to tools and software Responsive Web design | Download Adobe Edge reflow CC (Preview).

Maybe you are looking for

  • Why can't Photos read my sandisk sd card, but no viewfinder?

    I have a lot of cameras, and when I plug in my sandisk sd cards in my computer, I can always browse clips in the finder, except when I record the images of my panasonic ag-ac90 which shows nothing in the DCIM folder. Why is this?  I can view in newsp

  • My iPhone 6 s write always full memory

    I have iPhone 6s and Hi write memory is full. I probe some clearing, memory... Soft, restart...  Nothing help. What s wrong?

  • How to run the DAQmxGetTaskChannels command

    I'm reading the attributes of task of MAX by using various DAQmx with VB6 controls.  I found that a simple task of load (DAQmxLoadTask) generates a valid taskhandle of a known in MAX taskname that can be used to get the measurement data using the ana

  • CRIO and WSN

    Nice day This shows that I can use WSN with CRIO. I installed the software of RIO OR-RIO 3.3.0 and I WSN 1.0.2. When I discovered my crio in remote systems in Max, the software displays 3.3.0 installed, but if I develop it, there is nothing of WSN, I

  • Can I install BIOS G500s G500s Touch?

    Can I install BIOS G500s G500s Touch? It will cause any problem? I want to update the BIOS, because right now, if I want to press F1 I have to press FN and F1 which sucks for games and normal usage. I noticed that G500s model received an update that