Sylvie ADFBC on Bean managed access

Dear all,

I just started to learn the ADF BC so please bear with me.

Use case:
I have a drop down menu that contains all the Tables in my database. On the select statement on the table
and click on view, I would like to display all the data in the table. I created display objects
for each table, but my problem is how can I dynamically set the source of data in my table to dynamic display objects
public class MyBean{
     //holds the tablename
     private String tableName;
     //action listener for the View button
     public void handleView(){
          //From the table name get the associated view object ????                     -- Step 1
          //Set the table data source to the new view object ??? -- Step 2
          // PPR refresh a jsf component  
          AdfFacesContext.getCurrentInstance().addPartialTarget(getTable()); --Step 3  
     }
}
It comes to my pseuducode, I don't know if that's right. I am fighting on step 1 and step 2.
Sample ADF BC I saw on the net are simple and does not correspond to my use case.

Any tips? Thank you

Hello

Check out this nice article of Jobinesh.

http://jobinesh.blogspot.com/2010/06/model-driven-approach-for-building.html

Arun-

Tags: Java

Similar Questions

  • Custom attributes of access in a bean managed to webcenter 12 c

    WebCenter Portal: Webcenter 12 c

    How can I access custom attributes in a bean managed to webcenter 12 c.. ?

    I found the following blogpost to 11.1.1.8: http://blog.vassit.co.uk/knowledge/access-global-custom-attributes

    It is said to add libraries:

    • Model of WebCenter spaces
    • WebCenter spaces customer

    Cannot find these libraries in snapshot .ee 12 c.

    Update:

    The class I used in this blog post only works in 11g and it is an internal class that should be avoided to use as it may change in future versions.

    It is an example of change.

    It is offered in the Public Oracle Fusion Middleware Java QAnywhere for Oracle WebCenter Portal class WCApplicationContext that will allow you to access using Java through many steps.

    WCApplicationContext wcAppCtx = WCApplicationContext.getCurrentInstance();
    WCApplication wcApp = wcAppCtx.getApplication();
    WebCenterType wcMeta = wcApp.getApplicationConfig();
    CustomAttributes customAttr = wcMeta.getCustomAttributes();
    ...
    

    This course may not be available in the libraries provided by JDeveloper 12.2.1 and you include library webcenter-core - api .jar manually.

    I don't know why these classes are in the library and not offered public API catalog of libraries of the ADF in the JDeveloper 12.2.1

    Anyway, as suggested by the use of Vinay and his colleagues the EL Expression as he goes to work.

    Note: I'll blog in my personal blog

    Hope this information helps everybody.

    Kind regards.

  • Web, portal center-list of buddies in bean managed

    Hi all

    I'm working on the webcenter Portal project and I need to get the list of buddies from the playlists of the connection in the bean managed so that I can make a business logic on them.

    Any help appreciated.

    Thanks in advance.

    Kind regards

    Faye

    I followed the procedure to retrieve the friends/connections from a user in below managed bean. For the below work to drag and drop the data connections of people webcenter getConnetions() control on page jspx API and the corresponding bean we can access by getting links, as shown below:

    BindingContainer bc =

    BindingContext.getCurrent () .getCurrentBindingsEntry ();

    OperationBinding links =.

    bc.getOperationBinding ("getConnections");

    {if(Bindings!=null)}

    System.out.println ("Got the link to connectionLists");

    try {}

    Map params = bindings.getParamsMap ();

    params.put ("userid", loginuserid);

    params.put ("connectionListName", "");

    params.put ("filterPattern", "");

    params.put ("sortBy", "");

    params.put ("startIndex", 0);

    params.put ("fetchSize", 10);

    ArrayList buddylist = (ArrayList) bindings.execute ();

    System.out.println ("size Executed connectionLists DC," + buddylist.size () + "-> list of buddies from dB" + buddylist);

    }

    Thank you

    Kind regards

    Faye.

  • Error by calling the method on Bean managed from an other managed Bean

    Hello

    (Jdev 11.1.1.2.0)

    Help please:

    I have a managed bean (page scope of stream) that is used by my homepage for navigation of flow dynamic region:

    * / public class RegionNavigationBean implements Serializable {* +}
    private String dynamicTaskFlowId = "/ WEB-INF/home-task-flow-definition.xml#home-task-flow-definition"; +

    * public RegionNavigationBean() {* +}
    *}*

    * public TaskFlowId getDynamicTaskFlowId() {* +}
    Return TaskFlowId.parse (dynamicTaskFlowId); +
    *}*

    * public void setDynamicTaskFlowId (String taskFlowId) {* +}
    this.dynamicTaskFlowId = taskFlowId; +
    *}*
    *}*

    taskFlowId is set to the homepage def to + * ${pageFlowScope.regionNavigationBean.dynamicTaskFlowId} * +.

    In a table (i.e. display on my model layer object) DB I store a menu ID and a corresponding task_flow_id.

    Then I created a class of earphone action (RegionNavigationListener - scope of stream page) which I link to my menu on my main page items (property listener action on the item of menu = + * #{pageFlowScope.regionNavigationAction.processAction} * +)

    In this action (processAction method) listening port, I retrieve rowset in the VO menu and find the record that matches my menu ID that triggered the action event, recovering the task_flow_id that needs to be accessed.

    I then try to retrieve the instance of the RegionNavigationBean with the following statement: RegionNavigationBean regNav = (RegionNavigationBean) JSFUtils.getManagedBeanValue ("regionNavigationBean"); +.
    It seems to work fine, but as soon as I try to use it I get a NullPointerException error, for example:
    regNav.setDynamicTaskFlowId (menusRow.gettaskFlowId ()); +
    or:
    System.out.println ("%" + regNav.toString ()); +

    This is quite new to me... any help would be appreciated!

    Thank you
    Mario

    Hi Mario,.

    I tried following codes to get a bean managed in a region, it is very good for me.
    ManagedBean is the name of the class.

    FacesContext ctx = FacesContext.getCurrentInstance ();
    Application app = ctx.getApplication ();
    ManagedBean MB = (ManagedBean) app.evaluateExpressionGet (ctx, "#{pageFlowScope.managedBeanName}", ManagedBean.class);

    Todd

  • Groovy expression session bean managed property

    Hi all
    I can't establish the expression of right groovy for obtaining a value of session...
    <managed-bean>
        <managed-bean-name>user</managed-bean-name>
        <managed-bean-class>ro.sinoptix.view.managed.User</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
      </managed-bean>
    in my VO...
     <Variable
        Name="pid"
        Kind="where"
        Type="java.lang.String">
        <TransientExpression>
          <![CDATA[sessionScope.user.id]]>
        </TransientExpression>
      </Variable>
    and the error is... Variable sessionScope unrecognized... session does not work

    Thank you
    PS: where can I find something on groovy in adf?

    You can't do that. Managed bean reside only on the side of ViewController. You do not have access to them in the part of the model.
    Expose a method in your module to request to put value on the client side to side Server and y. Alternatively, you can pass the value as a parameter to a method in the t that can then work with it.

    Timo

  • How the hell Manager access if I don't have the password

    How can I disable Manager access if I don't know the password

    It's a Microsoft Forum, when it comes to passwords we can provide only the official Microsoft solutions:

    "Cannot remove a forgotten Internet Explorer Ratings password"
      <>http://support.Microsoft.com/kb/155609 >

    HTH,
    JW

  • Management access to an ASA5505 via connection NEM

    Hello

    I work with a configuration ASA5505 NEM.

    Everything works well except the access to content the device across the tunnel. From the ASA local network I can access the device via HTTPS, Telnet and SSH, but it does not work in France via the tunnel. I am running version 7.2 (4).

    No idea what I am doing wrong?

    Thank you

    There is no attachment in your post...

    You can check out asa have access to the administration:

    See the race | Management Inc.

    If no output from the top Configure asa with stated below, then try to access to asa by tunnel.

    management-access inside

    PLS note any useful message

    Rgds

    Jorge

  • How to display the HTML page generated from a bean managed OUCSSPortalADFLibrary?

    ? Hello

    I have an af:commandButton in my jsff. By clicking on the button will perform an action of the managed bean located in the OUCSSPortalADFLibrary. The action of the method generates the HTML string of the new page to display in the same window. I tried what follows but failed to make it work.

    In my jsff:

    < af:commandButton action = "#{pageFlowScope.MyManagedBean.generateHtml}" id = "cb1"/ > "

    < af:outputText value = "#{pageFlowScope. . "{MyManagedBean.html}" id = "ot1" escape = "false" / >

    In my bean managed:

    SerializableAttribute public class MyManagedBean extends SSBaseManagedBean {}

    private String html;

    public void generatehtml() {}

    generate the html string

                   html = "<! "" DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional / / as"------"http://www.w3.org/TR/html4/loose.dtd------" > < html >... < / html > "; " "

    }

    public String getHtml() {}

    Returns the html;

    }

    }

    Kindly help/tips how to operate or any other way.

    Thank you in advance.

    Hi Lena,.

    ADF managed beans, you can use ExtendedRenderKitService to call the javascript. Something like window.location.href or similar can be used to replace the URL data: text / html mentioned in response format.

    Kind regards

    SAI

  • How to associate a bean managed with model custom content presenter

    Hello

    We use webcenter Portal 11.1.1.8.

    We have created the model of presenter content customized by using application portal Webcenter Framework. We use the Portal Server model Extension to extend Webcenter portal. The requirement is to associate a bean managed with the presenter of custom content model.

    Thanks in advance for your help.

    Nikhil,

    You can download DesignWebCenterSpaces to the URL http://download.oracle.com/otndocs/tech/webcenter/files/DesignWebCenterSpaces_11.1.1.8.0.zip

    It has the "WebCenterSpacesResources" project, which helps you to organize the active portals (including the content presenter models) and resources of portal to create/update.

    If you want to use beans controlled inside the presenter content model:

    (Development of components in ADF for WebCenter portal using the PortalExtension project http://docs.oracle.com/cd/E29542_01/webcenter.1111/e27739/jpsdg_wcsres.htm#JPSDG14173)

    1. you create the bean managed in PortalExtension project

    2. set up in faces-config. XML

     

        myManagedBean

        com.Portal.CP. MyManagedBean

        request

     

    3 deploy a part of extend.spaces.webapp.war.

    After deployment, the managed bean will be available for the presenter content model.


    K

  • [ADF, JDev12.1.3] How to hide the LOV "magnifying glass" through a bean managed?

    Hallo,

    I want to hide the "magnifying glass" to a field LOV.

    This is possible only by using a CSS approach like this Ashish Awasthi (Jdev/ADF) Blog: search to hide from af icon: inputListOfValues using CSS & StyleClass-Oracle ADF?

    Since then, I need to calculate in a bean managed if the magnifying glass must be hidden or not... I would like to know if there is an appproach simple and clean alternative.

    Thank you

    Federico

    Hi Federico,.

    You can use the same approach, as mentioned in the blog. Just you need not set the StyleClass on the page.

    In the method of bean managed when you calculate that there should be no magnifying glass, then get the reference to lov and set its styleclass (LOV.setStyleClass) and refresh the LOV.

    This way you can conditionally hide and display magnifying glass.

    Thank you

  • After the blackout, VMs will not start and Vsphere Client cannot be re management/access / start VMs on a physical server.

    After the blackout, VMs will not start and Vsphere Client cannot be re management/access / start VMs on a physical server.

    Get the error message...

    [[: start: W: 1] 2016-06-09 14:41:36.562 Log for vSphere Client Launcher, pid = 4532, version = version 5.0.0 = build-455964, option = released
    [[:QuickInf:W: 6] 2016-06-09 14:42:20.421 the value of the search dll C:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client\5.0 path
    [[:QuickInf:W: 6] 2016-06-09 14:42:24.281 load shared dll: C:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client\5.0
    [[ : start: w: 6] 2016-06-09 14:42:41.406 Log for vSphere Client, pid = 4532, version = version 5.0.0 = build-455964, option = release, user = root, url = https://192.168.10.200/sdk
    [[:ShowExcp:W: 6] 2016-06-09 14:42:42.406 error: an internal error has occurred in the vSphere Client.

    Details: The initializer for type for 'VirtualInfrastructure.Utils.ClientsXml' threw an exception.

    Contact VMware support if necessary.

    System.TypeInitializationException: The initializer for type for 'VirtualInfrastructure.Utils.ClientsXml' threw an exception.

    at VirtualInfrastructure.Utils.ClientsXml.FetchIfClientsXmlExists (String serviceUrl)

    at VirtualInfrastructure.LoginUtils.LoadMatchingVI (String serviceUrl)

    at VirtualInfrastructure.LoginUtils.CreateNewService (String serviceUrl, ClientSpec clientSpec, Boolean waitForTopology, Assembly / viAssembly)

    to VMware.Vim.Client.VimClient.StartUp (2 specMap, String [] arguments dictionary, Manager of LoginEventHandler)

    to VpxClient.UI.InitializeVimClient (dictionary 2 specMap, String [] arguments)

    to VpxClient.UI.StartUpIfNotMultiVcSecure (dictionary 2 specMap, SecureString password, String [] arguments, LoginEventHandler Manager, String, dllPath, list 1 listOfVcUrls)

    System.TypeInitializationException: The type to 'VirtualInfrastructure.Utils.TypedXmlSerializer ' 1' initializer threw an exception.

    to VirtualInfrastructure.Utils.TypedXmlSerializer'1.ctor)

    to VirtualInfrastructure.Utils.ClientsXml... cctor()

    System.IO.IOException: The process cannot access the file "C:\Documents and Settings\XXXXUSERNAMEXXXX\Local Settings\Temp\nyhn4bev.dll" because it is used by another process.

    ...

    to System.Xml.Serialization.XmlSerializer... ctor (Type type)

    to VirtualInfrastructure.Utils.TypedXmlSerializer'1.cctor)

    -End of the exception stack trace internal-

    -End of the exception stack trace internal-

    After many unsuccessful attempts tried to connect Vsphere client, the client has finally connected and was able to on all virtual machines. Thanks to Luciano Patrão for study. For all in the community, peace out...

  • Problem with binding components of fragments of page in bean managed when rendered as region

    I detected a problem when I bind a component in a managed bean for a page fragment which is a view of a TaskFlow exposed to JSF as a region.


    This problem happened when I exhibited same TaskFlow as region of two or more instances in the same Joint Strike Fighter. The component that is only returned in the latter region.


    JDeveloper 12 c (12.1.2.0) ADF12c.

    This is the code:

    The page fragment:

    <?xml version='1.0' encoding='UTF-8'?>
    <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <af:panelGroupLayout id="pgl1">
        <af:inputText label="Label 1" id="it1" binding="#{bindingComponentBean.inputText}"/>
        <af:button text="button 1" id="b1"/>
      </af:panelGroupLayout>
    </ui:composition>
    

    Bean managed (within the scope of the request)

    package com.edisa.test.errors.view.backing;
    
    
    import oracle.adf.view.rich.component.rich.input.RichInputText;
    
    
    public class BindingComponentBean {
        private RichInputText inputText;
    
    
        public BindingComponentBean() {
        }
    
    
        public void setInputText(RichInputText inputText) {
            this.inputText = inputText;
        }
    
    
        public RichInputText getInputText() {
            return inputText;
        }
    }
    

    TaskFlow

    <?xml version="1.0" encoding="UTF-8" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <task-flow-definition id="TestTaskFlow">
        <default-activity>test_fragment</default-activity>
        <managed-bean id="__1">
          <managed-bean-name>bindingComponentBean</managed-bean-name>
          <managed-bean-class>com.edisa.test.errors.view.backing.BindingComponentBean</managed-bean-class>
          <managed-bean-scope>request</managed-bean-scope>
        </managed-bean>
        <view id="test_fragment">
          <page>/fragments/test_fragment.jsff</page>
        </view>
        <use-page-fragments/>
      </task-flow-definition>
    </adfc-config>
    

    JSF page

    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html>
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
        <af:document title="index.jsf" id="d1">
            <af:form id="f1">
                <af:pageTemplate viewId="/oracle/templates/threeColumnTemplate.jspx" id="pt1">
                    <f:facet name="center">
                        <af:panelGridLayout id="pgl1" inlineStyle="border: 1px solid #eee;">
                            <af:gridRow marginTop="5px" height="auto" marginBottom="5px" id="gr1">
                                <af:gridCell marginStart="5px" width="50%" id="gc1" inlineStyle="border: 1px solid #eee;"
                                             halign="stretch">
                                    <af:panelBox text="Region 1" id="pb1">
                                        <f:facet name="toolbar"/>
                                        <af:region value="#{bindings.TestTaskFlow2.regionModel}" id="r2"/>
                                    </af:panelBox>
                                </af:gridCell>
                                <af:gridCell marginStart="5px" width="50%" marginEnd="5px" id="gc2"
                                             inlineStyle="border: 1px solid #eee;" halign="stretch">
                                    <af:panelBox text="Region 2" id="pb2">
                                        <f:facet name="toolbar"/>
                                        <af:region value="#{bindings.TestTaskFlow1.regionModel}" id="r1"/>
                                    </af:panelBox>
                                </af:gridCell>
                            </af:gridRow>
                        </af:panelGridLayout>
                    </f:facet>
                    <f:facet name="header"/>
                    <f:facet name="end"/>
                    <f:facet name="start"/>
                    <f:facet name="branding"/>
                    <f:facet name="copyright"/>
                    <f:facet name="status"/>
                </af:pageTemplate>
            </af:form>
        </af:document>
    </f:view>
    

    Component to bind to the support extended to bean bean would be.

    In fact, it is solely to support the scope of the bean - to distinguish two or more instances of the page fragment component.

    It has the same duration of life as the requestScope, but for different instances of the components parts / declarative, you have separate instances of scope backingBean controlled beans.

    http://adfpractice-Fedor.blogspot.com/2012/03/managed-bean-scopes-for-page-fragments.html

  • favorite way to bean managed from the context

    I am aware of below two ways that we can use to get an instance of bean managed in the ADF:

    (A) ADFContext.getCurrent ().getScope("PageFlowScope").get ("myBean");

    (B) elFactory.createValueExpression(elctx,_"#{pageFlowScope.MyBean}",Object.class).getValue (elctx);

    I don't know, but y at - it a preference between these 2 approaches.   If there is, can someone let me know what it is.

    Thanks for your information.

    HM, I use both methods. I don't have another preference that the first is easier to remember. The 2nd way is slower that EL is first analyzed and rated then.

    Timo

  • Manage access to the credentials named via EMCLI

    Hello dear colleagues,

    does anyone know how to manage access to the powers named via EMCLI or did someone knows if this function exists in EMCLI.

    We want to configure access through scripting, so that for example we can grant access to all administrators of database for all named credentials.

    I would be very happy if someone has a solution.

    Thanks in advance!

    Best regards

    Sönke

    Yes, you emcli Word for it - http://docs.oracle.com/cd/E24628_01/em.121/e17786/cli_verb_ref.htm#CHEBIEED

    in the emcli even guide, you can search credentials and find the relevant verb

  • Data palette displays only not Beans managed Dynamic Web Project, JSF 2.1

    Hello.

    I have a problem in EPCO (EPCO-juno-distro - Win32.zip), where the data tab, in the Palette shows no Beans managed,.
    even though I've created in the servlet in faces-config. XML using the faces configuration editor.

    I created a dynamic Web with these facets project:
    Dynamic module Web 3.0
    1.7 Java (JDK 1.7_21)
    Support for processing Java Annotation 5.0
    JavaScript 1.0
    JavaServer Faces 2.1
    JSTL 1.2
    Oracle WebLogic Web App Extensions 12.1.1

    I use the distribution of zip 12 c 12.1.1 Oracle WebLogic Server to host the application.

    For example, I have a UserBean Managed Bean in Session scope, which has 3 fields of type string
    and the respective getters and setters.
    I create a file 'test.jspx' and palette-> tab-> JSF HTML I drag a form in
    the new file so I can connect to UserBean and generate a form to enter the details.
    I select the "generate a form tag and data content' and in the dialog box choose beans
    There is none of my beans.

    What could be the problem?

    Thanks in advance.

    Published by: 997841 on April 30, 2013 18:09
    I forgot to mention the WebLogic Web App Extensions version 12.1.1 Oracle and who also
    for JSF 2.1 Configuration Faces "subfolder" below the project in the Project Explorer is not
    non-existent, as in projects created with earlier versions of the JSF.

    Ok. We took another look at it and I think we found the problem. There is a problem with our support for JSF 2.1 in EPCO 12.1.1. This will be fixed with the version of EPCO delivered in tandem with the next version of WLS (12.1.2) that we support.

    In the meantime, if you use the JSF 2.0 instead of JSF 2.1 facet it should solve your problem. The problem with Java 1.7 looks like it may have been a Kipper.

    Unfortunately, there is no way to downgrade the version of 2.0, so you have to re-create the project. Sorry for the inconvenience. You should still be able to use libraries of 2.1 (if you want) even when the 2.0 facet is active because there is not much difference between the versions of the point of view of the tool.

    Thank you for taking the time to keep up with us and we help to find this problem.

    Thank you

    Cameron

Maybe you are looking for