Storage and access to the values of the pageFlowScope at the bean

Using JDeveloper 11.1.1.4.0

Hi again,
I read somewhere that store parameter values in a bean is a good practice, now I wonder. I did this and 'declared' this bean to my workflow bounded as pageFlowScope. Now, I need to access the values in another bean "method (scope of application) and cannot get them." If I would have just used EL #{pageFlowScope.variable1} I know how access (as in my code below), but since they are in a bean I can't find the right way to retrieve the values. Is it possible and how?
    <managed-bean id="__3">
      <managed-bean-name id="__2">ViewAmtsParameters</managed-bean-name>
      <managed-bean-class>tax.viewamtsowedtreetbl.view.ViewAmtsParameters</managed-bean-class>
      <managed-bean-scope id="__4">pageFlow</managed-bean-scope>
    </managed-bean>

    // Get access to the adf faces context for page flow scope
    AdfFacesContext adfctx = null;
    adfctx = AdfFacesContext.getCurrentInstance();
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding =
        bindings.getOperationBinding("ExecuteWithParams");
    // Set the parameters for the query
    operationBinding.getParamsMap().put("cid",
                                        adfctx.getPageFlowScope().get("ViewAmtsParameters.clientIdParam"));
    operationBinding.getParamsMap().put("can",
                                        adfctx.getPageFlowScope().get("ViewAmtsParameters.canParam"));
    operationBinding.getParamsMap().put("asofdate", newValue);
    System.out.printf("first execute parms  %s   %s      %s \n",
                      operationBinding.getParamsMap().get("cid"),  -- returned null
                      operationBinding.getParamsMap().get("can"), -- returned null
                      operationBinding.getParamsMap().get("asofdate"));
I also tried to use accessors of the bean of the pageFlowScope, which gives me an error indicating that the access is forbidden.

Thanks again in advance.
Troy

"" "You're almost there. '" You cannot directly access the bean inside bean attributes. The pageFlowScope card allows you to access the bean itself. Once you have the bean, you can use their getter to get the attributes.
Or you use the EL (as you use it on the page) and evaluate it for the value:


public static Object resolveExpression(String expression)
    {
        try
        {
            FacesContext facesContext = FacesContext.getCurrentInstance();
            Application app = facesContext.getApplication();
            ExpressionFactory elFactory = app.getExpressionFactory();
            ELContext elContext = facesContext.getELContext();
            ValueExpression valueExp =
                elFactory.createValueExpression(elContext, expression, Object.class);
            return valueExp.getValue(elContext);
        }
        catch (Exception e)
        {
            e.printStackTrace();
        }
        return null;
    }

public void YOURMETHOD()
{
    AdfFacesContext adfctx = null;
    adfctx = AdfFacesContext.getCurrentInstance();

    Map pageParams = adfctx.getPageFlowScope();
    // assuming the class of your bean class is ViewAmtsParametersBean and the name you've given the bean is "ViewAmtsParameters"
    ViewAmtsParametersBean parambean = (ViewAmtsParametersBean) pageParams .get("ViewAmtsParameters");

    //an other way to access the bean attributes is to use EL
    String strIdParam = (String) resolveExpression("#{pageFlowScope.ViewAmtsParameters.clientIdParam}");

    BindingContainer bindings = getBindings();
    OperationBinding operationBinding =
        bindings.getOperationBinding("ExecuteWithParams");

    // Set the parameter for the query
    operationBinding.getParamsMap().put("cid", parambean.getClientIdParam());
    operationBinding.getParamsMap().put("can", parambean.getCanParam());

    operationBinding.getParamsMap().put("asofdate", newValue);
    System.out.printf("first execute parms  %s   %s      %s \n",
                      operationBinding.getParamsMap().get("cid"),
                      operationBinding.getParamsMap().get("can"),
                      operationBinding.getParamsMap().get("asofdate"));
 }

Timo

Tags: Java

Similar Questions

  • manage all folios and access all the Analytics

    Hello and happy new year

    We have an urgent question about dps:

    We create an adobe id different for each application we build.

    by downloading folios associated with a certain app to the folio Builder we need to connect with this specific adobe ID?

    or can we use 1 adobe ID to manage all folios for all applications.

    which is the best way to go, in the long term to manage all folios and access all the Analytics.

    Please let us know as soon as possible.

    Ediz

    one account per app. Yes, you have to identify you with this Adobe ID to create content for this App. unless you intend to create application kiosk (one that shows all folios of all content), this is the right approach.

  • Political dynamic VPN access and access to the administration

    Hi all

    I'm testing a scenerio with an ASA 5520 so he could authenticate VPN users against and an environment Active Directory more access to management as well. I created a dynamic access on the ASA policy indicating that, if you are a member of the Active Directory 'Managment' group continue. I have chagned the DefaultAccessPolicy to "Finish." With it, users could not connect VPN because they are not a member of this group, but access to manage the ASA is allowed due to this policy.

    Is there a way through the use of dynamic access policies I can afford access to the administration (SSH, AMPS, etc.) by matching to membership in a group and will allow normal users to VPN in successfully, but not give them access to the management of the ASA?

    I just try this but it seems that I should be able to swing that?

    Thaks in advance.

    Hello

    You can try to apply the DAP and configure the filter ACL network. allowing only the protocols you want to that they can access.

    Kind regards

    Anisha

    P.S.: Please mark this thread as answered if you feel that your query is resolved. Note the useful messages.

  • How can I change the login email address and access to the features of Windows 8?

    Original title: I accidentally entered a wrong email across to the top of the upgrade to windows 8 and now I can't access all the features of windows 8.

    When you install the upgrade for windows 8 he asked for my email address.  I misspelled my domain name, which causes it have instructions or messages will in the vast desert of never never land.  I need to check my email to make the apps work, but given that the email is valid I can't do that.  I need to know how to change the login email address in windows 8 so that I can go ahead and verify my account.

    Hi I also had this problem but I have used the local account and was able to access all applications with my correct email. I hope this helps!

  • Needs of storage and database on the operations of vCenter 5.0.2

    Hello

    After crossing the requirements to get the latest version of vCenter Operations Manager 5.0.2 I noticed that the system can be deployed on Windows and that it is has supported for MS SQL databases. This brings me several questions:

    1. is it a preferred means of deployment vCOPs, OS vs virtual appliance?

    2. If I decide to go for a Windows installation can I installed everything on a virtual computer, so I don't have to use two: Analytics and UI?

    3. pressed for MS SQL, but there is still a requirement for a FSDB, so an external database support brings just more storage needs?

    4. is the external database needed if you use the version of VAPP vCOPs?

    Now on the sizing of the FSDB requirement for 1 million parameters is 1.5 to, what is the minimum of FSDB on an environment less size of 250 VMS?, the FSDB can span multiple vmdk files to facilitate commissioning of storage?

    I appreaciate all the comments of these issues.

    Thank you

    Juan.

    Juan,

    I highly recommend the vApp and not the version of Windows Installer.  First of all, the standalone install of vC Ops does not analyze the ability which is included in the paralytic.  Second, your environment (250 mV) is well served with the deployment of VAPP vC Ops in the small configuration (which supports up to 1500 virtual machines).

    There is no reason for you to deploy the standalone version, will give you features and the UI designed specifically for vSphere.  You would give the value you paid for the Enterprise edition.

  • Securing of Captivate movies and access via the Web

    Hi all

    My apologies if this is a little off topic, but I just thought that someone out there has fallen on this problem and come upwards with a solution. All the tips / pointers thank you gratefully received!

    I would create a bunch of Captivate movies that will be accessible on the web. Different customers/clients need to access different movies. What I would really like to be able to do is post these movies on my site OR a site offering secure accommodation.

    The customer would be given a URL - when you can access the URL, they are going to a login page (and provide a password), and then be presented with a start page / menu where they can access movies that relate to the software they use (customers all use different versions of the software as well as movies are subtly different for each).

    A grave on this type of hosting solution or has any ideas for this scenario?

    Thank you very much
    Craig

    Craig,
    I think you have the wrong end of the stick about htaccess
    I made a small example for you here protected folder
    username and password = larry

    a good host is http://ukwebsolutionsdirect.co.uk/hosting.php
    I use them for all my domains/site and they are cheap

    Paul

  • Coldfusin MX 6.1 balance the load and access to the shared folder

    I hope someone can help me with this problem.
    I have 2 CF servers behind a hardware load balancer and the content is stored on a NAS device via a UNC share. Colfusion seems to access the files OK but every now and then, I get an error 404 who not disappear until I restart the coldfusion services.

    I have already disabled the caching and the problem persists.

    I'm having the same issue (among others) with CF7 balancing using Windows NLB. Apparently this is a known... bug there is a solution here, but it is not completely satisfactory if you get this on a lot of pages.

    http://www.TalkingTree.com/blog/index.cfm/2006/2/20/improper-caching-of-file-not-found

  • How set permissions to a user "limited" for reading hotmail and access to the printer?

    I created a user 'limited' for me. But now, I have two problems:

    1. in the limited user account, I can't open my hotmail email.

    2. in the limited user account, I don't have access to print on my printer.

    How to set permissions for various situations for my user account limit?

    See these

    http://www.ehow.com/how_6906849_block-account-only-Windows-XP.html

    http://www.ehow.com/how_7320098_change-setting-limited-XP-account.html

    useful?

  • AEGP_ObjectType_VECTOR and access to the path of control points

    if (type == AEGP_ObjectType_VECTOR( )


    There is no much to find associated with this object type. I understand that it is a shape layer, but I still found how can get the path on this layer.

    A cable would be greatly appreciated.

    Research.

    Realized that there is no API specialized for VECTOR (shape layer)

    It's just a tree of dynamic flow.

    And, strangely, the shape layer is implemented with a mask...

  • Content of the online help cannot be displayed. Check you can launch your web browser and access to the internet.

    I get this message even with all the Adobe apps I downloaded creative cloud.

    Please visit these links for assistance:

    Resolve connectivity issues

    Log, activation, or connection errors. CS5.5 and later, Acrobat DC

  • Using classes and access to the timeline...

    Hello

    I'm trying to externalize a class and have problems to make my class to work. In the flash timeline, I have this function call:

    CreateText(lessonTitle, "Headline_1", textWidth, textX, textY - 5, 0xFCAF17, 54, 1, true, 0);
    

    Which calls an external class:

    package {
    
        import flash.display.*;
        import flash.text.*;
    
        public class CreateTextBlock extends MovieClip 
        {
    
            public function CreateTextBlock()
            {
                      // init           
            }
    
            public function CreateText(textString:String, 
                                                      textName:String, 
                                                      textWidth:Number, 
                                                      textX:Number, 
                                                      textY:Number, 
                                                      textColor:int, 
                                                      textSize:int, 
                                                      fontStyle:int, 
                                                      textWordWrap:Boolean, 
                                                      myLeading:int):void              
            {            
                   trace(textString);
                   trace(textName);
                   trace(textWidth);
                   trace(textX);
                   trace(textY);
                   trace(textColor);
                   trace(textSize);
                   trace(fontStyle);
                   trace(textWordWrap);
                   trace(myLeading);
            }        
         }
    }
    

    My function call does not recognize CreateText(), but acknowledges CreateTextBlock, however, if my function CreateText and rename it ChangeTextBlock, I still get the error message:

    
    1137: Incorrect number of arguments.  Expected no more than 1.
    
    

    Can someone help me to refactor this to a working class?, or highlight my default?, if all goes well, it is obvious platently.

    Thank you very much

    Chipleh

    You are welcome

  • do I need Windows PowerShell integrated scripting tool for home computer and access to the internet, powershell

    do I need Windows PowerShell integrated scripting tool for computer and internet access

    No you didn't he need for home computer and internet access

  • Disable access to the storage capability of creative cloud for teams?

    Is it possible to disable access to Creative Cloud Files when you use the Creative Cloud software for teams/Volume Licensing customers? We are considering moving to Cloud Creative subscriptsions instead of traditional licensing and the ability to disable this feature would be the best way to comply with the security requirements of our company.

    Thank you.

    BrickyB, that's what says creative cloud FAQ,

    My organization wants to block access to certain services, such as storage and access to the community features available through creative cloud. Is this possible?

    Yes, your administrators can block users access to online services.  Online services and their URLs are listed here.

    As an administrator, you will also be able to deploy independent creative cloud desktop applications of cloud services using the Packager creative cloud. Creative cloud packer is available through creative cloud for teams.

    Check this box for more details.

    http://www.Adobe.com/products/creativecloud/FAQ.html

  • Access to the eccentric camera and GPS problem

    I love this phone and use it for a few weeks now. I know that the update just worked for T-mobile, and the biggest problem he treats is the camera. My question is if anyone knows if this update fixes other issues?

    One of them is how he takes the X bike to pin point its location. I know that most of the Android phones are simply not very fast when it comes to this, but this phone takes more time than many other phones I've used (most recently a HTC One).

    Another problem is, like many of us, I take lots of photos, and access to the camera can be tricky. I like to review my photos before I quit the application. Later if I want to go in the camera app, it brings me to the last image I tested, instead of the camera. Very well, but when I swipe to the left to reach the camera, he leaves the app. Also the camera icon on the bar above the image is missing, so I can't easily access the camera.

    Is the application gallary your default program for image manipulation? This happened to me when I made the default handler quickpic.

  • Z10 blackBerry how can I copy photos and videos of the Z10 for my PC can I?

    I have a temporary Z10 I'm learing to use.  My old curve supplied with desktop software that allowed me to connect my BB Curve to my PC via a USB cable and I want to sync my photos and videos.  I took a few photos and videos with this Z10 camera temporarily but I would like to be able to copy on my PC until I need to restore the device.  How do I do that?  My existing BlackBerry Desktop software does not seem to recognize the Z10 if I plug.

    If their on the memory card, you should be able to define the settings > storage and access > scroll down to the bottom of this screen and the value of USB mass storage on.

    Now connect the USB cable and media card should show up as a removable drive on your PC.

Maybe you are looking for