Af:inlineFrame executes its source attribute three times

I have inserted an inlineframe in a jsf page fragment.
Initially, the inline frame is visible=false.
The page fragment also contains a af:commandButton thatn makes visible=true on the inline frame when it is clicked.
This is the definition of the inlineframe and the button:
         <af:commandButton text="#{viewcontrollerBundle['ALU.GENERAR_EXTRACTO']}"
                            binding="#{backingBeanScope.extractoNotasBB.cb1}"
                            id="cb1"
                            icon="http://itemsweb.esade.edu/apps/img/pdf-icon.png"
                            action="#{backingBeanScope.extractoNotasBB.URLIframe_action}"
                            disabled="true"  partialTriggers="soc1"/>
         <af:inlineFrame binding="#{backingBeanScope.extractoNotasBB.if1}"
                          id="if1"
                          source="#{backingBeanScope.extractoNotasBB.URLIframe}"
                          shortDesc="Listado pdf" visible="false"  partialTriggers="cb1"
                          inlineStyle="iframePDF"/>
Well, when the page is initially loaded, the URLIframe methos is executes three time.
When the button is clicked, method URLIframe_action is correctly executes only once:
    public String URLIframe_action() {
        this.if1.setVisible(true);
        return null;
but #{backingBeanScope.extractoNotasBB.URLIframe} is again executed three times.
The problem is that the url called by #{backingBeanScope.extractoNotasBB.URLIframe} have to be mandatory executed only once when clicking the button (which I think is also the expected behaviour)
What can I do ?
Thank you.

If it is important to perform the URL calculation only once, you can move the calculation to the button's action listener. Then store the calculated URL in a view-scoped variable and make the IFrame's "source" attribute referepoint to this variable instead of to a backing bean method:
public String URLIframe_action() {
  // Calculate the URL and store it in a view-scoped variable
  String iframeURL = this.getURLFrame();
  AdfFacesContext fctx = AdfFacesContext.getCurrentInstance();
  fctx.getViewScope().put("iframeURL", iframeURL);
  if1.setVisible(true);
  return null;
<af:inlineFrame binding="#{backingBeanScope.extractoNotasBB.if1}"
                source="#{viewScope['iframeURL']}"
                shortDesc="Listado pdf" visible="false" partialTriggers="cb1"/>
Dimitar
P.S. It is better to use the "actionListener" attribute of the command button instead of the "action" attribute since you are not going to navigate anywhere. Also it is better to use "rendered" attribute of <af:inlineFrame> instead of "visible", because if you use "visible" the IFrame's rendition is always prepared (even if it is not being displayed), which is unnecessary overhead. The example below has added a "Hide Frame" button and has made everything declaratively:
<af:commandButton id="cb1" text="Show Frame" partialSubmit="true">
  <af:setPropertyListener from="#{backingBeanScope.extractNotasBB.URLIframe}" to="#{viewScope['iframeURL']}" type="action"/>
</af:commandButton>
<af:commandButton id="cb2" text="Hide Frame" partialSubmit="true">
  <af:setPropertyListener from="#{null}" to="#{viewScope['iframeURL']}" type="action"/>
</af:commandButton>
<af:panelGroupLayout partialTriggers="cb1 cb2">
  <af:inlineFrame source="#{viewScope['iframeURL']}" rendered="#{viewScope['iframeURL']!=null}"/>
</af:panelGroupLayout>

Similar Messages

  • SharePoint Designer workflow executing same lines\steps multiple time in single instance

    I am working SharePoint 2010 workflow. I am facing an issue.
    Problem:
    1) I have few workflows running on different situation
    2) Out of all workflows one is set to execute on "Item Created"
    3) This workflow having some lines to execute and then create an item and then wait for a change in field value.
    4) Expectation: This should create one instance and execute the lines\steps only once and wait for field change.
    5) Actual Out-Come: The workflow is executing the lines\steps three times in a single instance.
    6) The workflow history is showing the three time execution of all lines\steps using log to history.
    7) It is a SPD workflow so there is no while loop. but it behaving like while loop.
    8) On create Item, we are creating task, so it is creating three tasks. It is sending three emails and also we are appending text in title so text is appended three times.
    I did a lot of research but not able to find the solution.
    Please help.
    - Khan Abubakar Disclaimer: The opinions expressed herein are my own personal opinions and do not represent any others view in anyway.

    Hi Khan,
    According to your description, my understanding is that your workflow executed some actions three times.
    What actions did you for the problematic actions?
    If they are "Start Approval Process" action, please check whether there are multiple approvers for tasks. If yes, the action will create one task for each approver.
    Please create a new list and a new workflow based on the problematic workflow, test again, compare the result.
    For reproducing your issue, I suggest you provide more information about your list and workflow (detailed actions or some screenshots). It will make others in the forum easy to find a solution for you.
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • I can not activate my verizon iphone 4, i restored to factory settings because my iphone wouldnt update to ios6 after trying three times and now that i restored it its saying that it cant activate my phone, please help

    i can not activate my verizon iphone 4, i restored to factory settings because my iphone wouldnt update to ios6 after trying three times and now that i restored it its saying that it cant activate my phone, please help

    This is a Windows error. See this support document for help. iOS: Unknown error containing '0xE' when connecting to a Windows PC

  • HT4557 I'm trying to set up my iphone for home sharing and its says unable to set up home sharing. My password is correct, I've tried it three times with the same message. Any help?

    I'm trying to set up my iphone for home sharing and its says unable to set up home sharing. My password is correct, I've tried it three times with the same message. Any help?

    Hello daltonfromgbr
    Check out the article below to troubleshoot you issue with connecting to Home Sharing. It will walk you through checking firewall settings as well as your network connection.
    Troubleshooting Home Sharing
    http://support.apple.com/kb/ts2972
    Regards,
    -Norm G.

  • USELESS ONLINE HELP FACILITIES For all the amazing productivity aids that APPLE offers the world I have to report that their online support service is worse than useless and has recently been the source of immense time wasting and irritation.

    USELESS ONLINE HELP FACILITIES
    For all the amazing productivity aids that APPLE offers the world I have to report that their online support service is worse than useless and has recently been the source of immense time wasting and irritation.
    Incident 1. Since many months attempts to download new and updated APPs produced a response – Apple ID Disabled. I had no time to consult an APPLE Store due to work in distant lands. When I finally visited yesterday I was told that as my IPAD has been reported as stolen, and APPLE in its wisdom had blocked its usage! I am not sure how they became so misinformed and nobody every advised me while with a few swift moves APPLE could have located me by email address or SKYPE.
    Incident 2. Once the above anomaly had been fixed I tried to down load a newspaper and diligently input my address, credit card number and personal data. Repeatedly I was advised that my Credit Card was invalid and my postal code was incorrect! Really!
    I was left to guess that having moved from UK to the US I should have advised APPLE! Not being told of this requirement brought about a second visit to APPLE Store in the same day to waste both mine and their time with a routine anomaly. How parochial in the context of a globalized world!
    In each case I tried to resolve the issues using online access to a help line and by calling by phone at the numbers on the APPLE Website. In each of four separate occasions I diligently went through the routine and  ended up with a message that thanked me for contacting Apple followed by a polite ‘Good Bye’!
    In desperation I went to an Apple Store for the second time in a day as it is close to where I live when I am not working. On both occasions I was courteously attended to by Apple Staff.
    However, my work is usually far away from the US and it is generally many thousands of miles to the nearest Apple Store therefore online help is viewed as imperative if one is to resolve issues away from home.
    Why can Apple not provide a clearly marked EMAIL address and Telephone number at a Help Desk with real people to respond to requests for help? It would cost nothing in relative terms and might restore my high level of anti-APPLE sentiment that these two recent events have provoked.
    Peter Hanney
    Miami, Fl.

    Why can Apple not provide a clearly marked EMAIL address and Telephone number at a Help Desk with real people to respond to requests for help?
    If that is your question, the answer is at the bottom right of this web page. It is clearly marked "Contact Us" and is the best way, really the only way, to contact Apple.
    If there were a publicly posted email address for concerns such as yours, it would be quickly filled with spam in about three minutes, thereby becoming instantly useless to you and everyone else. Apple would need to change it hourly, if not more often. That is also the reason you ought not to post your name, location, and what appears to be your iPad's serial number on this publicly viewable website.
    Apple does not respond here and I can find no other questions for your fellow Apple users to answer.

  • Component painted three times

    Hello
    I have an AWT application containing a frame F1. This frame contains combos and buttons,
    and another frame F2. Inside this frame F2, I have a TableBean component (GNU table for
    AWT). When I show (only first time) frame F1, table component is painted three times. How can I
    to dectect this component is already painted?. I don�t know how to use paint() or update().
    Many thanks for your help.
    tablaDatosListadoComercio = new tstuder.java.lib.component.table.Table(colDefs,linesComercio);
    tablaDatosListadoComercio.getTitlebar().setBackground(java.awt.Color.blue);
    tablaDatosListadoComercio.getTitlebar().setForeground(java.awt.Color.white);
    tablaDatosListadoComercio.setSelectionMode(tstuder.java.lib.component.table.DataArea.SELECT_ONE);
    tablaDatosListadoComercio.setHorizontalScrollMode(tstuder.java.lib.component.table.Table.HORIZONTAL_SCROLLBAR_OFF);
    panelTablaLstComercio.add(tablaDatosListadoComercio);
    ((java.awt.CardLayout)getLayout()).show(this,"panelDatosListadoComercio");

    I was talking with a co-worker about this kind of issue just yesterday - this isn't a simple problem at all.
    Basically, you (the application programmer) don't have a lot of control over how many times your paint method is called. The Toolkit (AWT) is responsible for deciding when a component's paint method is called. You, as the application programmer, can hint to AWT that a component needs repainting by calling repaint.
    Do not call paint yourself - AWT will call your paint method whenever it decides it wants to. It has in its own mind the state of everything, and which component needs to be repainted when. Controlling multiple repaints is a difficult problem for any GUI toolkit.
    So here's a bit of theory which will hopefully enlighten, rather than confuse, you.
    What you're doing when building an application is creating a bunch of objects that are meant to play together. The rules of the object behaviors are defined by the AWT (and Swing) Component classes. GUI applications are driven by the dispatch of events to them by the underlying system (in this case, Java, AWT and Swing). The bulk of the code being executed to do a GUI application is the underlying system (Java, AWT and Swing) since it's that underlying system that provides the basic framework for the application to exist in the first place.
    - David

  • After uploading our phones with the latest update, we have noticed that the battery life has deminished considerably.  I now have to charge my phone overnight and two or three times a day. Prior to the update, my battery life lasted me at least a full day

    After uploading our phones with the latest update, we have noticed that the battery life has deminished considerably.  I now have to charge my phone overnight and two or three times a day. Prior to the update, my battery life lasted me at least a full day.  We have several phones in our office and the ones that have updated (4) now have issue holding a charge/battery life. I really liked this phone and can not believe that you are now going to charge us $79 a battery to fix what is most definately a problem with your latest update.  I know other people outside of our company that are having the same problem. Not to mention when I called AT&T it was confirmed to me that they are hearing the same issue and then some from other customers as well.  Your own people, once I talked to them earlier today, told me they are showing a history of issues that are showing up after the update was put in place. Of course she tried to say, "Maybe the age of the battery and the update both contributed".  Whatever. 
    I want you all to know how disappointed I am in your company for the handling of this issue.  I always thought "Apple" was the line I didn't have to worry about having any types of issue. And that you all would stand behined your product 100%. Now I am not so sure.   
    I would love to hear back from your company on how you perceive the issue with all of these phones that prior to the update didn't have any issues and how after the update THEY ARE NOW having issues.  I do not believe this was an issue due to the age of a battery and that was pretty lame to say so.  It was fine and now its not.
    Please feel free to contact me and help me figure out a way to pay for all of the batteries that will be needed for our company to contiue doing business as needed.
    Thank you.
    Web Address (URL):
    5106 McNarney

    Sorry this is a user to user technical forum.  There is NO APPLE here as stated in the term of use when you signed up for this forum.
    here are some battery tips
    http://osxdaily.com/2013/09/19/ios-7-battery-life-fix/
    http://www.apple.com/batteries/iphone.html

  • I've factory reset my iPhone twice, about to be three times. has anyone else had issues that force them to factory reset their phones.

    So I got my iPhone 6 on the day it came out and it has been the most frustrating experience I've ever had with apple.  I've had to factory reset my phone twice, probably about to be three times once i get home from work.  The first time was trying to transfer my stuff from my old iPhone and right after it finished my iPhone 6 turned itself off then turned on to the boot up screen (the one with the apple logo) and then shut off then did the same thing.  this forced my to factory reset my new iphone literally the day i got it.  The next day i was trying to upload my music and basically the same thing happened again, forcing me to reset my phone for a second time.  Just now (its been two weeks that I've owned my new phone)i tried to get on twitter and the app crashed then my phone reset itself and when it loaded to the unlock screen, instead of my background it was just a black screen with the time and the unlock slide.  when i unlocked it, it went back to the normal background and the main screen.  Because whenever i would turn off (not power off, but put it to sleep) the phone and turn it back on it would do the same thing.  I decided to restart it (actually turn it completely off and then back on) and now it will show the boot up screen then turn off.  I understand that there is the solution of factory resetting my iPhone, but 3 times in 2 weeks is pretty unacceptable, seeing as i had a 4s for almost 3 years and never once had to factory reset it and its also incredibly annoying to have to redownload all of my stuff.  Has anyone else had this problem? is there anyway i can keep this from continuing to happen?  is it a software issue or is it the phone itself that is messing up?

    WiseJD, thank you for your suggestions.  Well the first two restorations were the first and second day (9/19 and 9/20) that i had my 6 and both times i chose to restore is as new.  since then there haven't been any issues until now.  granted the first time my phone messed up was after i used the At&t transfer app which made me think it couldve been something that corrupted my device.  the second time though started with me attempting to download music from the itunes store app on the phone.  for whatever reason it would download but not but it wouldnt process and install the music.  Then i tried to download it from my computer and thats when the second screw up occurred. that time i dont think it was an issue of my phone being corrupted because it was already acting strangely before i ever plugged it into my computer.  This third time, i'm at work so i havent been able to do anything about it, i wasnt downloading anything and my phone was not hooked up to a computer, i simply tried to open twitter and then all this happened. and it has been a solid almost two weeks without incident which makes me think its my phone and not corrupt files.  also looking at forums, not just these but other online, i haven't really seen anyone with the same problem which adds to my thought that its a problem with my phone. 
    Just to be clear, the first time this happened, the iphone would display the boot up screen then shut off then turn on and display the boot up screen, then shut of and kept going on like that until i put my iphone into recovery mode and factory reset it.  the second time the iphone would display the boot up screen and then shut off, but wouldnt turn on unless i pressed the power button again.  this third time is the same story.  i dont know if this makes a difference or if its symptomatic of different problems but i figured it wouldnt hurt to explain in detail the issues that happened each separate time.
    Also on a side note, i havent done anything like jailbreak it, mess with it download or any third party apps not on the app store.

  • Laptop won't turn on - the power adapter light flashes three times? G62 b29SA

    I've been replacing the fan in my friend's laptop. I had a problem with the trackpad not working after I put it back together and that problem is not yet resolved but I have another problem preventing me from getting further. Now when I press the on button, the power adapter light (next to the socket for the external power) flashes three times and that's all. It flashes again three times every time I press the power button. It does this even with an external power source plugged in (I'm pretty sure that it's supposed to just stay on constantly when the charger is plugged in but the power source I have is a universal one set to 19 V - it has powered up with this plugged in before but I don't know whether it was taking charge from it). Any advice?
    This question was solved.
    View Solution.

    I got the charger from my friend and now it boots up just fine. There seem to be many meanings to the three flashes based on my Internet searches but in this case it appears that it's some way of indicating a low battery.

  • My os x mavericks got crashed accidentely while installing the windows 8 and I am trying to reinstall using recovery console, but its take very long time and forcing me to download OS X 8 from internet, is there any where can I get offline download of OS.

    My os x mavericks got crashed accidentely while installing the windows 8 and I am trying to reinstall using recovery console, but its take very long time and forcing me to download OS X mountain lion from internet, is there any where can I get offline download of OS file where I can install directely OS X Mavericks.

    Hi, original poster here. I did not realize this would generate more discussion so I never checked back. I still had my warranty, so I took it to the store and got it repaired. The original problem I had was a screen with this icon flashing when I attempted to boot it up:
    When I took it to the store, they told me that my computer was unable to communicate with the hard drive. I had this same problem three times in two months where this screen reappeared. Each time I went back to the store and they said the cause was different, but they were all hardware issues that physically made it impossible to communicate with the hard drive. After the third time, they simply replaced my laptop and I haven't had the same problem.
    So in short: The reason you can't reinstall or move anything when you encounter this screen appears to be because nothing can communicate with the hard drive in the first place. You can't reach the disk or anything on it. So I don't believe it's possible to do anything besides take it to a physical store and have it fixed.

  • I have updated my Adobe Acrobat plugin three times today but the firefox plugin check says it is out of date, a problem as I repeatedly encounter "The Adobe Acrobat plugin has crashed" when I attempt to download pdfs.

    I am attempting to download pdf's from a library search on JSTOR. I can view the pdf but cannot download them as they say "The Adobe Acrobat plugin has crashed". I have been to the firefox plugin check and have updated Adobe Acrobat three times in the last hour, but it still says my plugin is not up to date. This leads me to believe that this may be the source of my crash errors.
    I updated Adobe Flash from the same firefox plugin check page and after one try it now says I am up to date, so my system is obviously accepting these updates.
    Help!!!!!

    The following solution is useful for people who have the full version of Acrobat 9, but are getting the error message "the Adobe Acrobat plugin has crashed". You probably want the features in the full version of Acrobat, but still need to be able to open PDF files from your Firefox browser.
    Go to Tools > Options > Applications. Scroll down and change all of the Adobe Acrobat files to open with Acrobat 9 (or whatever version you have) instead of "Use Adobe Acrobat (in Firefox)". This may not be as handy as having it use Acrobat inside the Firefox browser, but it will still let you open PDF files without having to uninstall the full version of Acrobat. Hope this helps.

  • I have a 6 week old 4s running 5.1.1 Just started recieving "failed sim" message the other day. This leaves me with no cell service . Service comes back after shutting down and restarting. at least until message reaapears. Has happened three times in two

    I have a 6 week old 4s running 5.1.1. Started recieving "failed sim" message yesterday. this leaves me with no cell service. Shutting down and turning back own seems to alleviate problem temporarily. It has happened three times now. Help.

    Sounds like you have a battry issue but don't want to believe it.
    If a car was running fine on one tank of gas, then you filled it up with another tank of gas and it began to run funny, one might suspect that tank of gas. But let's just say coincidence blew a valve-- would you think the new tank of gas was the culprit?
    BUT WAIT!! It just might have been! The gas could have been of higher octane and put more more strain on the valves; you know, like going from 87 octane (OS6) to 93 octane (OS7) and showing you the engine was on the edge of compromise.
    Sometimes you have to go with common sense. If everything else is ruled out, it must be the battery. And if it runs fine one moment in OS6 but immediately ***** in OS7, I'd believe my battery was suspect-- though comfy-- in OS6 but the OS7 showed its true power.
    Moreover, if you had the answer-- or didn't want to believe someone's more competent advice-- why did you even call?  You've already shown that you don't know much when you asked if you could go backwards after setting up the new OS as a new phone.
    Additonally, if you're such the know-it-all, but yourself the $29 battery and put it in yourself. It's a piece of cake.
    <Edited By Host>

  • When saving a document, pages unexpectedly quit three times in a row.  Any idea why?

    When I was saving a document I previously duplicated, Pages unexpectedly quit three times in a row.  Ideas?

    Welcome to the Apple Discussions.
    Are the photos still visible in the Library? If so, Back Up and try rebuild the library: hold down the apple and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild.
    It’s possible that these crashes have damaged the database file. If the above does not help:
    Try these in order - from best option on down...
    1. Do you have an up-to-date back up? If so, try copy the library6.iphoto file from the back up to the iPhoto Library allowing it to overwrite the damaged file.
    2. Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    3. If neither of these work then you'll need to create and populate a new library.
    To create and populate a new library:
    Note this will give you a working library with the same Rolls and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
    Move the iPhoto Library to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library on your desktop and find the Originals folder. From the Originals folder drag the individual Roll Folders to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption.
    Regards
    TD

  • ? about executing servlet at a specific time

    I have a need to execute a servlet once per day unattended to do a database
              function. Any idea on this (must be done from servlet without sucking up cpu
              time).
              Tom K.
              

    I agree with Robert. You shouldn't be creating your own threads in the server vm.
              Instead you should rely on the time service api.
              Prasad
              Robert Patrick wrote:
              > Of course, this means that your startup class either starts its own thread or
              > monopolizes one of the servers execute threads. The WebLogic Time service is
              > probably the suggested way of accomplishing this...
              >
              > Just my two cents,
              > Robert
              >
              > Marc Mazas wrote:
              >
              > > You can write a startup servlet which iterates on computing the
              > > remaining delay and sleeping for this time with the standard wait(...)
              > > java call.
              > >
              > > Tom Kochanowicz wrote:
              > > >
              > > > I have a need to execute a servlet once per day unattended to do a database
              > > > function. Any idea on this (must be done from servlet without sucking up cpu
              > > > time).
              > > >
              > > > Tom K.
              

  • How DAC decodes its Source System Parameters into Informatica mappings??

    Hi All,
    I would like to know about "How DAC decodes its Source System Parameters into Informatica mappings??".
    Is it an informatica mapping? or through a file? or its internal to DAC server?
    Can we say the DAC server to decode it differently i.e. can we costomize the decode process? For example
    $$START_DATE - i gave "Custom Format(1950-05-21 01.23.56) @MM/DD/YYYY" at dac - and it decodes as '05/21/1950' but I want it to decode as TO_DATE('05/21/1950','MM/DD/YYYY') is this possible?
    Note that the informatica mapping takes the first decoding '05/21/1950' as number and through a sql error.....
    Thanks for your time......
    DK

    Please set the values of $$FILTER_BY_SET_OF_BOOKS_ID, $$SET_OF_BOOKS_ID_LIST in DAC and check if the values get reflected in the parameter files that DAC generates for informatica at run time.
    If this does'nt work, see if the BI services were restarted after doing change in the parameter file. The services need to be restarted in order to reflect the change.

Maybe you are looking for

  • Why can't i find a tv show I purchased on iTunes?

    I purchased Homeland Season 1 on iTunes in January.  Since then I have updated my Apple TV software (today) and now it no longer appears in my "Purchased" TV shows on the apple TV.  I can see the purchase history on my iTunes account on my Mac but ca

  • Content retrieved through RIDC after add/edit/delete is not updated

    Hi There is a functionality such that a user is shown the content details like folder name and content under the folder name to be displayed on the portal. Basically, the metadata of the folder and content need to be displayed and add/edit/delete ope

  • IPod on iPad not connecting with appletv

    I want to play the iPod on the iPad on my apple tv but I can't get it to work.  I use the remote button to sync with The computer and then to Apple tv.  But i want to play songs from the iPad through apple tv.  I am able to click on the button for ap

  • FINSTA01 IDOC mapping

    Hi , Are there any standard mappings available for FINSTA file format to FINSTA01 IDOC ? Regards Saravana

  • Web dynpro ALV table cell popin

    from my understanding, it is possible to create a cell popin for a standard table. but now i wonder whether is it possible to create a cell popin for an ALV table?