How to conditionally bind the declarative component custom ADF ADF Faces

Hi gurus,

I created the custom declarative component called "Historical Record", following the article of Frank Nimphus Oracle ADF Code corner: How to bind custom declarative ADF Faces components and it works perfectly find.

But I want to strengthen further to make more generic, as in Oracle EBS we can go to all the blocks and choose Tools-> history of the record and it shows WHO columns to the currently selected record.

The intention is conditionally bind the attributes of the component with columns of WHO bodies VO.

The scenario is:

* all tables have Created_Date, Modified_Date for columns of the WHO.

* the page containing the 2 instances of VO with different source (for example:-> emp dept)

* whenever I have navigate dept records it should display columns WHO selected dept and the same thing then to move through the records of the emp.

Kind regards

Ferrere

Well as I said, you shouldn't try to rebuild the Oracle Forms technology-specific behavior in some other technologies such as ADF (because it is not usually possible).

It is probably best to have a separate button for each shape (square to a coherent position on all pages - as some form, toolbar header...)

If you want to rebuild the behavior of forms, then you can use the combination of af: clientListener / af:serverListener to set a flag (as the name iterator) see scope that can be used by your 'global' button to retrieve the correct data. Therefore, add af:clientListener to each component entry...

Dario

Tags: Java

Similar Questions

  • How to set a partialTriggers for the declarative component

    12.1.3 jdev

    I try to set partialTriggers for my component declarative.

    From another forum, people suggested using one different name other than partialTriggers to avoid override a final method in RichDeclarativeComponent.

    Then, I set this:

    < afc:attribute >

    < afc:attribute - name > myPartialTriggers < / afc:attribute - name >

    < afc:attribute - class > java.lang.String [] < / afc:attribute - class >

    < / afc:attribute >

    and

    "< af:selectOneChoice id = simple =" #{attrs.simple "dc_droplist_soc"} "readOnly =" #{attrs.readOnly} "disabled =" #{attrs.disabled} ' "

    value = "#{uploading." "Value}" label = "#{attrs.label}" binding = "#{dropListComp.selectOneChoice}".

    "autoSubmit =" #{attrs.autoSubmit} "required =" #{attrs.required} "visible =" #{attrs.visible} ' "

    valueChangeListener = "#{dropListComp.handleValueChangeListener} '"

    partialTriggers = "#{attrs.myPartialTriggers} ' / >"

    But it does not work. I don't see a partialTriggers work.

    Any suggestions?

    Thank you.

    Hello

    try to use PartialTrigger on the declarative component and then reference it from

    partialTriggers = ' #{uploading. '. PartialTriggers}' / >

    Frank

  • How to use the declarative component without deployed as JAR

    Hi all
    I want to create a reusable component (declarative component) for PanelHeader with default features packed in I want to use in my application. Because this component will be used only in my project, I don't see a use to go through the process of creating a jar and deploying it before using it. Is it possible to use this component without creating a JAR.

    Thank you
    -Srini.

    User 895137,

    your welcome to ignore the best practices in the development of the ADF. The declarative elements are deployed in the libraries of the ADF. If you keep the declarative component in the application then project you will have a chance to deploy independent of the application (which means that your ADF library contain more than just the source of the component (which is where your nightmare begins)). Therefore, best practices

    1. create the declarative component in a new project in JDeveloper. Follow

    http://download.Oracle.com/docs/CD/E21764_01/Web.1111/b31973/af_reuse.htm#BABJBFDD

    2. If you don't ant to deploy components in a tag library, use declarative dynamic components (will not deploy-able in many applications, as you mentioned your future plan is), as shown here

    http://download.Oracle.com/docs/CD/E21764_01/apirefs.1111/e12419/tagdoc/af_declarativeComponent.html
    http://download.Oracle.com/docs/CD/E21764_01/apirefs.1111/e12419/tagdoc/af_componentDef.html
    http://download.Oracle.com/docs/CD/E21764_01/apirefs.1111/e12419/tagdoc/af_xmlContent.html

    Frank

  • I moved to a new more active iMac computer are unrelated. How to re - bind the?

    I moved to a new more active iMac computer are unrelated. How to re - bind the?

    Hello

    To link the asset, you must right-click on the assets in the active panel, and choose "connect".

    Then locate the saved file.

    Kind regards

    Neha

  • How to define an attribute of the declarative component with the list of options

    12.1.3 jdev

    I'm trying to define a declarative component UOM. It has a text box with a selectOneChoice of the optional codes for this type of unit of MEASURE.

    I have uomType as one of the attributes of my unit of MEASURE. It may be of WEIGHT, VOLUME, LENGTH, etc. Is it possible to provide a list of the channels supported for my uomType? So, when the user uses this component, they can select a type they want in the list, instead of typing in themselves.

    < afc:attribute >
    < afc:attribute - name > uomType < / afc:attribute - name >
    < afc:attribute - class > java.lang.String < / afc:attribute - class >
    < afc: required > true < / afc: required >
    < / afc:attribute >

    Thank you.

    Hello

    Unfortunately the lists are not an option with the declarative elements

    Frank

  • Model of ADF for use within the declarative component project

    Hello

    JDev 11.1.2.4

    I created a project for my declarative components. I want to create an element with an attribute of type oracle.jbo.Row, but this class is not recognized. What are the libraries I need to include if I want to use the object Row.

    Some basic information: my declarative component is bound to a managed bean.

    Import oracle.jbo.Row;

    @ManagedBean (name = "audit")

    @RequestScoped

    public class AuditBean {}

    Online Privacy;

    public AuditBean() {}

    Var UIXDeclarativeComponent = (UIXDeclarativeComponent) JSFUtils.resolveExpression("#{comp}");

    If (vars == null) {}

    again, throw PropertyNotFoundException ("could not find the name of the attribute [comp] component declarative Vars.");

    }

    line = vars.getAttributes () .get ("row");

    }

    }

    Most of our table have the same fields of audit, and we want to create a component that displays audit information. The component would take the line and check if the attributes are present, if so, display them.

    Thank you

    Hello

    Line belongs to the ADF runtime library. However, your declarative component seems to have another flaw, that is, it uses a bean managed within the scope of the request. She should better use backingBean range (a range of task flow) so it can be used multiple times on a page without the substitution of a previous rendering information. Maybe this isn't a problem if the component cannot forget his condition after rendering

    Frank

  • How do I scroll the UIScrollBar component to the top?

    I use the UIScrollBar with a dynamic text field. If the content becomes scroll by the user, and then say gall of text was updated with the new text, the new text remains "pre scrolls. So, obviously, I want to set the slider to 0, whenever I update the contents of this field. But how do you do that?
    Is what I do to the text field or the UIScrollBar component?
    What is the method?

    Could someone please give me an example?

    Thanks in advance...

    Silly me, I think I walked past it thinking many times I tried.

    To scroll the UIScrollBar upward
    info_txt.scrollV = 1;

    My problem was that I used parentheses to pass the value, as follows:
    It does not work
    info_txt.scrollV (1);

  • How can I measure the continuous component of the tension a SMU-4496 with LabView

    Hello

    I use an SMU-1073 NI with an SMU-4496 for several applications. In one of them, I would need the blood, maintain the continuous component (this is an accelemeter of MEMS). It's standing vertical, it gives, for example, + 2V and I need to keep reading this almost constant value.

    However, with the DAQ Assistant in LabView, it seems that it only reads the component changing signal, as is it doesn´t to move, it reads almost 0. If it moves, the, the DAQ system takes the change but then returns to zero.

    Is this normal? Read the constant part of the signal?

    (I'm a mechanical engineer and I'm not at all an expert in acquisition of signals or data, so probably just something basic is missing me)

    I have attached an example in which, after a change, it goes back to zero and the configuration in the DAQ assistant

    Thank you

    AC coupling is the culprit-it allows to block all components of steady state DC.

    -AK2DM

  • How do I get the JS component that is rendered is set to false in jsp?

    Hello

    There's a golink component which is rendering = false by default.
    I want to do of this make true during the click on a single row in the table radio button using a JS function.

    Thank you.

    Use the visible property rather than rendered property.
    If you use the rendered component property, would be NOT part of the JSF tree built at the level of the server and is NOT available in the client browser.
    If you use the visible property, the component would be part of the JSF tree built at the server level and would be available in the browser client but is NOT visible.
    You can use javascript to change the visible property.

    Thank you
    Nini

  • Question about the mix of Trinidad component with ADF Faces

    Dear all,

    I have a requirement for complex layout that I can't do with just ADF Faces component.
    I found this blog nice wfrom Jobinesh http://jobinesh.blogspot.com/2010/11/layout-tips-organizing-page-content.html
    and I quickly realize that this will solve my problem.

    Please note that components of Trinidad has not all client components peer as we have for the ADF Faces. You may need to be measured while choosing this guy

    I'm just concerned about this line. I can't really understand what it means and how it will impact my programming of the ADF.

    Thank you

    Neliel,

    Which, in my view, that Jobinesh says it's that you will not be able to use the HTML elements of the Trinity as targets for partial triggers. As far as I know, using HTML of Trinidad (trh :) components with ADF is OK, but using 'clean' Trinidad (tr :), you can have problems.

    John

  • How to clear the selection on an ADF faces table?

    I thought I'd call setSelectedRowKeys (null) gives the desired result. However it is not. Can you think of a reason why it would not clear the selection? What should I do?

    Here's the specific scenario:

    I have a two ADF faces table tell A and B with a column each and both of them have simple lines and their rowSelection property is set to "single". Now the requirement is when a line is selected from A, it must clear all selections of B and vice versa. So I registered selectionListeners on the tables and the code that is running inside this method does the following for the table has not been selected :

    tablenNotSelected.setSelectedRowKeys (null);

    lets say, I click on a first line, then on a row of B. So far so good. So if I click on the A, the control won't to the SelectionListener method. I think that SelectionEvent isn't getting fired no doubt because the previous selection has not been erased.

    JDev version I use is JDEVADF_MAIN_GENERIC_121113.1351.6521

    What I'm missing here?

    Published by: 981525 on January 23, 2013 08:20

    try to add addPartialTarget (table) after you turn off the selection.

  • Dynamic display the names of the objects in view (adf faces bc 10g)...

    I have written an application in adf faces and business components, but would like to be able to add items to it simply by creating a view of data base, i.e. with standard names and a suffix, probably static number of columns (just a read only view). I can handle the front-end and logic, but can't see a way to parametise the names & columns in view of component of the business objects. I can do things like create a load of dummy views with 10 passes to say selection double 0 then their chuck in the model, which is a mess, but would work... I was wondering if there's a cleaner way I can achieve through the model or any other method, so any ideas that could point me in the right direction would be useful.

    Thanks in advance...

    Tim.

    Hello

    You may want to investigate the dynamics of ViewObjects or dynamicaly adding attributes such as 9 and 29 of http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html

    See also

    http://www.bloggingaboutjava.org/2006/04/binding-dynamic-view-object/

    Frank

  • How to dynamically set the containers/component

    Hello

    I want to put on if containers of other condition.i.e condition if - set another container2 container1. How can I do? Any reference?

    Hey there,

    Because the way this all happens at the start of your application, simply use the add method that Simon bound for you in his first response.  Don't worry the method replace because that is only for all the containers that are already visible (or is already a child) within your root container (or whichever it is).

        // Just as an example from QSettings...
        if (mySettings.value("firstcontainer", 0) == 1) {
            myFirstContainer = Container::create()
                .layout(StackLayout::create())            .objectName("firstContainer")
                .vertical(VerticalAlignment::Center);
            // Add anything else for your first Container...
            // Then finally, you add it to your main or root
            // container with the add() function. Hopefully your
            // mainContainer is either a class member variable or
            // declared and initialized somewhere above this        // if-else statement.
            mainContainer->add(myFirstContainer);
        } else {
            mySecondContainer = Container::create()
                .layout(StackLayout::create())            .objectName("secondContainer")
                .vertical(VerticalAlignment::Center);
            // Add anything else for your second Container...
            mainContainer->add(mySecondContainer);
        }
    

    However, if somehow somewhere else in your application, you want to change the containers because the user has changed the value QSettings, you would replace it...

    if (user_wants_firstContainer) {    replaceC = mainContainer->findChild("secondContainer");    myCurrentContainer = myFirstContainer;} else {    replaceC = mainContainer->findChild("firstContainer");    myCurrentContainer = mySecondContainer;}
    
    if (replaceC) {
        replaceIndex = mainContainer->indexOf((Control*) replaceC);
    
        if (replaceIndex >= 0) {
            replaceC = (Container*) mainContainer->replace(replaceIndex, myCurrentContainer);
            // If you want to, you can just delete the replaced container here
            delete replaceC;
        }}
    
  • JSFUtils for the declarative component

    Hello;

    I use jdev 11.1.1.6

    I have

    < af:declarativeComponent viewId = "declarative.jsff" id = "dc_1" > "

    < / af:declarativeComponent >

    In declarative.jsff

    < af:inputText id = "findThis" label = "Label 1"value ="#{var.something}" immediate = "true" autoSubmit = "true" / >

    Back bean

    {} public void check()

    UIComponent component = JSFUtils.findComponentInRoot ("dc_1");

    System.out.println ("component is:"composant); [output is RichDynamicDeclarativeComponent[oracle.adf.view.rich.component.fragment.UIXInclude$ContextualFacesBeanWrapper@3035a4, id = dc_1]

    UIComponent component1 = component.findComponent("findThis");

    System.out.println ("component is:"component1); output is set to null

    }

    Looking at your declarative.jsff - does not need tags?

    Is that what you want to do with the component once you have? There could be a better way that manipulates it in Java.

    The method that I was referring to would include creating a bean:

    public class DeclarativeBackingBean {
    
      RichInputText inputTextComponent;
    
      public void check() {
        System.out.println("component is " + inputTextComponent);
      }
    
      public void setInputTextComponent(RichInputText inputTextComponent) {
        this.inputTextComponent = inputTextComponent;
      }
    
      public RichInputText getInputTextComponent() {
        return inputTextComponent;
      }
    }
    

    Add to your workflow as a bean managed in extensive backup of bean.

    In the binding of your text entry property, then refers to it. that is add

    Binding = "#{backingBeanScope.DeclarativeBackingBean.inputTextComponent} '"

    for the af:inputText tag.

    You can then refer to the inputTextComponent variable in your code and it is filled in.

  • How can I request the parameters of custom folder to a specific group of records under XP?

    Hello everyone.

    I'm THAT n00b-ish person asking the stupid question. But I can't understand for save the children. So I want to open with 1 million wishlist.

    I'm organizing my files of music inside the folder 'my music '. I am aware that since he is a 'special' folder, I can not customize it at the root.
    SO, I'm trying to customize the folders inside and make sure the radio button for "apply it to all subfolders" is checked. However, the options that I can apply are quite limited (essentially, I have the choice to make all files to display as thumbnails or icons, which isn't exactly the most intuitive way to search for music).
    I went to come a taken ONE of my files and converted to retail and added columns flow, track number, etc. so theoretically, I can fix my list in order: artist, title of song, duration, flow, track number, album, genre, folder

    (It's because I'm always organize a lot of my music as its most often jumbled together from various sources incorrectly appointed or mixed compilations or what have you).

    I tried everything under the Sun to figure out how to make this setting this record, applied to all of the folders inside my music. BUT there seems to be no way to save it as a template or apply it to a group of files (all I see is that I can do EVERY file on my computer that I don't want).

    Any help is very appreciated. Thanks in advance. See you soon.
    * original title - forgive my innanity, how I apply some settings to custom folder as a specific group of folders.*

    Hello

    I suggest to refer to the link below and follow the troubleshooting steps to customize folders.

    How to modify your folder view settings or customize a folder

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

Maybe you are looking for