CommandButton linked to same page causes infinite loop

I'm working on an jsf application with a quite complex interface. I used to deploy it with the MyFaces implementation of jsf. Because of some irratic behavior I want to test Sun's reference implementation. Everything works just fine except when my commandButtons are linked back to the same jsp, configured as a navigation-rule in my faces-config.xml. When I click the button the configured handler-method gets called infinitely(the method works fine, no exception thrown). Any ideas why this is happening?
/Dan
From "bolagsstammoAktiebok.jspx"
<h:commandButton action="#{bolagsstammoAktiebokHandler.berakna}" styleClass="styleinput" immediate="true"
                                                 value="Ber&#228;kna"/>From faces-config.xml
<navigation-case>           <from-action>#{bolagsstammoAktiebokHandler.berakna}</from-action>
            <from-outcome>success</from-outcome>
            <to-view-id>bolagsstammoAktiebok.jspx</to-view-id>
        </navigation-case>

Why make a navigation rule that navigates to the same
page ?
Just return "" from the
bolagsstammoAktiebokHandler.berakna method.That helps in that particular case. The problem persists when I try to navigate to another jsp, though. In that case I must use a navigation-rule.

Similar Messages

  • [svn] 4870: TextView with textAlign="justify" causes infinite loop and eventual RTE.

    Revision: 4870
    Author: [email protected]
    Date: 2009-02-05 15:33:52 -0800 (Thu, 05 Feb 2009)
    Log Message:
    TextView with textAlign="justify" causes infinite loop and eventual RTE. Vellum sometimes returns width and/or height larger than the request width/height due to rounding error. This triggers a contentWidth/Height change event which triggers the scroller which comes back in to TextView updateDisplayList, etc.
    QE Notes:
    Doc Notes:
    Bugs: SDK-19144
    Reviewers: Gordon
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-19144
    Modified Paths:
    flex/sdk/branches/i10/frameworks/projects/flex4/src/mx/components/TextView.as

  • Apex 4 - Flash Chart - How to open link in same page

    Hi,
    I need help in apex flash chart development. I want to open link in same page. Currently it open in new window with existing page intact
    I have created a flash chart.
    Below are setting
    Chart Type 2D line
    Series Type : Line
    Series siurce : sql query
    elect '?p=&APP_ID.:2:&APP_SESSION.::::P2_ORACLESID,P2_CAP_DATE:&P15_ORACLESID.,'||capture_date link,
    capture_date,
    round(sum(TOTAL_MB)) "Total_MB" ,
    round(sum(USED_MB)) "Used_MB" ,
    round(sum(FREE_MB)) "Free_MB"
    from SST.TABLESPACE_USAGE_HIST
    where DBNAME = :P15_ORACLESID
    group by capture_date
    order by capture_date
    Problem: when I run this page, chart is displayed. Now if I click on the series value of chart, it opens page ( '?p=&APP_ID.:2:&APP_SESSION.::::P2_ORACLESID,P2_CAP_DATE:&P15_ORACLESID.,'||capture_date link) It opens page 2 in new window. I want it to open in same window. Am I missing something ? Is this possible ? Is there anything I can change to achive this functionality
    Please help

    Hi All,
    I have an issue with Anychart link, can you please help me.
    1. I have created HTML region in a page with
    <div id="sampleClick">
    <div id="sample1">
    <script type="text/javascript" language="javascript">
    function ChartSample()
    var ChartSample = new AnyChart('/i/flashchart_v5/swf/AnyChart.swf');
    ChartSample.width = "500";
    ChartSample.height = "400";
    var ChartData = new htmldb_Get(null,$x('pFlowId').value,
    'APPLICATION_PROCESS=FINANCE_020',0);
    gReturn = ChartData.get();
    // prompt("xml",gReturn);
    ChartSample.setData(gReturn);
    ChartSample.write("sample1");
    ChartSample();
    </script>
    2. Then created Application process with "On Demand Run this application process when requested by a page process." in PL/SQL Anonymous block
    select 'f?p=&APP_ID.:136:&APP_SESSION.::::P33_ID:' || YEAR link,DECODE(period,1,'JAN',2,'FEB',3,'MAR',4,'APR',5,'MAY',6,'JUN',7,'JUL',8,'AUG',9,'SEP',10,'OCT',11,'NOV',12,'DEC')||'-'||year "MONTH",round(SUM(ytd_revenue)/1000000,2) YTD_REV from t_tc_qpcq2052
    where cntry='IND' and category='20'
    GROUP BY year, period
    ORDER BY YEAR, period
    I am able to see the chart, but I am not able to open or pass the value from one page to another page when I click the bar chart.
    Can you please help me on this.
    Thanks in Advance.

  • Link to same page but in 508

    Hi,
    I have customized the top bar to have a link that will switch the portal back and forth between 508 mode and the standard portal.
    I did this by creating acustom activity space and in the control I changed the PersonalSettingsvalue in the:
    publicvirtualRedirect CheckActionSecurityAndExecute(XPHashtable _htFormData)
    method. Once I've changed the setting, I redirect back to the same page by using:
    Redirect r = newRedirect();
    r.SetLinkToExternalURL(this.m_asOwner.GetCurrentRequestURL());
    However, I get stuck in an endless loop and the portal keeps redirecting the the same page over and over. I can hard code the link to redirect to the login page and it works fine, however, for our external web site it is a requirment that we are able to toggle back and forth between 508 and the standard portal.
    Is there a way to redirect to the same page once I have changed the personal setting value???
    We are using PT 504 .NET in a windows server 2003 environment.
    Any help would be greatly apprecited.

    If you want to use your web browser to view the code, I wrote
    a page for my wife's web store that loads each product page into
    the main page
    May or may not be what you want, but looking is free
    http://www.direct2usales.com

  • Using the back button causes infinite loop between articles

    Hi i have a folio that has a series of projects, and i wanted to use the back option as various access points to each project
    goto://FolioNavigation/lastview
    but each project has an image article associated with it, and this has a button on it back specifically to the project main article. But when u click the back button now on that main artcile, it takes  u to the image article, not back to where the person wud have wanted to be.
    I cannot think of a work around other than going back to using specific page navto but that means determining the access point which is not possible. Or duplicated the articles entirely.
    Any help appreciated.
    Rob

    found solution. you have to use the goto://FolioNavigation/lastview
    in the back option on the image page as wel. then it knows not to cause infinite loop

  • Table of contents link on same page

    Hello,
    I need some advice here. I have seen this done on the web before but not sure if iWeb does it.
    What I am looking to do is have a list or table of contents at the top of a webpage. I would like it if somehow a particular topic could be clicked and this would take the visitor somewhere farther down the page to the appropriate content.
    In other words....kinda like making a link on the same page.
    here is the page w/ what I am trying to do:
    http://web.mac.com/abenningfield/iWeb/CameraObscura/Lightbox.html
    iBook G4   Mac OS X (10.4.6)   http://www.the-camera-obscura.com

    Ariane,
    Hi there. No didn't get it to work. Basically.....I have so much/many iweb aspects I am working on I get a little caught up in different areas. So I just filed the Anchor topic away at present and will get back to it later.
    I am interested to see your outcome.....
    Please keep me posted. I really wanna try this in the near future.
    The tips are good....I just haven't had the time yet.
    PS: if you figure it out...you should write up a step by step......maybe make an article or tutorial
    Edit: Varkgirl is right and if you haven't tried this......good point to keep in mind!

  • FBL5N - BSEG-REBZG values cause infinite loop FDM_COLL_INVOICE_GET_BY_REF

    Hello,
    We have a problem where function FDM_COLL_INVOICE_GET_BY_REF looks at BSEG records in a loop. It finds the next BSEG record by using the contents of BSEG-REBZG.
    Unfortunately, some of our BSEG records point back to each other. We have the situation where BSEG "A" points to BSEG "B", and BSEG "B" points back to BSEG "A".
    For example:
    BSEG-BELNR   9100011111  ->  REBZG = 9111122222
    BSEG-BELNR   9111122222  ->  REBZG = 9100011111
    This data is causing the loop to execute infinitely as the exit conditions are never met.
    I cannot find a SAP Note that addresses this issue. It looks like the code involved is related to items in Dispute and Part Payments.
    Has anyone out there experienced this issue?
    Many thanks,
    Stuart.

    What release are you on?
    There is note 1105687 addressing the scenario when a credit memo is entered as an invoice reference in an invoice item which can cause such an infinite loop, but that note is only valid up to rel. 6.03
    There is also note 919415 but it is for even older systems.
    If you are on a current release, then creating an OSS message is your best bet.
    It would be theoretically possible to have a recent release with some already posted documents that were entered before the patch fixing such endless loops were applied... how likely is to have such old documents is another question. SAP support should help you to clean up the problematic records if this is the case.

  • Alert Component with OnKillFocus Causes Infinite Loop

    I have this script...
    txtPPM.onKillFocus = function(txtPPM)
    import mx.controls.Alert;
    Alert.show("blah blah");
    When my focus shifts away from the txtPPM textfield I get an
    infinite loop error. I haven't been able to find a successful
    method to fix this. Any suggetions?

    Probably related to the FocusManager (V2 components). There
    may be other
    ways to work around it, but here's something quick:
    import mx.controls.Alert;
    var alertClickHandler:Function = function (evt_obj:Object) {
    switch (evt_obj.detail) {
    case Alert.OK :
    trace("You clicked: " + Alert.okLabel);
    break;
    case Alert.CANCEL :
    trace("You clicked: " + Alert.cancelLabel);
    break;
    txtPPM.onKillFocus = txtFocusHandler;
    function showAlert(){
    Alert.show("blah blah blah", "", undefined, this,
    alertClickHandler);
    function txtFocusHandler(newFocus:Object){
    this.onKillFocus = undefined;
    showAlert();
    txtPPM.onKillFocus = txtFocusHandler;

  • Can't create multiple links on same page

    This is odd...when editing a page in Contribute, I can create
    a link (of any type), but when I go to create another link, I get
    the error "You are not allowed to perform that action....". (We are
    in Contribute 3.11 and using DW templates with very simple editable
    regions.) However, if I publish the page then go back into Edit
    mode, I can create the second link! But then the same error occurs
    if I try (right away) to create a third link.
    This is frustrating and I can't imagine I have to publish the
    stupid page after every link. Anyone have any ideas as to why this
    might by happening? Thanks in advance!

    Hi Bryan.
    Here's a link to the multi-up printing templates in HP Photo Creations:
    https://shop2.rocketlifeproduction.com/hpfe6fd34b208847e8f8254b9be96e8c4c/catalog.html?ocat=%40print...
    If you don't have HP Photo Creations already, you can download it on that page.
    Hope this helps,
    RocketLife
    RocketLife, developer of HP Photo Creations
    » Visit the HP Photo Creations Facebook page — news, tips, and inspiration
    » See the HP Photo Creations video tours — cool tips in under 2 minutes
    » Contact Customer Support — get answers from the experts

  • Spry collapsible panel to open from link on same page

    Hi guys.
    I have a page with about 17 collapsible panels. What I would like to do is in my sidebar have a quicklinks which will 1) anchor down to the relevant panel and 2) open that closed panel.
    My first problem I know can easily be fixed with anchor tags which I have done. I will also assume that I can do something like <a href="#anchorname" onclick="" > to solve my 2nd problem, but can someone maybe advise to what the command is to actually open the panel. I have attached a sample below of one of my panels:
    var banking10 = new Spry.Widget.CollapsiblePanel("banking10", {contentIsOpen:false});
    I have VERY VERY VERY limited experience with Javascript (else I guess this would have been a breeze )
    Thanks in advance!

    The following is a document called untitled.html
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <link href="SpryAssets/SpryCollapsiblePanel.css" rel="stylesheet">
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet">
    </head>
    <body>
    <div>
      <ul id="MenuBar1" class="MenuBarHorizontal">
        <li><a href="untitled.html?col1=1">Open 1st CP</a></li>
        <li><a href="untitled.html?col2=1">Open 2nd CP</a></li>
      </ul>
    </div>
    <div id="CollapsiblePanel1" class="CollapsiblePanel" style="clear:both;">
      <div class="CollapsiblePanelTab" tabindex="0">Tab</div>
      <div class="CollapsiblePanelContent">Content CP1</div>
    </div>
    <div id="CollapsiblePanel2" class="CollapsiblePanel" style="clear:both;">
      <div class="CollapsiblePanelTab" tabindex="0">Tab</div>
      <div class="CollapsiblePanelContent">Content CP2</div>
    </div>
    <script src="SpryAssets/SpryMenuBar.js"></script>
    <script src="SpryAssets/SpryCollapsiblePanel.js"></script>
    <script src="SpryAssets/SpryURLUtils.js"></script>
    <script>
    var params = Spry.Utils.getLocationParamsAsObject();
    var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1", {contentIsOpen: params.col1 ? true : false});
    var CollapsiblePanel2 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel2", {contentIsOpen: params.col2 ? true : false});
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>
    Copy and paste the above into your own document to test the code, making sure that all the linked files are in their correct location. The markup contains a SpryMenuBar and two SpryCollapsiblePanel's
    Gramps

  • URGENT: executeQuery after setWhereClause causes infinite loop

    Hi,
    - I'm using jdev 9.0.3.2.
    - I have a JTable bound to a ViewObject.
    - I set the vo's whereClause, the where clause has some syntax error.
    - I call executeQuery
    - The JBO exception is shown.
    - I press ok.
    BUT:
    - The JBO exception is called again and again, the reason is getEstimatedRowCount called again and again by the repaint event.
    I noticed the following code in JUIteratorBinding :
    public void executeQuery()
    synchronized(getSyncLock())
    if (mIsAlive && mIsBound)
    try
    getRowSetIterator().getRowSet().executeQuery();
    catch(Exception ex)
    reportException(false /*markDead*/, ex);
    reportException(false -> means do not markDead
    is this OK?
    Please help.
    Thanks Ognian

    You're hitting a reported bug 3090348
    A known workaround is to reset the erring clause after execute and exception like:
    private void setWhereClause_actionPerformed(ActionEvent e)
    //here it starts
    JUIteratorBinding ib=panelBinding.findIterBinding("EmpView1Iter");
    try {
    ib.getApplication().setErrorHandlerActive(false);
    ib.getViewObject().setMaxFetchSize(100);
    ib.getViewObject().setWhereClause("empno = xxx"); //the where clause
    is intentional wrong!!
    ib.executeQuery(); //one JBO exception is OK, but not an endless loop
    until a stack overflow happens!
    catch (JboException je)
    ib.getViewObject().setWhereClause(null);
    ib.getApplication().setErrorHandlerActive(true);
    panelBinding.reportException(je);
    ib.executeQuery();
    //set a breakpoint here and go inside execute query
    - this reports the exception once...

  • Applet: repaint() causing infinite loop

    I'm developing an applet that draws a linegraph. The user can select which lines of points will be drawn in the applet using checkboxes. I have a separate function as an Itemlistener for the checkboxes, and I call repaint at the end of the itemStateChanged function. For some reason, once the itemlistener has seen one event, the applet gets stuck in a loop, and paint is continually run over and over again. This makes the applet useless as the user can't enter any input since the applet is continually being redrawn. I only want paint to be called once from a repaint() call. I'm not using any loops anywere in my program. Any suggestions?

    ItemListeners tend to throw lots of events when actually only one has happened.
    The solution i use:
    remember the old satus. when an event happens first check if the status has changed, if not do nothing.

  • Safari just started opening a new window every time I click a link instead of following link on same page. Haven't changed any settings but it won't stop

    I need help please! It is so annoying and has just started doing it on its own. I never changed any settings and now cant seem to find anyway to get it back to original!

    Safari > Preferences > Tabs > Open pages in tabs instead of windows: Automatically or Always

  • Infinite Loop Error - How to Remove?

    Only my "home page" will display in WampServer's Localhost, which I am using for my "testing site" in Dreamweaver CS5. All other pages in my website cannot be loaded by IE8 or IE9. Firefox and Chrome report that all webpages (except my "home page" ) have a "Redirect Loop" which prevents them from being loaded, and this is due to links which continuously loop between the same pages.
    QUESTION: How can I fix this (without starting all over to build my website)?
    I am using dynamic webpages with a template, all of which have the "php" extension. I started with HTML webpages and template, and then converted them to "php". They worked well until some time after I added a Login Form on my home page, with Dreamweaver's "User Authentication" in Server Behaviors. The "login" and "password protected" webpages worked for a while. But now it seems like the "Redirect Loop" error may be related to my "go to page if login fails".
    It may or may not be related, but around the same time my Infinite Loop problem started, the "Editable Region" of my home page stopped displaying the formating and background colour in "Design" view in Dreamweaver.  However, they do display properly in Dreamweaver's "Live View" and in WampServer's "Localhost".
    Any all help will be appreciated.

    Thank you for your reply, Nick.  I could not find the code segments which you suggested.
    I have included a link to show the text in my page, "about_us.php", which is one of the several pages I am having trouble with.
    http://www.sunisandsfl.com/text_file_from_about_us_php.html
    This is one of my "Non password-protected" pages. When I load "about_us.php" in Dreamweaver's "Design" view, there is an Error Message above the webpage which says, "An unknown error occurred while discovering dynamically-related files." The only files shown in the "Related files" bar are "Source Code", "conndbss.php" (my database connection file), and "main_sunisands.css".
    I have not yet uploaded any of my dynamic webpages to my live site (www.sunisandsfl.com).

  • Infinite loop creating new page due to column header overflow.

    i am getting an error and some pages "Infinite loop creating new page due to column header overflow. " --
    using report builder 9, i have a fairly simple report - that contains 4 subreports.
    for some pages i get the error - it seems if there is more data than would fit on 1 page.
    smaller pages work fine.
    the subreports are all simple queries and dumps....
    containing page header, column header, detail sections.
    page header has just a text bar of the name of the section.
    column header has the field names
    detail section has the data - 1 row for each row in the recordset.
    nothing i do seems to change getting "Infinite loop creating new page due to column header overflow. " on a page with more than 15-20 records returned.
    any ideas would be appreciated.

    Try these links if you are still having the issue:
    http://community.jaspersoft.com/questions/543302/receive-infinite-loop-creating-new-page-d ue-column-header-overflow-exception
    http://community.jaspersoft.com/questions/500177/infinite-loop-due-page-header-overflow

Maybe you are looking for

  • How can I add another c e All in one printeromputer with different email address to the 6830

    I purchased a new 6830 printer and attached my laptop [Toshiba] and now wish to add my wife's Macbook. She gets the nessage that it is already loaded but it will not print from the Macbook

  • ¿Can I call a function in a frame from another frame?

    In a Canvas HTML5 document. I use javascript and easeljs. I declare a function in frame 1: function ponerBicho() {     this.bichofuncion.cabeza.nariz.gotoAndStop(1); then I call it in frame 9 (in the same timeline): ponerBicho.call(this); this.stop()

  • How to use object collection with linked objects

    <p>Hi,</p><p>I'm using VS2005 Crystal reports in a c# client app (server has database, but client does not have!). So the use of the objects transfered to the client seemed to me a good solution for showing reports on the client. The objects mostly l

  • Perform URL Encoding in a Text String

    I need to be able to convert some characters ("/", ":", "@", " ") in a few text strings (SentDate, SentTime, EmailAddress) so that the strings can be incorporated into a URL that will be passed to FileMaker Pro Unlimited. SentDate is currently "2/22/

  • Macbook Trackpad/Keyboard not working in X

    So I installed Arch for the first time (save for one previous time on a VM) today. Well, its mostly installed, GRUB is being a pain, so im working mounted on the computer via live cd. Anyway, i installed all of the X packages needed to run a WM (even