dynamic page structure

Hello

I use ADF 11 g.

I'm trying to set up a page structure that stands out in the order to a logic behind. So, page can have different number of facets, and these aspects should be filled by program. I wonder what is the best method to achieve this. I am trying to use different templates for every possible page structure. But I have a few questions about this, any idea would be appreciated.

1 - is this supported: hand files with a jsp page (which has a side named contentArea), model a jsff file (which has a model of dynamic page reference) included in contentArea.

2. when using dynamic page template binding, it is a requirement that used templates of pages must have the same amount of facetrefs?

3 can dynamically change jsp: include the attribute of 'page' of the tag, for example with the expression language?

4 - How can I find a page (RichPageTemplate component) to support bean template.


Thank you.

Hello

1 - is this supported: hand files with a jsp page (which has a side named contentArea), model a jsff file (which has a model of dynamic page reference) included in contentArea.

I tried and it works with the full support of the IDE.

2. when using dynamic page template binding, it is a requirement that used templates of pages must have the same amount of facetrefs?

Yes.

3 can dynamically change jsp: include the attribute of 'page' of the tag, for example with the expression language?

Include the page is added during compilation tme, no PERIOD. So I don't think that this is possible. However you can dynamically change the contents of . If you need to dynamically change the elements of an EAP, take a look at the dynamic Page template tag in the tag documentation ADF Faces

4 - How can I find a page (RichPageTemplate component) to support bean template.

You can start searching for the UIViewRoot or relatve to the container parent, which is af:form. In the latter case, you create a reference of the JSF for the RichForm component binding in the managed bean and then to call getChildren

for example

    public String cb1_action() {
        // Add event code here...
        List l = form1.getChildren();

        for (UIComponent u : l){
            System.out.println("Child "+ u.getId() + "--"+u.getClass());
        }
        return null;
    }

Frank

Tags: Java

Similar Questions

  • ApEx 5: Modal dialog dynamic page title resists change

    I have a modal dialog box that is called from a page with several buttons, each of which has a value different from the value to a page element in the modal page which is then used as a change in the title of the page. It works the first time when open the dialog box indicating the title depending on button, but then this first value sticks and won't change during his call with others buttons until the calling page is updated. Then it changes according to whatever the button is first used and gets stuck again. I also tried setting the value of the element in a process of pre-rendering or dynamic action of page load, but the behavior is the same.

    The trickiest part about modal APEX pages is that the content of the page is in an iframe, but the dialog box itself (including the title bar) is in the parent window.

    The problem is that the title of the dialog box is set in the call to apex.navigation.dialog which is located in the button's onclick attribute. This code is rendered on the server when the page is rendered, so it will use whatever the current value of the dialog page is including the substitutions.

    The links should be generated on the server because of the checksum. But the checksum does not include the options of the dialog box, so it is possible to do something like that. I have two buttons that open the same dialog is a button on the other cakes and pies. Is the title of the dialog attribute: dialogue &. P32_TITLE_ARG and the buttons set P32_TITLE_ARG to 'Pies' or 'cakes '.

    original var = $("#btnPies").attr ("onclick");

    $("#btnPies").attr ("onclick", original.replace (/ title:'[^'] ' *'/, ' title: ' pies dialogue' "" "));

    origin = $("#btnCakes").attr ("onclick");

    $("#btnCakes").attr ("onclick", original.replace (/ title:'[^'] ' *'/, ' title: "Dialogue hardens" ""));

    In this case there is no need to still have P32_TITLE_ARG, unless it is used for more than just replacement of the title.

    One thing that I don't like this solution, is that it is changing the code is sensitive to changes in the way the onclick code is rendered. By changing the text of an onclick handler you basically get the browser to the code eval for you. However, most (all?) techniques that use the apex.navigation.dialog API from your JavaScript code will have to change somehow what prepare_url generates on the server.

    Another option is to set the title of the dialog box of the page apex loaded by using a dynamic page loading action.  Yet once the title of the page does not have to use the substitution so better to change it to something like 'Dialogue'... "so that it shows something reasonable while loading the content of the dialog box (page APEX).

    The code runs in the DA of the dialog page loading is very simple. What is most interesting is the use of apex.util.getTopApex. The dynamic action runs in the iframe, but the dialog box is in the parent document (dialog boxes are always opened in APEX above). Using getTopApex allows us to find the title of the dialog box in the parent document.

    apex.util.getTopApex ().jQuery(".myDialog.ui-dialog-title").text ("Dialogue" + $v ("P32_TITLE_ARG"));

    For the above to work, you shall provide your dialogue a single class (on the parent page) so that the dialog box can be found. Make sure to set the dialog box > CSS Classes do not attribute the appearance > Classes CSS attribute. I used the name of the class that is lame "myDialog '.

    The disadvantage of this method is that there is a delay until the title is set, it is the same delay as the page loads, so it may not be a problem.

  • Separate Page 2 Dynamic Pages numbers

    I have two dynamic pages on the same form:

    < Cover page >

    < Form data page >

    I want to have separate pages for the two numbering. For example if the cover Page 4 pages then form data to start it could start with Page 1 / Total number of Pages of the form data. No Page 1 on the total of all pages.

    I can't get down to writing scripts for the number of pages for each master page. Any ideas? I am attaching a test file to show the challenge I am. Thank you for your time.

    https://workspaces.Acrobat.com/?d=SwypKLeZhlvykEs6xjzGUw

    Fixed! Trick is to use pageSpan to get the a variable necessary to calculate remaining on the other Subform subform (s).

    Fixed form:

    https://workspaces.Acrobat.com/?d=TLu0AaZhVCfik3-8FIk80A

    See also the Thread:

    http://forums.Adobe.com/thread/788404

  • Dynamic page references

    I've done a few documents that contain what I would call inline references page numbers. For example in the middle of a paragraph, "for more information, see page x". Usually, the document redéroule at some point and I have to remember to update the page references.

    I can't help but wonder if there is a simple way (and I mean by simple without custom scripts) to the dynamic page number references. Kind of like how TOCs work, except that I don't want to pick up all instances of a certain style of paragraph, just a specific line or something. I guess I could do with the anchors, but I do not want to turn the words into hyperlinks in the document. I just want the correct page number is displayed permanently.

    For CS3, take a look at this script of sectors de Jong: Script for referrals, including a tutorial on how to use it (updated April 10, 2006) you need to update manually, I think.

    If you use a large number of cross-references, the upgrade to CS4 would probably be worth it for that alone.

  • Huh?  Or, call a procedure from a dynamic page portlet

    I have a procedure which returns the number of records in a table. Works very well.
    I want to call this procedure from a dynamic page portlet in Oracle portal.
    Here is (close to the) the content of the page:
    < HTML >
    < TITLE > example < /title >
    < ORACLE >
    HTP. P (SCHEMANAME. PROCEDURENAME());
    < / ORACLE >
    < / BODY >
    < / HTML >

    I get an error
    ORA-00900 invalid sql statement.
    Could not be parsed as portal_app - HTP. P (SCHEMANAME. PROCEDURENAME()); WWV-08300
    (The procedure has been granted execute privileges to the public and anonymous.)

    So, it is a FUNCTION and not a PROCEDURE that you are trying to call from a dynamic page? Then try something like the following:

    
    DECLARE
    v_test VARCHAR2(4000);
    BEGIN
    v_test := SCHEMA.FUNCTION();
    htp.p(v_test);
    END;
    
    
  • Another Question for dynamic Pages

    Hello

    If I create a dynamic page and then I used as a portlet in a simple portal page, can I link to it, as a portlet settings page? as it can be done with the omniportlets.

    and if it is possible how can I do?


    Thanks in advance!

    aTTe
    Blume

    If you have a bind variable in your dynamic pages, then change the dynamic page and check the box 'Make Public' of each variable binding tab display form Customization Options. After you add the dynamic page portlet to a page, see if you are then able to bind the page settings for the parameters of the dynamic page.

  • Title of the dynamic page (full name)

    Hi all!
    How can I change page tutle dynamically, according to certain parameters. I have a page with portlet (develops in JDeveloper), I have the setting in this portlet and you want to use this setting to generate the new display name for the page.

    Maybe it's not a complicated task, but I ' ve searched in the Forum discussions and found more questions than answers: dynamic page title title of Page based on a Page setting header

    Must I use the pl/sql? the java-portlet pl/sql procedure call?
    Thanks in advance,

    A. Roshina

    The document.title property controlling the page title. Have your portlet to run a JavaScript function that defines document.title.

    document.title = "Your new title";

  • Page structure: in an HTML or separate files?

    What is the right way to design the structure of a WebWorks application page? I use jQuery-mobile as well.

    A: should all pages in a single HTML tag, each page being a:

    ...

    B: pages should be separated in different HTML files linking to each other?

    I am currently using method A, but the app is slow when moving from one page to the next. I suspect that one of the reasons is the size of the unique HTML code that includes all pages.

    Also another question, I'll have is that pressing the button 'back' physical on the phone leaving the app which is another reason I'm doubting my approach by having all pages in an HTML.

    See bbUI.js - it is fairly lightweight framework specifically for webworks. (https://github.com/blackberry/bbUI.js)

    You start with your index.html page, where each page is loaded in as you call it. He push or poping page + JS + CSS memory to keep your low memory footprint. It is also the recommended way of dealing with the pages rather than having all your stuff on a single page.

    He also manages the for you back button. The default behavior on the first page of an application is to exit the application, unless you trap and tell him what to do. With bbUI, it passes through your pages.

  • Dynamic page Unload Action

    Hello

    I want my tabular presentation, use to display a warning message if they try to sail away without saving the changes. To do this, I created a dynamic action - Page Unload/confirmation.

    When I try to navigate away from the form of tables, it appears the confirmation alert but when I click OK, it blocks the browser. I use IE 9.

    Is there any version of IE that is recommended for the use of this dynamic action? Has anyone run this dynamic action successfully with IE 9?

    Thank you

    Zoro

    Alternatively, you can make use of the jQuery plugin built

    Demo: Are you sure? -dirty a jQuery forms Plugin

    Sunil Bhatia

  • Adusting a dynamic page counter

    I have a headache for a page counter to work in a module. It is a long course - 120 slides - and it has a dynamic menu and a side menu that allows navigation to the different sections of anywhere. It also has a glossary, available from anywhere in the course, which has a back button that goes to the last visited slide.

    I need to change the variable cpinfocurrentslide in-2, to take account of two screens before that the menu (which is the glossary). I created a variable, display_currentslide, that is in a text caption of time during the rest of the project. I have an entry action in the menu that has an expression display_currentslide = cpinfocurrentslide. The result is that it shows the slide 1 of 120 on each slide. I see that the problem is that this action doesn't happen on every single screen - only in the menu. If a solution would be to add this as an action to each screen, above all other actions are already there. It of doable, but would take ages. I also saw method of adding a or subtracting one for the cpinfocurrentslide using the forward and back buttons, which will work very well for me, except that there is a glossary which you can go from any screen in the course. Is there an implementation method that does not involve adding a new action for each of the 120 screens?

    Thank you very much in advance for any advice or tips! I use 8.1 Captivate, completely up to date.

    I suspect that you use 8.0.1.242, because there is not AFAIK available 8.1.

    If you want to have the v_CurSlide variable (sorry for my translation, it's my way of labelling), updated on each slide, you will need to perform an action on each slide, of course. Because this action never changes you can join all the slides in a work flow: select all the slides in the film (CTRL + A on Win) and enter the name of the action in the Actions tab, enter.

    However, I would recommend using a shared action (best for the size of the file), the same workflow because you don't have to do anything a parameter.

    Another tip: why not show the interaction of Glossary for the rest of the project as well and use a toggle the enable/disable button. Much less navigation which will speed up the experience for the user, since you have a long journey.

  • How to manage the dynamic PAGE HEIGHT?

    I want to cover a white background (page 960px width) against a color dark gray browser.

    I need this white background to adjust VERTICALLY, in a dynamic way.

    I get the separation between my white background and my footer.

    Help?

    You can try to disable "Sticky Footer" in the interface of the Site/Properties.

  • Name of the dynamic page element?

    Hello

    I have one of some fields (VELD01, VELD02... VELD11) and a page process that fills this domain.
    I want to say more dynamic by using a loop. Is it possible to use some "dynamic SQL" as:

    l_cnt: = 1;
    for r in c
    loop
    P1210_VELD0 | l_cnt;
    l_cnt: = l_cnt + 1;
    end loop;

    Example above does not of course...

    garcol wrote:
    Hello

    I have one of some fields (VELD01, VELD02... VELD11) and a page process that fills this domain.
    I want to say more dynamic by using a loop. Is it possible to use some "dynamic SQL" as:

    l_cnt: = 1;
    for r in c
    loop
    P1210_VELD0 | l_cnt;
    l_cnt: = l_cnt + 1;
    end loop;

    Example above does not of course...

    Use the apex_util.set_session_state API method:

    l_cnt := 1;
    for r in c
    loop
      apex_util.set_session_state('P1210_VELD' || to_char(l_cnt, '09'), r.foo);
      l_cnt := l_cnt + 1;
    end loop;
    

    (Always the postal code using ------)

    ...\
    

    tags.)

    However, the use of this approach raises possible concerns about your data model - it is properly standardized? And why not do it using standard table of tabular presentation techniques /apex_item API /apex_application tables?

  • Print a Message of success to the dynamic Page Action

    Hi guys,.

    I have a dynamic action that executes a block of code pl/sql. I need to display a message when the procedure is executed. I tried several options such as the use of "apex_application.g_print_success_message" but I could not achieve this goal. Here's my plsql code:

    CREATE OR REPLACE PROCEDURE processAlrm
    (
    p_alarmAction in VARCHAR2
    p_alarmID IN VARCHAR2
    )
    AS
    BEGIN
    Update...;
    COMMIT;
    apex_application.g_print_success_message: = ' < span style = "color: red" > alarm properly treated. </span > ';
    EXCEPTION
    WHILE OTHERS
    THEN
    ROLLBACK;
    LIFT;
    END processAlarm;
    /


    You have an idea how I can do this?

    Thank you.

    Hello
    Defining the will apex_application.g_print_success_message variable does not work because it is only used for page rendering.

    What you could do is
    a. create an item hidden on the page, tell P1_FOR_DA_HDDN
    b. in your DA make the following change

    --apex_application.g_print_success_message := 'Alarm processed successfully.';
    apex_util.set_session_state('P1_FOR_DA_HDDN', TO_CHAR(SYSTIMESTAMP) );
    -- SYSTIMESTAMP is only to force a change in the item every time the process is run. Alternate to using null/not null or other values.
    

    (c) in 'Page elements to return' her DA enter P1_FOR_DA_HDDN
    d. create a DA on P1_FOR_DA_HDDN, the change event, which has a real 'alert' Action and give the message "processed alarm with a success." in it.

    Here's what will happen
    1. when the process is run the value of the hidden element will change
    2 change in value of the hidden item will trigger the DA 'The change' in this regard.

    It will display an alert message, not in the area of SuccessMessage. But I think your goal is to inform the user, that is enough.

    Kind regards

  • The folder of the page structure

    Hello

    I am replacing a webiste with a remodelled in Adobe Muse version. I want the published structure (when it is exported from Business Catayst) be the same as the previous site to ensure that all the indexes that have been created by Google in the past are not considered Invalid for the new site of content published in Muse.

    In our current site, "our people" Page is at: http://industrytoclassroom.org/ -vision /

    But when using Muse "our people" Page is exported under: http://industrytoclassroom.org /Our - vision.html

    Anyway is to maintain consistency with the structure of the original site with Muse?

    Thanks in advance

    Uddaka

    It is correct that Muse exports / publishes the .html pages only.

    If you load your site to Business Catalyst, the best way to prevent the deindexation of pages in search engines would be by creating 301 redirects in British Colombia, so that if a person visits/our vision, he is automatically redirected to /our - vision.html. A 301 redirect sends visitors and crawlers to the new URL search engine - http://en.wikipedia.org/wiki/HTTP_301

    Learn more about creating page redirects in British Colombia - http://kb.worldsecuresystems.com/kb/create-page-redirects.html

    Thank you

    Vinayak

  • How to assign the variable element of dynamic page?

    Hello

    I am facing following problem:
    I need assign a variable with a value of a page element - for example apex_application.g_f04 (i).
    My problem is, that f04 maybe everthing between f04 and f52 (or whatelse was number of page elements?).
    I've tried several things, among others, something like this:

    v_test: = apex_application.g_f | x | (i) / * where x can be another variable * /.

    or

    v_stat: = 'SELECT apex_application.g_f ' | x | "(i) the double '.
    EXECUTE IMMEDIATE v_stat INTO v_test

    but I do not understand so far...
    Any ideas?

    Published by: DFiles on 06.01.2011 13:57

    apex_application.g_f0x variable package are associative arrays and are not accessible to the dynamic SQL. You must use the dynamic PL/SQL:

    declare
    
      i pls_integer;
      x pls_integer;
      v varchar2(32767);
    
    begin
    
      /* However you get values for x and i... */
      i := 1;
      x := 4;
    
      execute immediate 'begin :1 := apex_application.g_f' || to_char(x, 'fm09') || '(:2); end;'
        using out v, i;
    
      return v;
    
    end;
    

Maybe you are looking for

  • Help! I sold my watch without closing the lock of Activation!

    Hello I didn't know that I needed to disable the Activation of locking on my Apple Watch and sold on the internet. Of course, the buyer is angry.   How can I turn off the lock?   Giving my apple for the buyer ID will help? Thank you very much Simon

  • Re: Problems with the hard drive on a Satellite A200

    Hello I got my Satellite A200 (PSAE6E) for many years, and although I was interested for her order to to finally make the hard drive gives its first signs of failure. The symptoms started coming a few months ago. The disc will stop working, the syste

  • SFC scanning problems - "system repair pending".

    I'm trying to run a sfc scan and I get the answer "there is a system repair pending which requires the restart ends."  Back to zero does not solve the problem.  How can I fix?  I hope the race said scan will help me solve another problem that has bee

  • photography package for

    Is the photoshop provided with the package of photography (with lightroom etc.) the full version of Photoshop or limited?

  • API for html to PDF

    I need API for html to PDF in the php application, please help me.