Determine the area of the page through FacesContext

11 g, what is the best way to determine which region (jsff) is currently used?

In 10g to provide ' Condition conditional Requery "I used to use #{facesContext.viewRoot.viewId} on the group in order to check if the table or view for the form has been used. It works fine for the stand-alone pages, but not for the new regions. How can I accomplish the same thing?

The other place, I need this feature is for wizards where I re - uses a group of detail between two pages of the various Wizard (regions). On the entry page, the details group is editable, but on page summary of the Group should be read-only. For this, I was able to duplicate of the retail group classes, do a modifiable and a read-only and use different groups on different pages always pointing the same data collection. I would fix the "Update Allowed" property instead such that I could use the same group in two different regions.

Thank you very much!

See you soon,.
Brent

Brent,

You can use

#{controllerContext.currentViewPort.viewId}

This will return strings such as "/ EmployeesTaskFlow/EmployeesTable" for the page table and "/ EmployeesTaskFlow/employees" of the form page.

Steven Davelaar,
JHeadstart team.

Tags: Java

Similar Questions

  • How to display ProjectID, PName (account) on the Page through the entity

    Hello

    More than 200 companies in my implementation. The module of Capex is detailed to the level of the projects, so we have a dimension of project. The number of projects is huge, so I decided to design in order to reuse the project members in entities such as below

    1. form project:

    Page: Entity (E01, E02...)

    Project ID Name of the project .....
    P1E01. P1. ProjectXYZ
    P2
    P3
    ....

    P1, P2... Project member and E01-> P01 is different with E02-> P01 and so on...

    ProjectID, ProjectName is members of the account.

    We have the second form, the details of the assets for each planning project so that the Dimension of the project is now put in the Page of the form

    2. other assets

    Page: Entity (E01, E02,...); Project (P01, P02,...)

    Header 1 Header 2 Header 3 Header 4
    AssetIDAssetName,,,,,
    Asset1
    Asset2
    .....

    The problem is that the size of the project on the Page can only display members of the project name/alias P01, P02... which does not make sense with the users. What the user wants to use to display the ProjectName, projectID which are defined in the first form to their entity.

    I think using javascript cutomization. But as I tried, it seems that javascript cutomization cannot work on my current version (11.1.2.3).

    I think it's a common problem, so I'm posting here hoping that someone has found a work around for this. Please ask if there is any point is unclear.

    Thank you very much

    Van Huy.

    Hi Huy

    This isn't really a problem, it's just how Capex module is designed. Its designed in such a way so that the dimension of the projects lists your projects and it is where you would project names. You have decided to 'Customize' the module based on unique customer requirements that do not match the features "out of the box" of capital expenditures. That is why its our job to come up with models that meet the requirements.

    I'm not messing around with java custom.

    My thoughts are how about this.

    1. you create a data entry form that lists the projects on the lines and details about the columns. (you already mentioned above)

    2. on the planning of assets form, make a composite form, with horizontal split. Top of page section, have a form that has the entity and the project page and then only the project details accounts on the columns. On the line simply choose a dimension, say scenario, year or whatever is set for the data you expect. Unfortunately what ever you choose will display on the shape, but you could be creative and give it another alias, etc. Then, on the bottom have the form of assets, as you described above.

    Now enter the first form, the process would be for a user to the entity of click with the right button on a project that is on the line and select an item from the menu called "Active Plan" - this menu will create and this menu must be a form menu that links to the composite shape above. Select the pass project dimension drop-down list, then this menu requires the addition of the first form. When the user selects the menu item, what will happen is that it will open the composite shape that has the assets listed in the form of the lower part of the composite and the details of the project will be displayed in the form above the composite. You can decrease the depth of the full form as most of the screen is the asset planning form and only the line after line of project details is displayed in the upper part have (if the form is not only deeply).

    I know that's not ideal, but I think it's an approach that is nice to capture the requirement and also means that you don't create a Java Custom charges will not be supported by Oracle.

    Thank you

    Anthony

  • user logon name determines the page that opens, how can I achieve this?

    I have the basic 101 for all users login page.

    Once the user logs on, if the username is "guest", I would like to open page 2006. If the user name is 'Member', I would like to open page 2001.

    Or another way to look at it with privileges. The guest has the privilege of 'Edit', the Member has the privilege of "administrator."

    So, if a client connects to the 101 page, the application sees the privilege of 'Edit' and opens the 2006 page.

    If a member connects to the 101 page, the application sees the 'administrator' privilege and opens the 2001 page.

    Can someone tell me how I can accomplish this? Maybe is there another way that might be better to achieve this?

    Thank you
    Maggie

    This city offers is the right idea, but you must also disable deep linking. So here's how I'd do:

    1 create a PL/SQL process on the login page that fires before the login process that contains a statement:

    : FSP_AFTER_LOGIN_URL: = null;

    2. change the connection process

    declare l_page varchar2(30);beginif :P101_USERNAME = 'guest' then l_page := '2006';elsif :P101_USERNAME = 'member' then l_page := '2001';else l_page := '1'; -- default home pageend if;wwv_flow_custom_auth_std.login(    P_UNAME       => :P101_USERNAME,    P_PASSWORD    => :P101_PASSWORD,    P_SESSION_ID  => v('APP_SESSION'),    P_FLOW_PAGE   => :APP_ID||':'||l_page    );end;
    

    3. create permission schemes to prevent some users from pages that they are not allowed to use.

    Of course the test for specific usernames in the code above could be made more generic by taking the username and determine which group he belongs and assigning after correct connection based on the Group page.

    Scott

  • Download the stylesheet or change the page through experience model Mgr 3.1.1

    Hello

    Am using the Oracle trade 3.1.1 package. Is it possible to download CSS and other static stylesheets via the Manager experience short?
    Also, I guess only models page layout is not editable through EM and must be updated directly in the XMLs. want to verify this as well.

    Kind regards
    Vaibhav

    Hello

    EM is not really a tool to store your css/js, your front end app should do. Is there a reason that you want to store your css/js in EM?

    You're right about the models, you need to update the XML file and then run the set_templates script.

    Kind regards
    NGO

  • Hp2540 prints a bit of the page or a blank page

    So I have an Air of IPad and I send to print a document through the box with the arrow on the printer HP 2540. Sometimes it prints the page, but more often it prints some of the page or just to get a piece of paper through and does not print anything. The lights on the printer are turned on and and say that it is connected to the internet, the ipad is connected to the internet. When I send something to print, even just a black and white document very basic printer flashes that he receives, it takes an age to start to print then as I say especially to print a few lines and pull the rest of the page through white. Please help this is driving me around the bend!

    Hi @Birdfromblighty

    Can you please try to make a copy? If the printer can print a complete copy without display this question, then I suggest to close the iPad and fill a power cycle on the router. If the copy does not work, then we have a hardware problem. Let me know and we can go from there.

    To power cycle the router, leave the router on and unplug the power cable. Leave it unplugged for a minute, then plug it back.

    I'm sure you know how to stop the iPad, but some people do not, so just in case;

    • Press and hold the power button until the Red slider appears.
    • Drag the slider to the right.
    • To turn on the iPad, press the power button.

    I look forward to hear from you.

  • Refresh the page column link onclick

    Hello

    I'm using version 5.0 of apex...

    Set up a report page in the apex with two columns of the link to validate and download... I have a single process Page on load before header, which validates the records in a table...

    When I click on the link to validate documents are validated, a log file will download automatically... After that the page should refresh... Is it possible to send the page through javascript in the PLSQL page or in javascript...

    I need to refresh the page after that validation is complete...

    Thank you

    Toddler

    Infantraj wrote:

    Hello

    I'm using version 5.0 of apex...

    Set up a report page in the apex with two columns of the link to validate and download... I have a process on Page load before header that validates records in a table...

    When I click on the link to validate documents are validated, a log file will download automatically... After that the page should refresh... Is it possible to send the page through javascript in the PLSQL page or in javascript...

    I need to refresh the page after that validation is complete...

    Thank you

    Toddler

    1. call the link java script function validate and transmit the application using APEX. Send

    function test() {}

    Apex. Submit ({request: "SUBMIT"});

    }

    2 assign this request to your process.

    modify your process-> status-> request = Expression1

    Expression1 = SUBMIT

    Better to create example on apex.oracle.com.

    Hope this helps you,

    Kind regards

    Jitendra

  • Go to the page of eyebrows collection

    Hello. Is there a working url I can use that will sail to a collection? Not necessarily the home collection, but the page browse the collection a user is already. I want to add a button on an article page that will bring the user to the page through this article is. Of course if I type page, chrome drop down to display the back button, well that management wants a button displayed on the page for the user has to commit to see chrome to go back.

    Thank you!

    Jeff

    Currently, there is no way to access collections. However, if the collection is at the same level and within the same collection as the article you want to link to it, you should be able to use a URL of navto with the name of the collection. Similarly, as you already know, on iOS, you can navto the collection House w / goto://ApplicationViewState/library. I'm not aware of an equivalent command for Android, but I need one!

  • Determine the size of the component during execution

    I am trying to build a component Paginagion of size fixed. The number of pages which means that the size of the paging is fixed, however depending on the content may vary. Most do not specify how much is displayed on a single page.

    The idea is to use the text as input and push as much as can be displayed on the page. Factors having an influence here is the fonts and formatting.

    To determine the page which you should see that I need to understand the amount of text that can be displayed. To do this, I need to know the size of the element that contains the text (think label). The size of the label is however only determined after that is layouted. So here's what I could do:

        @Override
        public void start(Stage primaryStage) {
            Label lbl = new Label("uitroweigudfgf jkfhgklfsjghslkghs kflgskjgh");
            System.out.println(lbl.getWidth()+","+lbl.getHeight());
            lbl.widthProperty().addListener(new ChangeListener<Number>(){
                @Override
                public void changed(ObservableValue<? extends Number> ov, Number t, Number t1) {
                    System.out.println(lbl.getWidth()+","+lbl.getHeight());
                }
            });
            lbl.heightProperty().addListener(new ChangeListener<Number>(){
                @Override
                public void changed(ObservableValue<? extends Number> ov, Number t, Number t1) {
                    System.out.println(lbl.getWidth()+","+lbl.getHeight());
                }
            });
            StackPane root = new StackPane();
            root.getChildren().add(lbl);
            
            Scene scene = new Scene(root, 300, 250);
            
            primaryStage.setTitle("Hello World!");
            primaryStage.setScene(scene);
            primaryStage.show();
       }
    

    After the third change, I have the dimensions of the label. With this method, I would have to push all of the text in labels to figure out what can be displayed.

    Is there a better way to do it?

    My basic problem was with the size of the labels. Try to find a solution I had a look at LabelSkinBase which uses the Utils class in the same package. This class provides methods (although private package) to calculate the size of the text that results from:

    static Text helper = new Text();
    
    static double computeTextWidth(Font font, String text, double wrappingWidth) {
      helper.setText(text);
      helper.setFont(font);
      // Note that the wrapping width needs to be set to zero before
     // getting the text's real preferred width.
      helper.setWrappingWidth(0);
      helper.setLineSpacing(0);
      double w = Math.min(helper.prefWidth(-1), wrappingWidth);
      helper.setWrappingWidth((int)Math.ceil(w));
      return Math.ceil(helper.getLayoutBounds().getWidth());
    }
    
    static double computeTextHeight(Font font, String text, double wrappingWidth) {
      return computeTextHeight(font, text, wrappingWidth, 0);
    }
    
    static double computeTextHeight(Font font, String text, double wrappingWidth, double lineSpacing) {
      helper.setText(text);
      helper.setFont(font);
      helper.setWrappingWidth((int)wrappingWidth);
      helper.setLineSpacing((int)lineSpacing);
      return helper.getLayoutBounds().getHeight();
    }
    
    static int computeTruncationIndex(Font font, String text, double width) {
      helper.setText(text);
      helper.setFont(font);
      helper.setWrappingWidth(0);
      helper.setLineSpacing(0);
      // The -2 is a fudge to make sure the result more often matches
      // what we get from using computeTextWidth instead. It's not yet
      // clear what causes the small discrepancies.
      Bounds bounds = helper.getLayoutBounds();
      Point2D endPoint = new Point2D(width - 2, bounds.getMinY() + bounds.getHeight() / 2);
      return helper.impl_hitTestChar(endPoint).getCharIndex();
    }
    

    With that, I am able to determine the amount of text can be put into the label, without the chain of ellipsis appears.

  • Get the current name of the page without the aid of a bean

    Hello, everyone!

    If I would get the current name of the page to a page, I'd do something like this:
    #{bean.currentPageName}
    @SessionScoped
    @Named
    public class Bean
    {
        public String getCurrentPageName()
        {
            return FacesContext.getCurrentInstance().getViewRoot().getViewId();
        }
    }
    But my question is: is it possible to get the name of the current page directly from the xhtml page without using a bean? Is it something related to it or information available to the page itself? If so, how can I access it?

    Thank you in advance.

    Marcos

    Use the same semantics in the page:

    #{facesContext.viewRoot.viewId}
    
  • When you use the "Fill &amp; sign PDF" feature, is there a way to stretch to resize the text box, to an area of the page... rather than through a long straight line...?

    When you use the "Fill & sign PDF" feature, is there a way to stretch to resize the text box on a specific area of the page... instead of the text box is in a long straight line...? I do not see there is an option or the ability to do so, just want to confirm.

    Improving the management of multiple line text fields is in our plans, but for now, you need to add manual carriage return (Enter).

    Thank you

    Josh

  • I formatted my computer to windows xp, I have an acer aspire m5100 is the message I get [error number: 0x8024400A] the website has encountered a problem and cannot display the page you are trying

    I formatted my computer to windows xp, I have an acer aspire m5100 is the message I get [error number: 0x8024400A] the website has encountered a problem and cannot display the page you are trying

    Sasha,

    What browser (exact version). ?

    Harold Horne MVP on September 24, 2012

    0x8024400a

    You must be at Service Pack 3 level before you can use Windows updates.

    To determine which service pack is currently installed on your computer, follow these steps:

    1. on start and then click Run.

    2 copy and paste, or type the following command, and then click OK:

    winver

    A dialog box displays the version of Windows and the service pack that is currently installed on your computer.

    See also: http://support.microsoft.com/kb/2497281>

    You may be unable to access the Windows Update of Windows XP Web site.

    If you haven't already done so, you will need to install the SP2 and SP3 (SP1 note no longer exists).

    How to obtain the latest Windows XP service pack

    http://support.Microsoft.com/kb/322389>

    SP2 - http://www.microsoft.com/en-us/download/details.aspx?id=28>

    (for single PCs too)

    For Windows XP Service Pack 2 installation procedure

    http://support.Microsoft.com/kb/875364>

    Steps to take before you install Windows XP Service Pack 3

    http://support.Microsoft.com/kb/950717>

    It is stated in "How to obtain the latest service pack XP" is.

    If you have problems obtaining the service pack from Windows Update, you can download the package of standalone update from the Download Center.

    This page will say that this installation package is intended for it professionals and developers. However, you can download this file safely.

    The following file is available for download from the Microsoft Download Center:

    Download the Windows XP Service Pack 3 package now

    FIRST: Uninstall IE8 and IE7 if they are installed. Back to all the way back to IE6. You want other patches before you get those. Reboot after doing this.

    You are not the first to ask questions about how to upgrade a clean Windows XP - not even installation in the last week. In fact, I will just cut and paste my answer here... here:

    Get SP2 (manually) and save it to your desktop. (There's a link here.) [You are a COMPUTER professional for now.]

    Install it.

    Then restart at least a couple of times for a few minutes between each restart.

    Get SP3 (manually) and save it to your desktop. (There's a link here.) [You are a COMPUTER professional for now.]

    Install it.

    Then restart at least a couple of times for a few minutes between each restart.

    Download at least Internet Explorer 7 (if it is not Internet Explorer 8).

    Install it.

    Reset.

    Now, try to get the updates through the normal web page (http://windowsupdate.microsoft.com/) and see how much more you can get (100 +) and keep checking until you no longer have.

    Back - let everyone know if it worked for you.

        

    UTC/GMT is 14:12 on Sunday, October 28, 2012

  • You can change the way that you scroll up and down pages.have just installed the new update from apple and the way in which you have to scroll through the pages in firefox has c

    After you have installed the latest version of the software update apple has changed the way you scroll through the pages. I would like to consider to have a box at the top and bottom of the screen that you use for scrolling. Any help would be greatly appreciated.

    On Mac, scroll bars may be hidden and are showing them when you scroll down the page, so you can see the current scroll position.

    The idea is that a Tablet is used that does not need to be visible and therefore more screen real estate for the navigation area, scroll bars.

    You can make scroll bars always appear:

    System Preferences > General > Show Scroll Bar > Choose "Always"
    
  • How to make the page numbers see the v.5.6.2 Pages automatically through the document?

    MacOs 10.11.4, v5.6.2 Pages.

    How can I make Pages automatically page numbers?  I want to be able to scroll through a multipage created from a blank template document & print specific pages.  Have sought and found answers on paging, but no address my question.  JV

    Pages v5.6.2 dislike doing anything automatically. Page numbers are shown to you when you scroll through a document:

    1. Associated with each thumbnail in this display mode
    2. By inserting the page number in the header or the footer

    That's all for v5.6.2 Pages. Whenever you want to print a specific page, you will need to check the Pages: of the _____ to the _____ in the OS X Print Panel and specify the same value for each entry field to print the page in question. There is no automatic printing of selected pages in the selection of this Panel paper handling.

    Pages ' 09 v4.3 would show the current page number on a lower status bar, with or without page numbers inserted in the header of document/footers. This view could be clicked, and it would change to a text entry where we could fix the jump to page number.

  • Since the update to firefox 10.0 (and then 10.0.1), the bottom of the Page, the Page Up keys, start and end work correctly. Is that what someone else has this problem, and are there any suggestions for a fix?

    for example, I read a Web page, when I push the bottom of the keyboard Page, sometimes nothing happens. Sometimes the page scroll a few lines but then does not continue to scroll down when I push the key several times. Sometimes the page immediately jumps to the bottom of the page; etc. Similar issues occur, in the direction towards the top, when I press the Page up key. The keys start and end are completely "dead", because the page does not move when I press them.
    It is important to note that all these keys work as usual when I open the browser Chrome or Internet Explorer, and other applications in which keys should be functional, so this problem is specific to Firefox.

    Hello

    Please check if still use the keys cursor to navigate through the pages is selected in Tools (Alt + T) > Options > Advanced > general and uncheck. This setting can also be turned on/off by pressing F7.

  • Windows Update does not work after you reinstall Windows XP SP3, get error: "the site has encountered a problem and cannot display the page you are trying to view.

    Original title: cannot run Windows Update

    I just reinstall my Windows XP and SP3, but I can't run Windows Update and gives me the following error message:

    The website has encountered a problem and cannot display the page you are trying to view. The options provided below may help you solve the problem.

    For self-help options:

    To support options:

    Can someone help me please?  Thank you.

    I just reinstall my Windows XP and SP3, but I can't run Windows Update and gives me the following error message:

    The website has encountered a problem and cannot display the page you are trying to view. The options provided below may help you solve the problem.

    For self-help options:

    To support options:

    Can someone help me please?  Thank you.

    [1] select start > run > wuaucpl.cpl > disable automatic updates > apply (if the setting is changed) > OK

    To disable the horse notification that appears in the status bar on automatic updates is turned off.

    Go to start > Control Panel > Security Center > resources > change the way Security Center alerts me > uncheck automatic updates

    [2] manually download the full install for IE8 exe and install IE8 and refuses to download updates at the time of the installation of IE8

    http://www.Microsoft.com/en-us/download/Internet-Explorer-8-details.aspx

    [3] manually download and install the latest cumulative security for IE8 update and restart the computer before

    visit windows update via the shortened link in your Start menu.

    When you have Win XP SP3 and IE8, it will be the necessary file recommend you download and save the file in the folder, and then double-click on and run the executable file from there.

    http://download.Microsoft.com/download/1/9/A/19A6AC47-9EA0-455F-B918-A44D25B5304C/IE8-WindowsXP-KB2898785-x86-enu.exe

    Restart after installing IE8 cumulative security update.  It should restart when installation is complete.

    [4] now to connect to windows update manually through your browser using the shortcut in the start menu link.  Ignore the warnings, recommendations to turn on automatic updates.

    Report back please on the status and please report problems with error codes. Thank you.

    Recommend you not install MSE but rather install a free antivirus like Avast or AVG.

    Recommend also you do not install Windows Search 4.0 these programs not to live pleasantly on most XP machines and cause CPU excessive loading unpredictable and inconveniently sometimes interfering with the usual ability to XP if not to multitask without problems.  Also recommend you only install Firefox is a browser much better than IE8 that will not work even at many Web sites.

Maybe you are looking for

  • How to reset my ipad disable

    My apple ipad is disable, how to reset it?

  • HP Photosmart Software Suite from hpqdirec.exe not Solution Center

    Hello recently installed the HP Photosmart Software Suite on my Officejet 4215xi all-in-one sisters.  Everything seemed to go well, except that when I open you'd think is supposed to be the center of Solution instead it tries to start hpqdirec.exe. 

  • play by filename rather than tags?

    Hey guys... I have just myself picked up a clip of 2gig, updated the firmware and put in MSC mode. Can I play files by folder/file name, instead of using tags... in the same way that you can with rockbox? See you soon A

  • Encoding methods

    My project is mounted up, and more, 100 files, I start to worry if my drawing is too complex for a blackberry application. My current project works: -Home Main (Contains the main methods to start the program) Debugger (Provides a custom behavior for

  • I'm trying to install a piece of software on Windows 7 and still get the same "fatal error", what should I do?

    Here is the link to the .jpg, I put in my DropBox: https://dl.dropbox.com/u/41007907/errorMessage.jpg. I took a snapshot of the error message. Details: I don't have any antivirus installed. I have Windows 7 64 bit. I used to have this same software o