How do you invoke an Action prior to an initial page?

Is there a mechanism in JSF that allows action code to run prior to the first page?
Basically I want to do some processing in the context of JSF before displaying the initial application page.
In Struts I was able to do this by defining an action-mappings action that referenced an action class, and from that action I could forward to another action-mappings action that was a JSP.

This seems rather complicated and is not straight-forward. I need something similar: Before the first Render Response phase of a view I'd like my application to process any parameters that were passed via a non-faces GET request and set up my application and the JSF components appropriately. In other words, instead of the initial Restore View -> Render Response I'd like to have the full sequence of Restore View -> Apply Values -> Process Validations -> Update Model Values -> Invoke Application -> Render Response.
For example, depending on the request parameters I'd like to forward the request to one or the other JSF view. And I cannot do that in the Render Response phase because doing it The Faces Way is only possible in the Invoke Application phase - which is not invoked upon a view's initial use.

Similar Messages

  • You have created a link to another part of your book but how do you get the reader back to the original page?

    Using iBooks Author to make a book you have created a link to another part of your book but how do you get the reader back to the original page?

    Asking me to be verbore is a dangerous thing  :-)
    When you eneter information into iTunes Producer for uploading, the info must match what is in the internal metadata. In this case, the book is called Mississippi, but in  iTunes Producer it is spelled Misssissippi. There is an extra "s". This will cause an error.
    - Fabe

  • How do you make a link open on a new page (typically the target="_blank" command) in MUSE?

    how do you make a link open on a new page (typically the target="_blank" command) in MUSE?

    Newer version does not have the same interface.  I'm stuck trying to understand how to add a "blank" target to a hyperlink...  See how your screenshot has a dropdown associated with the "Hyperlink" object?  Mine doesn't...

  • How do you add the language of the dictionary in pages for the whole document?

    How do you add the language of the dictionary in pages for the whole document. When I add the british language it does not stay ON for the whole document. It goes back to "none"???? I am using pages 09 version 4.1 (923).

    This is a feature of Numbers.   If you repost on the iWork forum you may get more information.

  • How do you enable 'Create Content' button on 'Add Content' page?

    How do you enable ‘Create Content’ button on ‘Add Content’ page?
    There is new functionality to a ‘Layout’ type personalization page like ‘Sales Dashboard’.
    Bug 4503123 INCONSISTENT WAY OF ADDING USER-DEFINED REGIONS ON WYSIWYG PAGE:
    There’s no way to add custom content to a configurable page.
    Add a “Create Content” button and let the user create a piece of content that extends to a region he creates.
    It says: Fixed->11.5.10.3CU
    In Oracle® Application Framework Personalization Guide Release 11i Part No. B25439-02 it says:
    p 4-5
    If you personalize a non-configurable page (a page that does not have the necessary metadata to personalize its layout) or when you run your application in Accessibility mode (profile option Self Service Accessibility Features (ICX_ACCESSIBILITY_FEATURES) is set to Standard Accessibility), you will not see the Page Layout Personalization page, as shown below. Instead, you will see the Page Hierarchy Personalization page, page 4-12, where you can perform the same personalization functions, using a descriptive tabular user interface.
    It tried this and can’t get it to display.
    Has anyone run accross this before?

    user587952,
    Can you describe your issue in detail forgetting those references for the time being. What exactly are you trying to do?
    Check this from the dev guide:
    In order to be able to take full advantage of page layout personalization capabilities, it is important when you create your configurable page, to use flexibleLayout and flexibleContent regions at all levels when you create the page hierarchy structure under your page layout region. In Oracle Applications, this is required, as it is the coding standard.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How do you print multiple different images on a single page in preview

    How do you print multiple different images on a single page in preview?

    Chances are no one who saw your question knew the answer.
    Unless you're willing to share the answer you found here, then anyone else like you searching for the problem who comes across this thread will also be unable to thank you for providing the answer too.  

  • How do you set up and generate address labels in pages?

    How do you set up and generate address labels using Pages?

    https://discussions.apple.com/message/12924429
    Yvan KOENIG (VALLAURIS, France) samedi 17 décembre 2011 23:27:32
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • HT203175 How do you change the backround color on your Itunes page.

    How do you change the backround color on your Itunes page.

    JLabel textLabel = new JLabel ("Radius: ",JLabel.RIGHT);
    textLabel.setForeground (Color.black);
    i hope this helps
    good luck

  • How do you get iWeb not to reload my entire page?

    How do you get iWeb not to reload my entire page content when clocking on internal links? Sometimes I just want to change one picture from one page to the next and want the remaining aspects of the site to stay as is so that your web browser essentially only loads one image and keeps the other stuff. I have seen this on basically all pro websites. THANKS!
    Joel

    What version of iWeb are you using? Also what system?  What are you using to upload the site files to the server?
    OT

  • How do you make a Spry menu view on all pages but only have to change it one place?

    How do you make a Spry menu view on all pages but only have to change it one place? Someone told me maybe I could create a Library item. Any help will be appreciated.

    If your pages all have the same basic design, using a DW Template would be a way to do it...
    http://help.adobe.com/en_US/dreamweaver/cs/using/WScbb6b82af5544594822510a94ae8d65-7abea.h tml

  • How do you invoke the customer satisfaction guarantee on HP photo paper?

    OK, perhaps this is a silly question, but I can't find anything on the HP site or forums that addresses this.  How does one invoke the customer satisfaction guarantee on HP photo paper?  The instructions in the box (and website) tell me to call HP customer care.  I did that, and spent 25 minutes having a technician tell me it was a problem with my printer (HP Photosmart C6180), my printer was out of warranty, and I would need to exchange it and pay a fee to upgrade to a newer model with a 1 year warranty.  She seemed not to care or know anything about the customer satisfaction guarantee for paper; she was only trained to tell you the problem was most surely with the printer.
    In case anyone here can help, I have the HP Premium Plus 4x6 glossy paper, and whenever I use it the picture quality is extremely poor--not at all what I expected from the paper.  It appears the ink has "balled" up, and it looks very splotchy.  I am setting the paper type appropriately when printing, and I use original HP 02 inks.  When I use other photo paper to print photos, they come out perfectly.  Having wasted quite a bit of ink and paper trying different things, I'm just not satisfied and would like to discuss this further with HP.

    The only numbers available (I've just reached over and picked up a box of premium plus 4X6 from my supply shelves to look) are on the bottom end back of the box.  They are directly under their corresponding bar codes; the Product Number (for 4X6 premium plus it's Q1978AC) and what looks like the SKU (on my box, ignoring the small 8 and 5 at either end, that reads 0873654213).  Additionally, there is a "Lot Number" (printed in white dot printing on a gray box background) directly above the product number (which should have "US" in the upper left, and a string below that...mine is US00204805).  There is no number on the back of the paper, just the HP logo and a string of 6 small dots under it in a diagonal pattern spread across it.
    So, I expect they want all three; Product Number, SKU, and Lot Number...the last likely so that that can pull a lot sample from their QA inventory and attempt to reproduce the issue back at the lab.
    Hope that helps.
    H
    Message Edited by HLansing on 08-14-2009 06:15 AM

  • How do you set up actions?  I cannot find the selection on the tools menu.

    I am attempting to set up macros or actions within Acrobat XI pro.  I attempted to download a trial version of the Acrobat XI pro and had read that the menu would appear under tools that had Actions.  I could not get trial to load and do not see actions on the menu.

    Petefloyd wrote:
    How do you access music lessons on GarageBand. I have just installed this application for IPad 2 .
    lessons are a feature of GarageBand for OS X, not ipad.

  • How do you move brushes/actions from CS4 to CS5?

    Hi. I've been using Photoshop CS4 Extended and have a ton of actions, styles, brushes, and other custom settings that I'd like to now import into CS5 Extended. Is there a tool for doing this? If not, how do you manually accomplish this task? Thanks.

    It depends which folder you assigned them to,but as an example: Program Files > Adobe > Photoshop CS4 > Presets > Brushes
    Select your custom brush sets using the Shift arrow keys or Ctrl-click with your mouse to select the sets that are scattered.
    Ctrl-C to copy
    Open the CS5 presets > Brushes folder from there and use Ctrl - v to paste the sets into that folder.
    The best suggestion I have heard so far is to keep a seperate Presets folder for custom stuff in the Adobe folder and simply load them from the Brushes, Actions and Styles menu.
    That way you can get at them no matter the version of CS.

  • How do you invoke Edge Web Fonts?

    Assuming this is available in this release, how to you bring up the Edge Web Fonts capability?

    Hi Phil,
    You should be able to trigger the code hints manually anywhere in the font-family value by pressing Ctrl+Space.  It should also pop up automatically if you type "," followed by a space anywhere in the value.  Are those approaches not working for your code?  (If so, please post a snippet of your CSS here so we can investigate).
    - Peter

  • How do you invoke a simple jsp

    hi,
    i have a very simple jsp that displays the current time. it works on my tomcat server (installed on my computer). i purchased a domain from yahoo, say, www.beginer.com and uploaded the jsp file to the yahoo server. but when i referenced it with the url www.beginer.com/MyJSP.jsp, a download dialog popped up.
    so, how do you get the browser to display the dynamic contents of the jsp file?
    thanks.

    Did you ask Yahoo whether their server supports servlets and JSPs? Or did you just assume that? I would expect that it doesn't.

Maybe you are looking for

  • PO item on hold and can't create Goods Receipt PO

    We have a situation where a PO was created in our system which is 2007A SP00 PL 15.  The item on the PO has since been placed on hold.  Now when I pull up the po I change the item number to a valid item and click Update.  So far so Good.  No when I g

  • How to use the build file generated by Jdev to automate bpel deployment

    Hi everyone I am trying to deploy bpel jar files and human task ear files using ant. When i use the ant which is generated by Jdev I am gettinng an error C:\Documents and Settings\254876\Desktop\BPEL_ANT>ant Buildfile: build.xml deployTaskForm: BUILD

  • BAPI_USER_ACTGROUPS_ASSIGN not working

    Hi, I have a requirement to create user ids in CUA system but I am not able to assign roles to the created ids. I am using FM BAPI_USER_ACTGROUPS_ASSIGN. Do you have any idea why is it not working. I have tried to search but no answers were found. Th

  • Visibility false or true

    How do I change the visibilty from true to false with 1 of 3 dynamic text fields in a movie clip that is looping. The problem is when you hit the button that would hide the text field, it instantly appears again because the movie clip the text field

  • How can I get adobe reader to recognize new nook device

    How can I get my adobe reader to recognize my new nook glowlight reader so I can download library books?  I already have adobe reader installed.