How can i add a navigation rule at the runtime of JSF?

Hello,
how can i add a navigation rule at the runtime of JSF. Maybe i should use the method "addNavigationRule()" in class "FacesConfig", but i do not know, how can i obtain the instance of class "FacesConfig". Can anybody help me?
Thank you very much!!!

Just curious: Why whould you want to add navigation Rules at run time. I believe the navigation rules should be set to begin with - "by s/w Architect Design".
Else you can always use Redirect / Forward.

Similar Messages

  • How can you add a new rule in the inspector?

    I've grown very accustomed to the Chrome developer tools, and I've recently decided to try out Firefox.
    Best I can tell, you cannot add custom rules in the Firefox inspector tab. For instance, if I inspect the element on an image in Firefox, I am given all the defined styles (rules) for that element. I can, of course, edit those defined styles. However, it does not give me an option to add my own custom styles unless I jump over to the 'Style Editor' tab and write them in manually. This becomes a problem when I want to write in a quick :hover or a :first-child or reference any other selecter that's not already defined.
    In Chrome, not only do I add/remove/change styles directly in the Inspector, but it also saves a custom inspector stylesheet for me with all the changes I made.
    Chrome example: http://cl.ly/Wm56
    Firefox example: http://cl.ly/WmUP
    Is there any way to add custom styles directly from the inspector tab in Firefox?
    Thanks!

    You will notice an element {} item at the top of the Rules list in the right plane.
    You can click between the curly brackets {} to enter a new inline rule for this element.
    You can do this within other rules {} as well.
    Type the colon to separate the property name and value.
    That is easier than adding a style attribute in the left pane or editing a style sheet file.
    That should work as well as rules added this way show as a style rule.
    *https://developer.mozilla.org/Tools/Page_Inspector

  • How can I add a black border at the bottom of a photo?

    How can I add a black border at the bottom of a photo?

    Just curious: Why whould you want to add navigation Rules at run time. I believe the navigation rules should be set to begin with - "by s/w Architect Design".
    Else you can always use Redirect / Forward.

  • How can i add an administrator access so the admin can edit his webpage on the web browser?

    How can i add an administrator access so the admin can edit his webpage on the web browser?

    A content management system or CMS is software usually on the server that allows client's to log-in and edit content from any web browser with an internet connection.  These web pages are typically built with server-side programming (PHP) and databases (MySql). 
    CMSs come big and small.  The right one for your project depends on
         a) your programming skills,
         b) project requirements,
         c) budget.
    COMMERCIAL CMSs:
    Cushy CMS (watch the video to see how it works)
    No PHP or databases required.  Editing is performed on their web site.
    http://www.cushycms.com
    Perch ($59 license per site)
    PHP & MySql required
    http://grabaperch.com/
    WebAssist Power CMS Builder - Extension for DW
    PHP & MySql required
    http://www.webassist.com/dreamweaver-extensions/powercms-builder/
    Adobe Business Catalyst (full subscription includes CMS & web hosting)
    http://www.businesscatalyst.com/
    OPEN SOURCE CMSs:
    Get Simple CMS
    PHP & XML required.
    http://get-simple.info/
    e107 CMS
    PHP & MySql required
    http://e107.org/
    WordPress
    PHP & MySql required
    http://wordpress.org
    Joomla!
    PHP & MySql required
    http://joomla.com
    Drupal
    PHP & MySql required
    http://drupal.com
    Concrete 5
    PHP & MySql required
    http://www.concrete5.org/
    Nancy O.

  • How can I add a line but keep the number I have from tmobile

    How can I add a line but keep the number I have from Tmobile

    Hi, Janice!
    I'm just guessing, but I imagine you'd get your question answered faster in the AE forum.

  • How can I add new games without overwriting the old ones?

    I have just purchased two new games in the itunes store and although they are showing in the library (under applications) my previously purchased games are not. In Summary under games it will not let me choose selected games only 'all games' and when I press sync warns that the existing games will be replaced. How can I add these games without deleting the older ones? Also if I did want to remove a game from my ipod how do I do it?

    hardlyquinn wrote:
    Part of the problem is that I can never sync the whole thing as I dont keep all my music in my library (it seems silly to have my enture cd collection on the computer).
    Clearly it ISN'T silly as it avoid issues like you are having right now. If you need more space, get an external hard drive. To me it is much sillier to only have your stuff on the iPod and no where else as the iPod, as a small portable player, is much more likely to be dropped, lost, damaged, stolen, forgotten somewhere, etc.
    While I am not familiar with the use of games on the iPod (I have never bought any) you can switch the iPod to manually manage and then you can add content to your iPod without losing what is already there. Perhaps it works for games as well.
    But long term, I strongly suggest you keep all your stuff in your library so if you need to (you have to perform a restore on the iPod, you lose it and buy a new one, etc.) you can very easily sync it all back to the iPod when needed.
    Good luck,
    Patrick

  • How can I add keywords for SEO into the code?

    How can I add keywords (for SEO) into the code of a Muse designed site?

    You might also be interested in the upcoming MuseJam on Thursday Muse Jam: Search Engine Optimization | Facebook
    Muse Jam: Search Engine Optimization
    Online May 22, 2013
    Join Principal Product Manager Dani Beaumont of the Adobe Muse team as she explores ways within the Muse application to build search engine optimized sites by way of metadata, keywords, H1 definitions, and sitemap generation. After the presentation we'll open the floor to any questions you might with the application.

  • Cs6 , how can i add a anchor point in the curve in the channel Red or Green?

    Hi
    how can i add an anchor point in the curve in the Channel R / G and B?
    in cs5 , with ctrl + click i was able to click on the image and add an anchor point in the curve channel RGB
    and with shift +ctrl + click i was able to click on the image and add an anchor poing in the channel Red , 1 in the channel Green  and 1 in the channel blue
    i know cs6 doesn't have any more ctrl+mouse click , there is the targeted adjustamanent tool
    i can do it with ctrl+m and call the curve
    but i can't do it with curve adjustament tool
    is there a way to add a anchor point in each channel red , green and blue (like the prev photoshop)?
    thanks

    thanks that's correct! thanks
    but it's not 100% correct
    to add a multiple points in rgb shift+click doesn't work!
    from adobe
    Keyboard shortcuts: Curves
    You can use these keyboard shortcuts for Curves:
    To set a point on the curve for the selected color in each color component channel (but not in the composite channel), Shift+Ctrl-click (Windows) or Shift+Command-click (Mac OS) in the image.
    To select multiple points, Shift-click points on the curve. Selected points are filled with black.
    To deselect all points on the curve, click in the grid, or press Ctrl‑D (Windows) or Command-D (Mac OS).
    To select the next higher point on the curve, press the plus key; to select the next lowest, press the minus key.
    To move selected points on the curve, press the arrow keys.
    (Curves dialog box) To set a point on the curve for the current channel, Ctrl-click (Windows) or Command-click (Mac OS) in the image. 
    If you’re instead using the Curves adjustment, simply click in the image with the On-image adjustment tool .

  • How can I add my own files to the TV Shows Library instead of the Movie Library?

    I have my own TV Shows in m4v format.  I can drag and drop the TV Shows into the iTunes Movie Library.  How can I add my files to the TV Shows Library?  Can I group them by show in the TV Shows Library?

    Select the files in iTunes.
    Right click - get info.
    Select the Options tab and set Media kind to TV Show.
    Better yet, use something like MetaZ to tag the files before adding them to iTunes.
    -> http://www.macupdate.com/app/mac/36029/metaz

  • How can i add a new function to the Basic IVI class vi's?

    I need to use the IVI vi's to control some instruments, let's say a DC Power Supply.
    Since there's a DC Power supplyclass, i can used those VI's but waht if one of the VI's does not contains all the functions that i need?. How can i add more functions to the IVI classes?. What do i need to do to add a new function to the iviFGen class?

    If you would like to try developing your own instrument driver (or modify the existing one), we have documentation, model instrument drivers, and driver templates to help at :
    http://www.ni.com/devzone/idnet/development.htm
    We also have a syndicate of third party vendors that specialize in National Instruments' products and services. Some of the vendors specialize in driver development. I would suggest contacting one of the Alliance members at:
    http://www.ni.com/alliance

  • How can i add a gmail icon to the firefox toolbar?

    how can i add the "red envelope" gmail icon to my firefox 7.0.1 toolbar?

    Save that page as a bookmark to the Bookmarks Toolbar. <br />
    http://support.mozilla.com/en-US/kb/Bookmarks+Toolbar

  • How can I make a navigation dependend on the database content with JSF?

    Hi,
    I want to navigate dynamicly between pages, but pages which addresses that are taken from database. I want to take a list of page's addresses (links) from database, and while application is running, I want to generate on my page that working links. This is functionality demanded by my little CMS (Content Management System), to enable me to add and delete pages and links between them.
    But is it possible by JSF?
    As far as I could find out, JSF provides such possibilities (faces-config.xml) :
    <navigation-rule>
        <from-view-id>/logon.jsp</from-view-id>
             <navigation-case>
                  <from-action>#{LogonForm.logon}</from-action> /*logon - function returning String as an 'outcome'*/
                   <from-outcome>success</from-outcome> /*outcome*/
                    <to-view-id>/storefront.jsp</to-view-id> /*concrete page*/
               </navigation-case>I need something like that:
    <navigation-rule>
        <from-view-id>/logon.jsp</from-view-id>
           <navigation-case>
              <from-action>#{WhichPage.address</from-action> /*different pages' addresses
               <from-outcome></from-outcome> /*outcome not needed*/
               <to-view-id>#{WhichPage.address}</to-view-id>  //different pages' addresses from db
           </navigation-case>or just function which return directly the address of the target page (read from db). But is it possbile with JSF?
    So far only figured out one not good enough way: to add all the pages' addresses to the faces-config.xml file:( But as you can imagine, the more link I would add, the bigger mess in config file I would create.
    Thanks in advance for any suggestion or advice,
    Regards.
    T.K.

    You can implement a NavigationHandler
    public class NavigationManager extends NavigationHandler {
         private NavigationHandler _base;
         public NavigationManager(NavigationHandler base)
              super();
              _base = base;      
         public void handleNavigation(FacesContext context, String actionMethod, String actionName) {
              // Put some code here, you can create a NavigationCase and a NavigationRule
              // with RuntimeConfig runtimeConfig = RuntimeConfig.getCurrentInstance(externalContext);
              _base.handleNavigation(context, actionMethod, actionName);
    }

  • How can I add a custom footnote at the beginning of my document?

    Hi, I need to start a document adding my credentials using a custom footnote (the traditional * footnote...), but can't seem to do that without having to change the whole numbering of the other footnotes in the document. Is there any way to do it?

    Just curious: Why whould you want to add navigation Rules at run time. I believe the navigation rules should be set to begin with - "by s/w Architect Design".
    Else you can always use Redirect / Forward.

  • How can I add JScrollpane to one of the panels of a JFrame????

    I want to generate a screen with one JFrame and two JPanels.one panel to the left of the Frame and another to the right.
    I want to add a Jscrollpane to left panel,to which i am adding images so that they can be scrolled.How can I achieve this ???????????
    please reply me.............
    this is Basic Frame class.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.media.j3d.*;
    import javax.vecmath.*;
    public class BasicFrame
    private JFrame frame = null;
    private JPanel CanvasPanel = new JPanel();
    private JPanel libraryPanel = null;
    public static void main(String args[])
    new BasicFrame();
    public BasicFrame()
    frame = new JFrame( "Java3d Demo of VRML Loading ");
    frame.setSize( 800, 600 );
    frame.setLayout(new BorderLayout());
         frame.add(CanvasPanel,BorderLayout.EAST);
    frame.add(new LibraryPanel(),BorderLayout.WEST);
         frame.setMenuBar(createMenuBar());
    frame.setVisible( true );
         // kill the window on close
         frame.addWindowListener(new WindowAdapter()
         public void windowClosing(WindowEvent winEvent)
         System.exit(0);
    public MenuBar createMenuBar()
    MenuBar menubar = new MenuBar();
         Menu menu;
    Menu subMenu;
    MenuItem menuItem;
    menu = new Menu("File");
    menuItem = new MenuItem("New");
    menu.add(menuItem);
    //menuItem.addActionListener(this);
    menuItem = new MenuItem("Load");
    menu.add(menuItem);
    //menuItem.addActionListener(this);
    subMenu = new Menu("Save");
    menu.add(subMenu);
    menuItem = new MenuItem("VRML97");
    subMenu.add(menuItem);
    //menuItem.addActionListener(this);
    menuItem = new MenuItem("X3D");
    subMenu.add(menuItem);
    //menuItem.addActionListener(this);
    subMenu = new Menu("Print");
    menu.add(subMenu);
    menuItem = new MenuItem("VRML97");
    subMenu.add(menuItem);
    //menuItem.addActionListener(this);
    menuItem = new MenuItem("X3D");
    subMenu.add(menuItem);
    //menuItem.addActionListener(this);
    menuItem = new MenuItem("Quit");
    menu.add(menuItem);
    //menuItem.addActionListener(this);
    menubar.add(menu);
    menu = new Menu("View");
    menuItem = new MenuItem("Reset");
    menu.add(menuItem);
    menuItem.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
    menubar.add(menu);
    return menubar;
    this is Library panel class.To this,I want to add Jscrollpane to scroll the images displayed in this panel.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.util.*;
    import java.awt.image.BufferedImage;
    import javax.imageio.ImageIO;
    public class LibraryPanel extends JPanel
    private ArrayList<String> imageList = new ArrayList<String>();
    private ImageIcon imageIcon;
    private JLabel imageLabel[] = new JLabel[100];
    private String path = "small images";
    private JList list;
    LibraryPanel()
    setSize(400, 600);
    setBorder(BorderFactory.createLineBorder(Color.black));
    setLayout(new FlowLayout());
    JScrollBar vbar = new JScrollBar(JScrollBar.VERTICAL, 30, 40, 0, 300);
    indexFiles();
    for(int imageNo=0;imageNo<imageList.size();imageNo++)
    try
    imageIcon = new ImageIcon(path + "/" + imageList.get(imageNo));
    imageLabel[imageNo] = new JLabel(imageIcon);
    //scrollPane.getViewport().
              add(imageLabel[imageNo]);
    catch (IllegalArgumentException illegalArgEx)
    illegalArgEx.printStackTrace();
         add(comboBox(),FlowLayout.CENTER);
    add(vbar,FlowLayout.CENTER);
    public JComboBox comboBox()
    String[] comboTypes = { "Sachin", "YuvRaj", "Ganguly", "Dravid", "Sehwag", "Dhoni" };
         // Create the combo box, and set 2nd item as Default
         JComboBox comboTypesList = new JComboBox(comboTypes);
         comboTypesList.setSelectedIndex(0);
         return comboTypesList;
    public void indexFiles()
    File dir = new File(path);
    String[] children = dir.list();
    if (children == null)
    System.err.println("Error: The directory doesn't exists!");
    System.exit(1);
    else
    imageList.ensureCapacity(children.length);
    for (int i = 0; i < children.length; i++)
    if(children.endsWith(".jpg"))
    imageList.add(children[i]);
    please reply me

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.media.j3d.*;
    import javax.vecmath.*;
    public class BasicFrame
        private JFrame frame = null;
        private JPanel CanvasPanel = new JPanel();
        private JPanel libraryPanel = null;
        public static void main(String args[])
            new BasicFrame(); 
        public BasicFrame()
            frame = new JFrame( "Java3d Demo of VRML Loading ");
            frame.setSize( 800, 600 );
            frame.setLayout(new BorderLayout());
         frame.add(CanvasPanel,BorderLayout.EAST);
            frame.add(new LibraryPanel(),BorderLayout.WEST);
         frame.setMenuBar(createMenuBar());
            frame.setVisible( true );
         // kill the window on close
         frame.addWindowListener(new WindowAdapter()
             public void windowClosing(WindowEvent winEvent)
                 System.exit(0);
        public MenuBar createMenuBar()
            MenuBar menubar = new MenuBar();
         Menu menu;
            Menu subMenu;
            MenuItem menuItem;
            menu = new Menu("File");
            menuItem = new MenuItem("New");
            menu.add(menuItem);
            //menuItem.addActionListener(this);
            menuItem = new MenuItem("Load");
            menu.add(menuItem);
            //menuItem.addActionListener(this);
            subMenu = new Menu("Save");
            menu.add(subMenu);
            menuItem = new MenuItem("VRML97");
            subMenu.add(menuItem);
            //menuItem.addActionListener(this);
            menuItem = new MenuItem("X3D");
            subMenu.add(menuItem);
            //menuItem.addActionListener(this);
            subMenu = new Menu("Print");
            menu.add(subMenu);
            menuItem = new MenuItem("VRML97");
            subMenu.add(menuItem);
            //menuItem.addActionListener(this);
            menuItem = new MenuItem("X3D");
            subMenu.add(menuItem);
            //menuItem.addActionListener(this);
            menuItem = new MenuItem("Quit");
            menu.add(menuItem);
            //menuItem.addActionListener(this);
            menubar.add(menu);
            menu = new Menu("View");
            menuItem = new MenuItem("Reset");
            menu.add(menuItem);
            menuItem.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
            menubar.add(menu);
            return menubar;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.util.*;
    import java.awt.image.BufferedImage;
    import javax.imageio.ImageIO;
    public class LibraryPanel extends JPanel
        private ArrayList<String> imageList = new ArrayList<String>();
        private ImageIcon imageIcon;
        private JLabel imageLabel[] = new JLabel[100];
        private String path = "small images";
        private JList list;
        LibraryPanel()
            setSize(400, 600);
            setBorder(BorderFactory.createLineBorder(Color.black));
            setLayout(new FlowLayout());
            JScrollBar vbar = new JScrollBar(JScrollBar.VERTICAL, 30, 40, 0, 300);
            indexFiles();
            for(int imageNo=0;imageNo<imageList.size();imageNo++)
                try
                    imageIcon = new ImageIcon(path + "/" + imageList.get(imageNo));
                    imageLabel[imageNo] = new JLabel(imageIcon);
                    //scrollPane.getViewport().
              add(imageLabel[imageNo]);
                catch (IllegalArgumentException illegalArgEx)
                    illegalArgEx.printStackTrace();
         add(comboBox(),FlowLayout.CENTER);
            add(vbar,FlowLayout.CENTER);
        public JComboBox comboBox()
            String[] comboTypes = { "Sachin", "YuvRaj", "Ganguly", "Dravid", "Sehwag", "Dhoni" };
         // Create the combo box, and set 2nd item as Default
         JComboBox comboTypesList = new JComboBox(comboTypes);
         comboTypesList.setSelectedIndex(0);    
         return comboTypesList;
        public void indexFiles()
            File dir = new File(path);
            String[] children = dir.list();
            if (children == null)
                System.err.println("Error: The directory doesn't exists!");
                System.exit(1);
            else
                imageList.ensureCapacity(children.length);
                for (int i = 0; i < children.length; i++)
                    if(children.endsWith(".jpg"))
    imageList.add(children[i]);

  • How can I add vocal effects other than the 9 Voice options? (I can't shift pitch)

    Hello!
    I am making the switch from PC and am just trying to lower the pitch of a vocal track by at least an octave; I just got a MBP last week and am running GB 10.0.2. I can't find any info on similar problems that is helpful; most solutions I've come across show that when the track is selected, there should be a pitch shift bar with a sliding button, but I do not have that. I read a lot of people saying something about the track being purple or not, but I'm not sure if that's relative to the version I have or if that has anything to do with what's happening. When I select the track, in the little area toward the lower left when "Track" is selected, (what is that space called?) where the pitch shift option is for other people, I only have a sliding bar for Pitch Correction, and a checkbox for Limit to Key and Enable Flex. When "Region" is selected, it just shows the name of the region and there are no options. Another question I have is how to change the pitch of midi sounds? When the keyboard is open on the screen I have tried moving the little octave shifter, but it assigns the sounds that are on the keyboard at different locations if I move it, so it changes the sound completely. A couple of them shift one octave up or down, but there are no actual controls..
    I'm mostly just dabbling with EDM/trap/Hiphop tracks at the moment, but am confused about whether or not there are other vocal effects and controls other than the preset Voice options in the instrument area (Bright vocal, Classic vocal, compressed vocal, Edge vocal, etc.)? I'm not going to be using GB forever, but are there not any other options like for current rap/trap production (phaser, balance, EQ, auto tune, choppers, actual voice altering effects, etc.) [preferably without buying extra things]? And not only vocals, but editing effects for all sounds.. If so, how do I get to them? And if not I know I should at least be able to lower or raise the pitch of a vocal recording... There are some pretty legit electronic instruments that are exactly the kind of sound I'm going for so I was surprised to not see an equally simple to access vocal effects board or something. Any additional tips for a n00b electronic music producer would also be greatly appreciated! Thank you for any help!

    In GarageBand 10 you can no longer change a track with an audio file to a "purple" audio recording, as it has been possible in GarageBand '11.
    Even, if you can make the transpose slider visible by enlarging the the track editor panel, the slider will be disabled.
    What you can do however, is either add an AuPItch filter  from the audioUnit panel or to convert your audio file to loop and to admit from the Loop Browser.
    In the new GarageBand you add the AuPitch filter from the Smart Controls.
    Enlarge the SmartControl panel by dragging the dividing line upwards, until you see the Audio Units brick, then add an Apple Audio Unit and set it to AuPitch.
    Or create a loop from the audio file. Select the region in the track and use the command "File: Add region to Loop library". You need to trim the filet an exact number of measures.
    Set the current key and tempo, name the loop, and save the loop. Make sure, that one-shot loop is not enabled.
    Now add it from the loop browser to a new track and delete your old track. The search field in the Loop browser will help you to find the loop quickly.
    You will be able to transpose the sample  like any regular loop.

Maybe you are looking for