Page navigation with SelectOneRadio

Is it possible to do page navigation with just selectOneRadio choice and without link or command button?
<h:form id="form1" styleClass="form">
               <h:selectOneRadio disabledClass="selectOneRadio_Disabled"
                    enabledClass="selectOneRadio_Enabled" id="radio1"
                    styleClass="selectOneRadio" layout="pageDirection"
                    value="#{Main.selectedValue}"
                    valueChangeListener="#{Main.handleRadio1ValueChange}"
                    immediate="true" onclick="submit()">
                    <f:selectItem itemValue="page1" itemLabel="page1" />
                    <f:selectItem itemValue="page2" itemLabel="page2" />
                    <f:selectItem itemValue="page3" itemLabel="page3" />
               </h:selectOneRadio>
               <br>
          </h:form>
     public String handleRadio1ValueChange(ValueChangeEvent valueChangedEvent) {
          String s = (String)valueChangedEvent.getNewValue().toString();       
          return s;
And faces-config:
<navigation-rule>
          <from-view-id>/main.jsp</from-view-id>
          <navigation-case>
               <from-action>#{Main.handleRadio1ValueChange}</from-action>
               <from-outcome>page1</from-outcome>
               <to-view-id>/page1.jsp</to-view-id>
          </navigation-case>
     </navigation-rule>

I hope u figured out a solution for this post already. But, if not u can try this. It worked for me.
In the change listener method, add these few lines for redirecting the control to required page.
FacesContext facesContext = FacesContext.getCurrentInstance();
ExternalContext externalContext = facesContext.getExternalContext();
facesContext.responseComplete();
HttpServletResponse response = (HttpServletResponse) externalContext.getResponse();
try {
response.sendRedirect("abc.jspx");
} catch (Exception e) {
e.printStackTrace();
Regards, Hari.

Similar Messages

  • Page navigation or Auto_incremental php url

    I need a page navigation with links to first previous next and last i know that there is an option to add page navigation through dreamweaver from the inset data tab
    But the problem is that when ever I add the navigation bar to the page and view it in the browser it gives an error with the number of the line which caused the error and when I view that line I find that the codes which were there are deleted.
    the line actually contains some recordset codes which I can't remove as I have worked hard to make them do a specific thing.
    So I decided to creat a navigation bar myself the and i made a url parameter to do that here it is
    .index.php?categories_id=1&pageNum_Recordset1=1
    this link causes the page to show the next set of posts but the problem is it just shows all the posts on the second page as the value of pageNum_Recordset1 on the first page is zero(0)
    Now the portion in the red is the problem I want it to be auto_incremental such that the value of pageNum_Recordset1 should change from 1 to 2 to 3 and so on plz help I thins its qute easy but I m not getting it and I have tried my best to explain the problem but if u r not able to then let me know I will explain again.

    Several components are action components. You can associate these components with action methods. When a user clicks on the action component the page is submitted to the server and the associated action method (if any) is called and the result of that action method (the return value) determines where to go next.
    The hyperlink offers the option of a url or an action handler . If you specify an action handler then the hyperlink works like any action component, as described above.
    However, if you specify a url instead, then the page is not submitted. The server simply serves up the page specified by the url.
    Because the page is not submitted, no action methods or any other methods get invoked.
    Have I explained that clearly?
    If not, here is more information: http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/about_components.html#action
    Chris

  • IWeb Page Navigational Links not working with Internet Explorer 7

    I'm hoping someone can help me out here? My wife created her 1st website using iWeb. I am testing the sites functionality before we publish it. All the pages and links work fine on Firefox and Safari for windows. However, the page navigational links are not working on Internet Explorer 7. All I see is a dot to the left side of where the page links should be. When I start the site in IE7 I get an Active X script warning and I am asked if I want to allow the script to run; to which I reply yes. After I allow the Active X script the dot to the left side of where the page links should be disappears, but the links do not appear.
    Is there anyway to resolve this? Most of the members of her club have Windows based PCs and are using IE7.
    Message was edited by: cviz821

    Yes, Javascript is running on IE7 and other java script applets appear to be working with the exception of the Navbar script.
    It would be great if my wife's friends used a "real" browser, unfortunately 70% of the people on the web use IE7, so this is a real concern if we can't get this to work. I'v seen other iWeb site on IE7 that seem to function fine, so I'm not sure what the issue is here.
    Message was edited by: cviz821

  • Need help with page navigation

    I've got a database where records are retrieved and displayed in a repeating region.  I've added page navigation to it because I'm getting enough records in the database that scrolling through them all on a single page is getting to be a very big page.  The page navigation works as far as the first page goes.  I get the correct records on the first page based on my selection critiera.  However, when a result set spans multiple pages, when I hit 'next page', instead of going to the second page based on the search critiera, the records displaying on the second page are the records that would be on the section page if I selected every record in the database.
    My search critiera is pretty complex, so I have not found a way to develop it inside of the recordset definition panel in DW, but I have attempted to recreate the page from scratch and I'm getting the same result each time.
    Does anyone have a snippet of code to make the pagination work correctly?
    This is the code that DW put in there:
    maxRows_rs_results = 10;
    $pageNum_rs_results = 0;
    if (isset($_GET['pageNum_rs_results'])) {
      $pageNum_rs_results = $_GET['pageNum_rs_results'];
    $startRow_rs_results = $pageNum_rs_results * $maxRows_rs_results;
    $queryString_rs_results = "";
    if (!empty($_SERVER['QUERY_STRING'])) {
      $params = explode("&", $_SERVER['QUERY_STRING']);
      $newParams = array();
      foreach ($params as $param) {
        if (stristr($param, "pageNum_rs_results") == false &&
            stristr($param, "totalRows_rs_results") == false) {
          array_push($newParams, $param);
      if (count($newParams) != 0) {
        $queryString_rs_results = "&" . htmlentities(implode("&", $newParams));
    $query_limit_rs_results = sprintf("%s LIMIT %d, %d", $query_rs_results, $startRow_rs_results, $maxRows_rs_results);
    $rs_results = mysql_query($query_limit_rs_results, $dqdb) or die(mysql_error());
    $row_rs_results = mysql_fetch_assoc($rs_results);
    if (isset($_GET['totalRows_rs_results'])) {
      $totalRows_rs_results = $_GET['totalRows_rs_results'];
    } else {
      $all_rs_results = mysql_query($query_rs_results);
      $totalRows_rs_results = mysql_num_rows($all_rs_results);
    $totalPages_rs_results = ceil($totalRows_rs_results/$maxRows_rs_results)-1;
    TIA!

    I've put some echo statements into my code to figure out what it is doing and I can see why I'm getting the results I'm getting, but I don't know how to fix it.
    Here's a description of my site.  A user has a select form where they can select records matching their critiera.  There are over 30 attributes that can be selected.  None of them can be selected and that results in every record in the database being displayed.  Any combination of the attributes can be selected and that results in the set of records that match that criteria.
    There is one caveat.  One of the attributes has multiple possible values.  Any given record will only have one value for that attribute, but the selection critiera may include multiple values of that attribute.  So in the middle of the string of "<value = > and <value = >",  I have  "and (<value = > OR <value = > OR....) and <value=>". You can see the actual select statement I have built in a previous discussion I started.
    I'm not a sophisticated php programmer or DW user for that matter, so I don't know how to build an array to capture my record data and then read the array to display the page.  It would be simpler if the selection critiera wasn't so complex - I have found several snippets of code that work well with simple select statements, but I have not been able to adjust them to work with this kind of selection possibility.
    So what I see happening is that after the first mysql statement correctly retrieves the results set, the code to set the select statement is executed again.  But at this second time through, the $_POST values from my form are no longer set to correctly build the select statement.  I thought I might save the select statement and use some if/else logic to circumvent this, but all variables seem to be getting reset when the logic goes back up to the top of the code.
    I hope I'm describing this clearly enough to generate some helpful responses.
    TIA!

  • Using Spry Vertical Navigation with Templates-Need to indicate current page

    Using Spry Vertical Navigation with the Dreamweaver templates.  Using editable attributes etc., the current page mennu item does not seem to be changing.  How do you indicate the. current page.

    Persistent Page Indicator on Site Wide CSS Menus:
    http://alt-web.com/Articles/Persistent-Page-Indicator.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Page navigation when frame replaced with div

    Hi,
    I am using CF8. I have an existing  apllication using frame to render the pages.
    <frame name="main" scrolling="AUTO" noresize src="mypage.cfm">
    The issue is that layout is not rendering correctly in iPad and therefore
    made some changes to replace the frame with div.
    How can we now include the page navigation given in the src while using the
    div?

    thanks, this is helpful although it produces a slightly different behavior from hat I hand in mind. the forum settings page allows up to 50 posts per page but this gives more.
    Still having 100+ posts on a single page is not the most convenient arrangement and my original request stands. One needs a built in way to jump to more than one page ahead.
    Message was edited by: V.K.

  • Error on page when navigating with in webdynpro applications

    Hi All,
    I have developed 5 different webdynpro applications. I need to navigate between these webdynpro applications. I am handling the navigation with in the webdynpro applications.
    The problem is after some time ( after navigating to the second or third level) when I try to click on the tabs(top level navigation), the JAVA SCRIPT ERROR is coming.
    And any other tabs are not coming.
    ERROR is: 'Error on page'
    ERROR Description is:'Problems with the web page might prevent it from being displayed properly or functioned properly'
    Any suggestions are appreciated.
    Thanks & Regards,
    Seshu

    Hi !,
    Please can you tell me what to do if you DO NOT want to destroy the source application when navigating away from it?
    For example...  Webdynpro App #1 calls Webdynpro App #2,
    Webdynpro App #1 will always stay visible and available to the user in there toolbar in the portal.  However after I click "Go" to trigger the navigation to Webdynpro App #2, then the next time I hit "Go", Webdynpro Application was destroyed out of memory I believe.

  • 11g Forms Tab-Page Navigation

    I am using Forms 11g on Solaris.
    A main navigator form opens another form which has a content canvas, tab-page canvas and (3) stacked canvases.
    The problem I am having is with tab-page navigation.     CTRL+TAB ( next ) and CTRL+SHIFT+TAB ( previous )
    As long as I do not initiate navigation from an item on a stacked canvas, navigation is as expected ( between tab pages only ).
    However, navigating from an item within a stacked canvas causes navigation to the parent form.
    Repeating the tab navigation keys from the parent form returns to the called form.
    Note that both key-combinations simply toggle back and forth.
    I have found no documentation on tab-page navigation so any help / insight is greatly appreciated !
    Mike

    Hi Soofi !
    Changing block order in the called form does not affect the navigation between tab pages.
    Note in my question that the resulting undesired navigation is to and from the calling form ( which only has one block ).
    Navigation between items and blocks works as expected.
    To reiterate -
         The only navigation that fails is when I attempt to CTRL+TAB or CTRL+SHIFT+TAB to another tab page from within an item on a stacked canvas.
         Attempting this navigation results in moving the cursor focus to the calling form.
         Repeating the attempt from the calling form moves back to the called form.
         None of your methods mention navigation between forms .
    Thanks for your interest.

  • Navigation with rollovers

    Hi,
    I have the nice task to evalute the Portal of the 9iAS v2.
    We have a nice web which should be ported to the Portal.
    I have there a nice Navigation Bar with rollovers.
    How can I build this navigation? I can use "Page Links" from the items to build a navigation with links.
    But I want to use images.
    My questions:
    1. Are there any build in features to do images with links - rollovers with links
    and if not - how can I do this.
    2. when I use Page Links I can find the right page just by name - how can I do this when
    I have to enter this manually?
    thanks a lot,
    michael

    Here's the bad news - letting a graphics application write the HTML for a production site is not a viable method.  The tables produced are completely rigid and will break unexpectedly as you build your page and add content (thereby changing the 'shape' of the original layout plan).  Please read this to see why that's the case -
    http://www.apptools.com/rants/spans.php
    The spans are what create "gaps" unexpectedly as the table tries to maintain its shape.  I believe the only way to fix this is to not use that FW HTML at all.

  • JSF Page Navigation from Tab to another page and back to tab

    I have a Page with tabs and a button in each of those presenting a Table and "Create Button"
    I would like to go to a new page and come back to the same active tab.
    How do I set the page navigation properties?
    Right now I am in
    Page1(Tab3) Button click-> page2(Create)->Page1 is showing a wrong active tab.
    Can we tell page navigation to go activate a tab it came from?
    Message was edited by:
    spattabiraman

    Hello, maybe if u declare a sessionbean variable as string, in the page u want to open thew tab, in init() you must call the session bean withh the name of the tab u are calling, for example:
    getSessionBean1().setSeltab("tab1");
    i hope it can help
    Beltazor

  • Can't find the 'page navigator' in Pages

    I can't find page navigation features in Pages
    I'm using Pages 5.2.2 on OS X 10.9.5.
    (usually I work with word processing documents)
    I think I must've said 'OK' & accepted an upgrade at some point, because the application suddenly looked different one day---e.g. the Inspector is no longer a floating window, but a column on the side... So I gather there's something called the Page Navigator, but I can't find it anywhere---not even a mention in Help.
    I no longer see the page number in the lower left of the window, and without that, I can't jump to a page.
    Please help.

    Thanks for the responses, Peter & Mike.
    I do know about the thumbnails, and yes, you can quickly drag up or down there, to find to the page you want. But that's still no match for clicking in the old page-number box on the lower left corner and simply inputting the exact page you want. (Even that wasn't quite as good as "Go to page __" command).
    Have they really deleted that?
    And where's everything else? The Inspector (is it no longer available as a floating window?!) seems sparse---I can't say precisely what's missing----but I have that weird feeling like when someone moves around the things on your desk, stuff is missing, or isn't where it used to be....

  • How to get the page navigation buttons back at the bottom of the page?

    After upgrading to Acrobat X I discovered that there is only one option for the page navigation buttons - at the upper left. I'm mystified as to why they put them there. Most users are right-handed. With the buttons at upper left it's awkward to reach up there, across the page, with the mouse cursor for every page turn (yeah, I know you can use the PgUp/PgDnkeyboard keys, but that requires taking your hand off the mouse every page turn).
    What I really want is to be able to put a copy of these buttons back down at the bottom center of the page, which was an option in previous versions. Is there some way to get those back at the bottom?

    Hi terpenoid,
    Have you tried Read Mode yet ( under the View menu)?  It displays a nivagation bar at the bottom of the PDF with next/previous page, zoom in/out, etc.
    Hope this helps,
    Dimitri
    WindJack Solutions
    www.windjack.com
    www.pdfscripting.com

  • JSF 2.0 page navigation vs direct page access

    I've been experimenting with JSF for some time now and I still don't understand the page navigation part. I know that in JSF, if you aren't using the redirect option in navigation that the URL is one page behind the page you are on.
    I've seen articles where people say you should put your pages in a directory under WEB-INF to protect against directly accessing the page. I don't understand how you can create an application that is multiple pages using that option, because won't you run into the problem of having a form with an action URL of WEB-INF/somepage.xhtml?
    I've also read articles that say the way to fix this is to add security-constraints to web.xml that prevent "direct access" to pages, when you want your user to follow a page flow, such as start on page1.xhtml, then page2.xthml, then end on page2.xhtml. If page3.xhtml depends on page2.xhtml, the articles I've read say that a security constraint prevents users from simply requesting page3.xhtml out of sequence.
    And what happens if the page you are on encounters an error or the session times out, which page handles that? The one you're on, or the one from before that forwarded you to the page you're on?
    In this example, should page2.xhtml and page3.xhtml go in the root of the webapps directory, or in a directory under WEB-INF?
    Webapps
      index.xhtml
      page1.xhtml
      page2.xhtml
      page3.xhtml
      WEB-INF
        faces-config.xml
        web.xml
        page-directory
          page2.xhtml
          page3.xhtml

    A session timeout should actually net a view expiry exception.
    You do know that JSF 2.0 made page navigation that bit easier by not requiring you to do the XML configuration? There is now a convention built in plus some new components to add GET enabled requests to the JSF lifecycle (notably h:button and h:link). If you have an action method that returns the following:
    public String doSomething(){
      return "something";
    }then JSF will by default want to render a view 'something.xhtml' when you don't define any navigation rules. If you want to make that a redirect you can do this:
    public String doSomething(){
      return "something?faces-redirect";
    }(of course this is a prime target to turn into a utility method on a backing bean base class).
    Navigation rules are still necessary when you want to put views in a subdirectory, but at least this way you can greatly simplify general cases. Other than that I can only say: research research research because this material is vital to understand if you want to be productive using the framework; navigation and the 6 JSF lifecycle phases are two items you should put on the top of your list to hammer out until you really get it. A good JSF book will help you immensely there. Balusc's blog is also a good source of deeper understanding:
    http://balusc.blogspot.com/
    Most of his articles are on JSF 1.2 but most of the information still applies.
    Oh and its no surprise that you're a bit confused - this framework is not easy to pick up especially when you don't know any other web frameworks. If you keep running into a wall you should consider checking out something else like Wicket or Play framework. It might just be that JSF simply isn't the tool for the job you're trying to do.

  • Pages load with a "hiccup"...

    Hi!
    I have a problem with pages loading with a visual "hiccup". My site www.joecurtisband.com (Google will say it's going to my myspace, but it goes to the proper site) loads o.k. and everything is good EXECPT... when you go from one page to the next, as the new page loads the image and text "hiccup". Everything seems to load for a split second about an 1/8" higher than it should, then loads in place. This ONLY happens at the published site, not in iWeb. I took great pains to assure everything was consistent from page to page so it would flow nice. Any advise would be MUCH appreciated.
    Thanks,
    Joseph

    After the pages load in the browser, a JavaScript is executed to draw the navigation bar at the top of each page.
    That instance between loading the page and the drawing of the links takes a split second.
    It's browser dependent too. Safari shows the hiccup. Firefox 3.0 & Flock do not.

  • Why does backbean's method be invoked when page navigation to other page

    Hi, All
    Why does backbean's method getBeans() be invoked
    when current page(list.jsp) navigation to other page(edit.jsp)?
    //client list.jsp
    <h:dataTable id="items" value="#{userDelegate.beans}"
    var="user" rowClasses="oddRow, evenRow" headerClass="tableHeader" >
    //server backbean
    public class CustomDelegate extends BaseDelegate{
    public ListDataModel getBeans(){}
    when list.jsp first initialize(first load), jsf invoke getBeans(), is right;
    but when from list.jsp navigation to edit.jsp, jsf invoke getBeans() too!
    what's the matter with it?

    How are you invoking the navigation? With a simple h:outputLink which links to another page or with an h:commandLink/h:commandButton which naturally first invokes the backingbean?
    If you're using h:outputLink, then this behaviour may not occur. You may review/redesign your JSF and bean logic.
    If you're using UICommand link/button, then this is usual behaviour. (re)read the JSF lifecycle for an explanation. If you ONLY want to get the navigation case, then you can 1) replace the methodbinding from action or actionListener by just the navigation case string, or 2) add immediate="true" to the UICommand element.
    This article might be of interest: http://balusc.xs4all.nl/srv/dev-jep-djl.html

Maybe you are looking for

  • How do I update an iBook created in iBooks Author without losing old notes?

    I have been creating an iBook using iBooks Author. I export it as an iBook that I can open in iBooks on my computer and on my iPad. The challenge I am running into is that I highlight sections and make notes and want to keep those even as I add new c

  • Can't apply applications to itouch

    I just downloaded some applications to my itunes and I have no idea how to add it to my ipod. It doesnt allow me to drag it to my playlist or anything,i have version 1.1.5 help?

  • Time machine error: The backup disk image could not be mounted

    Time Machine worked OK for several months. Now I get this error every 10 minutes or so. I unplugged Time Machine capsule and "Change Disk" in Time Machine options. Nothing helps, I continue to get this error. I cannot Enter Time Machine either. "Conn

  • Touch firmware wish list: release

    Release an update< Release it before it is obsolete< Release it to the public, at least a beta version< See a release roadmap< Message Edited by dannns on 07-30-2005 0:48 AM

  • After Effects quits when using a template

    my After Effects keeps quting when i use a template Message was edited by: Kevin Monahan Reason: Title was changed to make it more searchable