Welcome page, one start button, two outcomes

hi,
I have a welcome page with a Start button which is the first page after authentication. If the user is logged in as roleA then next page after start button is pressed should be pageA and if user is logged in as roleB then next page should be pageB. User data are bound to userInfo managed bean in session scope which has methods isRoleA(), isRoleB() and getUserRole(). How can I bind this start button to achieve this (if possible with code sample)

Can't you just code the method for the button to ask for the value of the role and based on the result return one of two navigation cases that you use in your faces-config.xml flow?

Similar Messages

  • In a jsp page one name button that corresponding 5 TextField how to insert

    hi,
    In a jsp page one name button that corresponding 5 TextField how to insert values inthe database that 5 textfield values

    Hi use
    String s=request.getParameter("Text Filed Name");
    do this for all the Text Field..... Then use preparedSatatment for inserting that data inside the database.

  • 2 forms on page -- one submit button?

    Using Dreamweaver CS3 I've created a page that basically has
    2 forms on it. Each form is connected to its own recordsource /
    database (but display information regarding the same customer).
    Right now there's a "submit" button underneath each form.
    I'd really like to be able to set this up so that there is
    only one "submit" button and it updates both databases from the
    form data once it is pushed.
    Is this possible? If so, could someone please point me to
    some directions on how to do it?
    Any help would be greatly appreciated.
    Thank you.

    It is possible, but the easiest way would be to combine the
    two forms into a
    single one. Why not do it that way?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "GlennC02108" <[email protected]> wrote in
    message
    news:g9ejc0$rge$[email protected]..
    > Using Dreamweaver CS3 I've created a page that basically
    has 2 forms on
    > it.
    > Each form is connected to its own recordsource /
    database (but display
    > information regarding the same customer).
    >
    > Right now there's a "submit" button underneath each
    form.
    >
    > I'd really like to be able to set this up so that there
    is only one
    > "submit"
    > button and it updates both databases from the form data
    once it is pushed.
    >
    > Is this possible? If so, could someone please point me
    to some directions
    > on
    > how to do it?
    >
    > Any help would be greatly appreciated.
    >
    > Thank you.
    >

  • One compressor setting, two outcomes

    I exported two files using Compressor in the same batch with the same setting. One of them's giving us playback problem's on the web, and the other isn't. We recreated the problem too. Comparing the two files in MediaInfo Mac, there's only two significant differences, two lines that the problem video has that the other one doesn't. They are - "Encoding Library: Apple Quicktime" and "Menu / Chapters Stream #1" which appears to be a heading at the bottom of the report with nothing under it.
    I don't know what these lines mean, so it's difficult to know how to troubleshoot. Any ideas?
    * * * MediaInfo Mac 0.7.36.0 file analysis report.
    * * * MediaInfo Mac is ©2010 by Diego Massanti - http://mediainfo.massanti.com
    * * * MediaInfoLib by Jerome Martinez - http://mediainfo.sourceforge.net
    Created on: Jan 26, 2011 2:55:15 PM EST
    Report for file: ElyShorttest.mp4
    General / Container Stream #1
    Total Video Streams for this File.................1
    Total Audio Streams for this File.................1
    Video Codecs Used.................................AVC
    Audio Codecs Used.................................AAC LC
    File Format.......................................MPEG-4
    Play Time.........................................5mn 16s
    Total File Size...................................64.6 MiB
    Total Stream BitRate..............................1 711 Kbps
    Encoding Library..................................Apple QuickTime
    Video Stream #1
    Codec (Human Name)................................AVC
    Codec (FourCC)....................................avc1
    Codec [email protected]
    Frame Width.......................................720 pixels
    Frame Height......................................540 pixels
    Frame Rate........................................29.970 fps
    Total Frames......................................9494
    Display Aspect Ratio..............................4:3
    Scan Type.........................................Progressive
    Color Space.......................................YUV
    Codec Settings (Summary)..........................2 Ref Frames
    QF (like Gordian Knot)............................0.133
    Codec Settings (CABAC)............................No
    Codec Settings (Reference Frames).................2
    Video Stream Length...............................5mn 16s 783ms
    Video Stream BitRate..............................1 550 Kbps
    Video Stream BitRate Mode.........................VBR
    Bit Depth.........................................8 bits
    Video Stream Size.................................58.5 MiB (91%)
    Video Stream Language.............................English
    Date of Original Encoding.........................UTC 2011-01-26 17:48:24
    Color Primaries...................................BT.601-6 525, BT.1358 525, BT.1700 NTSC, SMPTE 170M
    Transfer Characteristics..........................BT.709-5, BT.1361
    Matrix Coefficients...............................BT.601-6 525, BT.1358 525, BT.1700 NTSC, SMPTE 170M
    Audio Stream #1
    Codec.............................................AAC
    Codec (FourCC)....................................40
    Audio Stream Length...............................5mn 16s 842ms
    Audio Stream BitRate..............................160 Kbps
    Audio Stream BitRate Mode.........................CBR
    Number of Audio Channels..........................2
    Audio Channel's Positions.........................Front: L R
    Sampling Rate.....................................48.0 KHz
    Audio Stream Size.................................5.92 MiB (9%)
    Audio Stream Language.............................English
    Date of Original Encoding.........................UTC 2011-01-26 17:48:24
    Menu / Chapters Stream #1

    Can't you just code the method for the button to ask for the value of the role and based on the result return one of two navigation cases that you use in your faces-config.xml flow?

  • When I start firefox, the Firefox 4 welcome page always opens, along with my home page.

    I have a mac, am running version 10.6. I recently updated firefox to version 4.0.1.
    After updating to the new version, and restarting firefox, it opened to the "welcome to version 4" page here are all the changes, etc, etc, in addition to opening my home page in a separate tab.
    However, it never stopped doing that. Every time I quit firefox and restart it opens two tabs: one with the welcome page, one with my home page.
    In the General tab of Preferences it still lists my correct home page as the home page. I have tried changing my homepage to a different website and to a blank page, but whenever I quit and restart it again opens the two tabs (and the homepage gets reset in my preferences back to what it was).
    Any thoughts??
    Thanks!

    See these articles for some suggestions:
    * [[Firefox has just updated tab shows each time you start Firefox]]
    * [[How to set the home page]] - Firefox supports multiple home pages separated by '|' symbols
    * http://kb.mozillazine.org/Preferences_not_saved

  • Firefox start with two pages. One says welcome to Firefox etc. And the other is my homepage (google). I want to stop the first page. How can I do this??

    Firofx (5.0) starts with two pages. One is the welcome to Firofox and also that there are Add-ons available. The other one is my homepage (google). I want to stop the first page. How can I do this?

    See these articles for some suggestions:
    * https://support.mozilla.com/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox
    * https://support.mozilla.com/kb/How+to+set+the+home+page - Firefox supports multiple home pages separated by '|' symbols
    * http://kb.mozillazine.org/Preferences_not_saved

  • I just purchased an ibook for my mac for the first time and it started with two pages then switched to one with notes and i can't change it back. Anyone else having this problem?

    I just purchased an ibook for my mac for the first time and it started with two pages then switched to one with notes and i can't change it back. Anyone else having this problem?

    Up the top where the three buttons are (red yellow green) are three images. Click on the third image that looks like a notepad (not the first which is a library book), and that should get rid of 'Notes'. To read using two pages make the window bigger.

  • Just installed Firefox 9.0.1. When opening a new browser session, two tabs will open. One is my home page and the other is a Firefox welcome page. I just want my homepage to open. How do I achieve this? Thanks.

    Just installed Firefox 9.0.1. When opening a new browser session, two tabs will open. One is my home page and the other is a Firefox welcome page. I just want my homepage to open. How do I achieve this? Thanks.

    See these articles for some suggestions:
    *https://support.mozilla.org/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox
    *https://support.mozilla.org/kb/How+to+set+the+home+page - Firefox supports multiple home pages separated by '|' symbols
    *http://kb.mozillazine.org/Preferences_not_saved

  • ? how to add page numbers in pages 5.2, starting with 2.  Pages '09 had an option to not show folio on page one.  Also any how to do left and right folios for a Tabloid?  Many trhanks

    ? how to add page numbers in pages 5.2, starting with page 2.  Pages '09 had an option to not show folio on page one.  Also any idea how to do left and right folios for a Tabloid?  Many thanks  . . .

    Hello jacquemac,
    Your first question:
    There might be a better way of achieving what you wish to do, but following these steps could help you out.
    You might want to blend in Thumbnails and Invisibles either with (cmd+shift+i and cmd+alt+p) or over the View section in the Menubar.
    1. go for Documents (right end of the Toolbar) -> Section
    2. place your cursor at the very top of your second page and click "Create new Section->Starting with this page" in the side bar on your right.
    (what you are actually doing next is setting the pagenumbers for each section you created. You can see your sections in the Thumbnail view.)
    3. click on your first page (the first and only page of your first section) and mark the checkbox "Hide on first page of section"
    4. click on your second page (the first page of your second section) and  "Insert page number" -> start at 1
    Your second question:
    Im not quite sure i understand what exactly you want to do here. One page, two columns, each column with another page number? As far as i know this is not possible.
    greetings jl

  • Strange bug -- adding one more button OR page causes Form warning to appear

    I'm building a simple interactive document in InDesign CS4 on the Mac, to be exported/delivered as a PDF. There are a few text-based buttons on the Master Page that are set to Go To a Text Anchor on Release. There are 4 buttons of these buttons on the page, and each one leads to a different page in the document, and they all work fine. They are all built the same way.
    I want to export a PDF that opens cleanly in Reader, meaning no unexpected dialog boxes or warning messages appear. Up until this point, my document opens cleanly in Reader.
    However, when I create a FIFTH button (using the exact same method used to create the other buttons), OR I add ANY more pages to my document (which currently stands at 16 pages, but will need to ultimately be upwards of 40), for some reason, opening the PDF in Reader causes Reader to start displaying the large, distracting pink warning message at the top of the page:
    "Please fill out the following form. You cannot save data typed into this form. Please print your completed form if you would like a copy for your records."
    The fifth button I create (from scratch) causes this message to appear.
    Or, if I add another page (using my Master Page, where the buttons are used), this message appears. Even if the fifth button is not created, and I add another page from the Master, this message appears.
    If I add a blank new page (without using the Master Page), the message does NOT appear.
    So, for some reason, adding ONE more button, or referring to the Master Page in the document ONE more time by adding a 17th (or more) pages, seems to kick InDesign/Acrobat Reader into thinking my document is suddenly a form, and causes Reader to display that obnoxious pink message when opening the document.
    I've tried several troubleshooting steps.
    - I've ensured my buttons have unique names.
    - I've tried creating the fifth button from scratch, and also tried creating it from duplicating one of the existing "good" buttons.
    - I've made sure the button has a destination page/Text Anchor to go to.
    - I've opened the PDF in Acrobat Pro 9, and gone through all of the page and buttons in the Forms Manager, and there is nothing out of the ordinary in that view.
    Why is Reader suddenly thinking my document is a form (that "cannot be edited/saved") when I add one more button, or one more page!? It's bizarre, and quite frustrating.
    Thanks for any insights,
    Robbie

    You can use that same workaround with ID CS4 files. You just have to make the PDF and then go into Acrobat to add the security that doesn't allow editing (Acrobat -> Security -> Encrypt with Password) . That gets rid of the warning about the form. Of course if you actually have a form somewhere in your document, you won't be able to use that......

  • Two problems with iWeb welcome page

    After some obvious struggling I was able to create a working welcome page with links to my homepages. I have two questions regarding the page:
    1. First, the page does not fit the full screen when seen in Safari. It seats too small in the middle of a white background.
    2. Second, more troubling, the page cannot be forwarded to my domain since the address:
    ///Volumes/frasecco8/Web/Sites/iWeb/Welcome%20page/Welcome.html, is not recognized by the domain.
    What can I do about these two problems?
    I feel I am very close to having a working website, with links, pictures, etc. but I am no quite there yet.
    Thanks for any suggestion, advice.
    Frank
    iMac G5   Mac OS X (10.4.9)   PowerMac G4

    1) In iWeb, click on the inspector button (the blue cirle with an i) select the page tab. From there you can adjust the height and width of the page, as well as background colors. Keep in mind that screen sizes vary widely; try to choose a size that will work well on both smaller and larger screens.
    2) I presume you mean that you are publishing to .mac but have a purchased domain name and want to forward from your purchased domain name to your .mac site? In that case the problem is that you are using the wrong url for forwarding. Try entering http://web.mac.com/frasecco8.
    If that doesn't work, then try:
    http://web.mac.com/frasecco8/iWeb/Welcome%20page/
    I hope this helps.
    Kabing

  • Automatically Submit Start Button on Worklfow Page

    Is there a way to force the "Initiation" form of a workflow to click the "Start" button?
    What I really want is to use a "Custom Action" on a list to start the workflow without having to go to the first page where the Start button is.
    David Jenkins

    Hi David,
    According to your description, my understanding is that you do not want to redirect to the workflow start page.
    Here are two ways for your reference:
    1. You can create a JavaScript function and call the function when clicking the button in the ribbon.
    function StartWorkflow(ItemURL, ItemID) {
    var loadingImage = ‘Loader’ + ItemID;
    var workflowDiv = ‘WorkflowDiv’ + ItemID;
    //Show our loading image
    document.getElementById(loadingImage).style.visibility = ‘visible’;
    $().SPServices({
    operation: "StartWorkflow",
    item: ItemURL,
    templateId: "{04ee1c93-f6b7-49b3-a79c-fa3142ecd688}",
    workflowParameters: "<root />",
    completefunc: function() {
    document.getElementById(workflowDiv).innerHTML = ‘Workflow Started’;
    Mor information, please refer to the link:
    http://spservices.codeplex.com/wikipage?title=StartWorkflow
    2. You can create a ribbon button using visual studio 2010 and start workflow using C# code.
    http://blogs.msdn.com/b/jfrost/archive/2009/11/06/adding-custom-button-to-the-sharepoint-2010-ribbon.aspx  
    http://jainnitin2411.wordpress.com/2012/07/06/programmaticallystartsharepointworkflow/
    I hope this helps.
    Thanks,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • I desperately would like to update Firefox to version 10 from version 9 but each time I try, I am stuck with FF10 checking addons for comparability and the Welcome page opening every time I start the browser.

    Windows 7 64 bit
    I desperately would like to update Firefox to version 10 from version 9 but each time I try, I am stuck with FF10 checking addons for compatability and the Welcome page opening every time I start the browser. I continue to have to revert to version 9 to resolve this issue.

    Sorry to be a while getting back! Tried all of that with no sucess so this AM, bit the bullet and deleted the FF folder from programs and downloaded and installed FF 10.01. Still was plagued with the same problem. Went into the appdata folder and there were two sessionstore.js files. Deleted them both, restarted the browser and no compatibility check for add-ons was done at start up and the extra tab for Welcome to FF was no longer opening Everything seems to be working as it should and I did not loose any of my settings.. Thank you for trying to help and I hope my solution helps anyone else who might experience this in the future. Here's hoping the next update goes smoother!

  • How do I create multiple TEBs with one submit button on one page in Captivate 7

    I've read other posts on this topic (which refer primarily to earlier versions of Captivate) and am still at a loss as to how to put multiple text entry boxes on a page with one submit button. Here's my scenario:
    I am creating test questions.
    Each test question has multiple text entry boxes (for numbers only).
    Student should be able to enter numbers into the textboxes in any order.
    Then there is one Submit button that should initiate validating all the text entries, and move to a scoring page (so I can test it). (What would be best is if this button not only did the above, but also submitted scores to the LMS.  But that is not my question at this time.)
    I'd like this question to be set up as a template so that I can duplicate it, be able to add or delete text boxes and change the values required in the text boxes.  
    Here is an image of a sample question page with multiple TEBs. The yellow boxes tell the student where they need to enter text:
    Any help or direction to help is appreciated!!

    I think the problem here is that Arlhoolie wants all of the different TEBs to behave as if they were part of a single interaction that submits only ONE result to the quiz.  Using multiple TEBs in Captivate means that you have multiple scored objects and therefore multiple results being submitted to the quiz.
    If you want a single Success or Failure result submitted to the quiz based on the results from multiple interactive objects then there really is no simple way to do it.  But you could try using the Infosemantics Interactive Master widget to combine all the TEBs as slave objects that report to the Master Widget, which then reports a single score to the quiz based on the results from the slave objects.
    You can learn more about the Master widget here:
    http://www.infosemantics.com.au/adobe-captivate-widgets/interactive-master
    http://www.infosemantics.com.au/interactivemaster/help
    You can download a free trial version of the widget here:
    http://www.infosemantics.com.au/adobe-captivate-widgets/download-free-trial-widgets
    One caveat you should be aware of is that this widget is not HTML5 compatible.

  • How do i change the display in ADE to a single page view instead of two pages side by side? I find it distracting and prefer to look at one page at a time.

    How do i change the display in ADE to a single page view instead of two pages side by side? I find it distracting and prefer to look at one page at a time.

    You can increase the font size and automatically page view changes. Go to menubar; Reading -> PDF View or Epub Text Size (depending upon the ebook) and increase the size.

Maybe you are looking for

  • Where does my info go after I import in time machine?

    I can't find my documents, users, etc.  Where is it all?

  • HT201210 what if i can't restore my iphone

    hello Apple, I have been updating my iPhone on new version. But they told me it's error and want me to restore my iphone first. But I cant even restore my iphone. how can I do then? Thanks

  • OIM AD password Sync connector. Connection to AD through SSL

    Hi. I am trying to configure AD password sync connector 9.1.1.5 with patch 14627510 to connecto to AD through SSL. At this moment, connector is able to connect to OIM through SSL but not to the AD. If i set AD port number to 389 on the connector conf

  • 32 or 64 bit Sparc patches for studio 12.3

    I'm confused by the option for 32 or 64 bit patches, I installed Studio12.3 on an M4000 running Solaris 10U8. Why are 32 bit patches for sparc listed? I want the 64 bit patches correct?

  • Loading an Applet Multiple Times

    I'm using the JNLPAppletLauncher to load an applet that is used in several web pages across my site. Whenever I load the applet, the jnlp extension for the url of the JNLP file changes to something slightly different due to authorization logic. The f