Simple question... refresh page

Hi I am trying to do this :
htp.p('<script>window.location.reload();</script>');
And for some reason its not working, it used to, but now the page blinks when I run it.
Is there a portal procedure to refresh a page so I can substitute this java script?

Hi,
look at the pool component
<af:poll interval="1" pollListener="#{PollBean.pollListener}">
... anything to refresh here ...
</af:poll>
Note that the pollListener="#{PollBean.pollListener} references a method in the managed bean so I can work with the polling on teh server side (e.g. to prepare data)
Frank

Similar Messages

  • Current Year and current month?simple question

    How can i get four Digit current Year and two digit current month. So if is march it should get me as 03 and the Year as 2002. Please do help me, is a simple question isn't it ?. Thanks for your earliest response.
    Thank you.

    i have a directory structre of the format
    REPTS2000209/E200209-98000001
    in which 2002 is current YEAR
    09 is current month
    and 9800001 is the code i would submit(list box) from a form
    so what i need is a program that can generate the above path and open that particular PDF file
    so basically E200209-98000001.pdf is the PDF file.
    i am submitting it from JSP page. PLEASE HELP ME how can i program.

  • Simple question:  I want to use iCloud as a back up disk for my documents folder.  How can I do this?  If I cannot do this, why am I paying for access to "the cloud?"

    Simple question:  I want to use iCloud as a back up disk for my documents folder.  How can I do this?  If I cannot do this, why am I paying for access to "the cloud?"

    iCloud does not provide general file storage or backup, so you cannot back up your Documents folder using it. You will need to find a third-party alternative - this page examines some options (some are free):
    http://rfwilmut.net/missing3
    iCloud at basic level, with 5GB is storage, is free: you only pay anything if you want to increase the storage space.

  • How can i create a simple netweaver portal page that shows text and images?

    Hi,
    i have a simple question or maybe it's not so simple.
    I am completly new to SAP Netweaver 2004s Portal. At the moment i'm trying to understand the struture of the whole thing. I already know how to create roles, worksets and pages and i know how to combine the different elements so a user can acces them.
    And now i want to create a simple portal page that shows text and images. Is it possible to create such a simple page with the portal content studio? What iView do i have to use?
    (I just want to create a start page with a welcome text on it.)

    Marc
    Considering that you would any ways go ahead with complex development from this simple start page I recommend create a Web dynpro Iview for your start page (include the Iview in your page).
    For putting the contents use Netweaver Developer studio to build a simple start page application and put your static text on that Iview.
    Please go through the following log after your NWDS development is over - This will make you comfortable for further challenging work.
    http://help.sap.com/saphelp_erp2005/helpdata/en/b7/ca934257a5c96ae10000000a155106/frameset.htm
    Do reward points if this helps and let me know of you want anything more.

  • A few simple questions from a new Iphone user

    Hi a few simple questions, just got an iphone 2g - 2nd hand so not really sure what to expect. Anyway I guess my first question is about mine sometimes being a little slow - when I look at contacts and sometimes when sending a txt it slows down/freezes a little - normal?
    Secondly Edge - I havent used it much but when I have its been painfully slow, is this normal - is it always really slow - cause I had read despite not being 3g Edge was actually pretty fast - what exactly is data roaming by the way? I mean I have been switched off as basically I dont wanna use the internet till next month when they change my contract to one I get unlimited access on - is that right?
    Im having a problems syncing videos to it - it just wont sync some but will others and Im not sure why - theyre same file type and they used to sync to my ipod touch but now they wont for some reason
    Cheers

    I have the origina iPhone.
    Downloaded 2.0, synced phone with everything UNchecked. Installed 2.0. Synced with all the options checked to reload my data. The iPhone has been great. Noticed a little lag when I opened contacts. Installed the new upgrade, and everything is back, no lag.
    Edge is Edge and nothing more. It is slow compared to a strong 3g signal. But is liveable most of the time. Heavy traffic can slow it down to barely usable.
    My four wheel drive club has a web site with a large photo section. I was standing out in the middle of parking lot in San Jose, Ca and showing a friend some photos. It opens up a page of small picts to choose from. Select a print and it enlarges, He was amazed at how fast they appeard. Especially given the quantity of photos.

  • Jbutton to open a htm file in browser - simple question

    not sure where to look for this, but its a simple question
    I just want to get a jbutton (from a jFrame)to open a local htm page eg:
    When pressing the button open:
    C:\Documents and Settings\****\My Documents\profile.htm
    - Open this with any browser
    any pointers to look in the right direction, couldn't find it with search
    I dont want to use a JEditorPane to display the htm, just open any browser
    Edited by: Mr_Tuition on Dec 7, 2007 3:40 AM

    I also wont be able to use it to open an local file which will be set up differently on each computer:
    C:\\Documents and Settings\\***\\My Documents\\JavaProjX\\Preview\\profile.htmI want to use just: Preview\\profile.htm so it opens from the same location with different users, but
    try { Process process = Runtime.getRuntime().exec("C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE Preview\\profile.htm");}
         catch(IOException e) { System.out.println("could open IE");}opens: http://preview/profile.htm (incorrect location)
    I have just found I can use System.getProperty("user.dir"); to get the location of my program (i think)
    Edited by: Mr_Tuition on Dec 7, 2007 4:25 AM

  • A few simple questions

    Hi, the company I work for will soon be doing some work with OS X server and in an effort to familiarise myself with the software I have set it up at my home on an old blue and white G3 (sadly the best hardware I have to spare right now).
    I would like to configure the server to share the internet, serve web pages and an FTP server and a few other basic tasks, but I keep running into trouble, and would appreciate some feedback on these simple questions. My setup is as follows:
    Sympatico connection via ethernet DSL modem (server connects via PPPoE)
    2nd NIC on server connected to a 5 port switch
    Powermac G5 and Windows XP workstations (currently only testing with XP box)
    I have been unable to get the server to share the internet connection, the DHCP server does not seem to be serving IPs (although if I map a static address it works) but either way I cannot browse.
    My questions are:
    Will this setup work with the server connecting via PPPoE or does it require a static IP from my ISP?
    Do I have to configure DNS or can I just enter my ISP's DNS IPs instead?
    Is there anyway to return the server configuration to default settings? I tried using Gateway Setup Assistant which didn't work, and I'm worried that it's dropped in some settings I'm not aware of.
    I've done some reading on here and while I understand it's easier to let a $50 Dlink router handle NAT I'd like to understand this so I can better advise my client.
    Many thanks in advance,
    Toby

    It is entirely possible to run what you describe, but it's hard to tell what state it's in now (and therefore what changes are needed to make it work).
    In general, the steps you should follow are:
    1) Get the public network side working so the server can talk to the outside world.
    2) Get the private network working between the server and the clients.
    3) Run gateway assistant, or manually configure the various parts using Server Admin.
    The system shouldn't care whether you're using PPPoE, DHCP, static addresses, or even dialup for the public link, so that's not an issue, and neither should DNS.
    Other things to check include the firewall on the server (turn it off during this setup to make sure it's not just a firewall configuration issue).
    Also, make sure you're using different subnets on the public and private networks, e.g. don't try to have the server hand out public IP addresses to the clients - that won't work.
    Check that your basic network connectivity (e.g. ping) works between the various systems on the network. if the clients can't ping the gateway system then they're not going to go anywhere.

  • Simple question - make an image the original size

    Hello everyone. I have a very simple question. How do I make an image that I have inserted into a pages document display at the original image size. I have selected the image, brought up the inspector and selected the Graphic inspector but it does not seem to give you that option.
    You would have thought this would be easy wouldn't you? I am seriously considering going back to microsoft office at this rate!!!

    Hello
    Don't drop Pages for that
    If the picture is not at its original size a button is active.
    If the picture is at its original size the same button is greyed.
    If it is too simple, you may *go to "Provide Numbers Feedback" in the "Numbers" menu*, describe what you wish.
    Then, cross your fingers, and wait for iWork'09
    Yvan KOENIG (from FRANCE jeudi 17 janvier 2008 22:17:18)

  • Simple Question Calling methods from Java files through JSP without JVM

    Hi.
    I've got a simple question (forigve my newbieness)...
    If I'm running Tomcat can I exectue a method in a compiled Java file from a JSP page without having the JVM installed on the server?
    Any thoughts or additional comments would be appreciated.
    Many thanks.

    No... but that's because you can't run Tomcat without
    a JVM installed on the server.
    If you are running Tomcat, you are running a JVM for
    the JSP pages to run in, in which case, yes, the JSP
    pages can call the other Java code... as long as it's
    in the classpath.Thanks a lot for the replies.
    So just to check, if I sign up with a hosting company that offers Tomcat then the JVM will be installed on the server and I can call other Java code as long as it's in the classpath?
    I just want to make sure before I sign up with a hosting company =D
    Thanks again!

  • Simple Question - loginblock.ascx

    Hi,
    I apologize in advance for what I'm sure is a simple question!.
    I'm not familiar with C# at all and am pretty new to ASP.NET, therefore I'm keeping the level of customization to a minimum during phase 1 of our website. However, I would like to add a remember me checkbox to the loginblock.ascx. I have followed the normal asp rules for adding this checkbox to the layouttemplate but it makes no difference to whether a user is remembered. Looking at the code it would seem that the remember me value is always passed as false:
    protected void loginMain_LoggedIn(object sender, EventArgs e) {
            NPUser user = new NPUser(loginMain.UserName);
            ((NPBasePage)Page).Login(user.UserID, user.AccountID, false);
    All I would like to do therefore is control that value with a checkbox, so I thought this code would work:
    protected void loginMain_LoggedIn(object sender, EventArgs e) {
            NPUser user = new NPUser(loginMain.UserName);
            ((NPBasePage)Page).Login(user.UserID, user.AccountID, checkbox1.Checked);
    It doesnt, the control no longer loads. As a matter of interest I replaced checkbox1.checked with other controls on the page, and with the exception of the login and main panels, none of the other controls could be referenced either without generating an error. I'm obviously missing something fairly fundamental here, and would appreciate any help.
    Thanks!.

    I have manually changed the value to true, and it triggers the process that automatically logs a user on at the next visit.
    This is currenty where my checkbox resides, although it I have moved it around to see if it made any difference!.
    <asp:Login ID="loginMain" runat="server" OnLoginError="loginMain_LoginError"
        OnLoggedIn="loginMain_LoggedIn"   >
        <LayoutTemplate>
        <table class="nptable" style="width: 265px; border-top-style: none; border-right-style: none; border-left-style: none; background-color: #c8bb89; border-bottom: white 5px solid; padding-left: 5px; ">
            <tr>
                <td class="npbody" style="height: 25px">
                 <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" Font-Bold="true" Font-Size="11px">User Name:</asp:Label><br/>
                 <asp:TextBox ID="UserName" runat="server" Width="110px" BackColor="White"></asp:TextBox>
                </td>
                <td style="white-space:nowrap; height: 25px;" class="npbody">
                 <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password" Font-Bold="true" Font-Size="11px">Password:</asp:Label><br/>
                 <asp:TextBox ID="Password" runat="server" TextMode="Password" Width="80px"></asp:TextBox>
                 <asp:LinkButton ID="LoginButton" runat="server" CommandName="Login" Text="Log In"></asp:LinkButton>
                </td>
            </tr>
            <tr>
             <td colspan="2" style="height: 14px">
                <asp:CheckBox ID="checkbox1" runat="server" ></asp:CheckBox>
            </td>
            </tr>
        </table>
        </LayoutTemplate>
    </asp:Login>

  • A simple question about performance!

    Hi! I have a simple question about performance. Suppouse that you have a servlet or a class with DB access, and you need to use a value several times in that page. What is best, to assign the value from say, a resultset or a request.getParameter() to a variable or to call the resultset or the request every time you need to retrieve that value? Which option uses less memory, which is faster, etc.?
    Hoping the best fou u
    Raul

    If you need more values from a db, the best is to open some connections (connection pool) and use the for accessing the db.
    To get the data only once, open the connection, get the data, store the data whereever you want: variable (class), hidden control (if you want to send from one page to another by request) and close the connection as quicky as possible.
    The advantage of the first method is that the most time consuming activity (connections opening) is done only once.

  • How to ensure that refreshed page is displayed after an update?

    I have a page with “Form” region. I’ve used “Table” for “Create a data entry form based on”. The form works as it should, but I have set the same page to go to after “Save” or “Apply Changes” button is pressed. Now whenever I change any field at the page via my form I get back to the same page, but the changes are NOT visible. I need to go to a different page and then back to my page with table form to see new/updated data.
    Is there a way of enforcing the refresh/re-query of the data after I click on Apply Changes/Save button?
    jarola has suggested the following topic: Branch to URL identify session and record ID
    However, when I follow the suggestion and add "Optional URL Redirect" to the same page (76) for "Apply Changes" button, and configure "Set These Items" with "With These Values" then the values entered via the form are NOT saved at all. If I remove "Optional URL Redirect" (I set "Target is a" to "- No Target -") then the data is at least saved when I click on "Apply Changes".
    Thank you for your time.
    Daniel

    I am gathering that what you want is for the user to make some changes, save the data, and be left with a refreshed page showing the new values, right?
    I order to save the data, the form usually has to perform some kind of submit action. Therefore, do not use a URL redirect. The only time you can use that is if your URL redirect calls javascript which in turn does a submit. But if you just redirect, no submit is done.
    Make sure whatever the user does to initiate processing is doing a submit. This usually is by clicking a button whose action is "no target" (this equates to some sort of submit action).
    Then, make sure this submit action invokes whatever process it is that does the save to the database. Check the row processng that was created during the wizard creation of the form and make sure that any conditions on it are such that it fires based on your request value or the button in question being pressed.
    (Actually this brings up a question...if after the save action, can you see updated data in the database via SQL*Plus or SQL*Developer (or whatever database query tool) but just not in Apex? This will at least tell you if the data is being saved and it's just an application presentation issue or not.)
    Then, make sure any proper page branches are firing. Again, look at the conditions and/or button-pressed settings. I think for this sort of thing I would clear the cache for your page via the page branch settings, and then do a "set these items..." and "with these values..." such that you are setting the PK values of the record with the existing PK values of the record you are dealing with. (I guess this assumes this form does the usual automated row fetch during loading if the PK values are not null. Is this the case?)

  • Simple question here.......

    Hi all,
    i have an simple question here, might be stupid...
    once a user makes a http connection to web sever, how can server send message to client upon some events happened so that the client can update the latest things and do not need to click Refresh button in browser explicitly.
    Thanks for any clue..

    I don't think you can. After a client gets the response from the server the connection closes. That is the whole concept behind the client/server relationship used by web servers.
    The closest thing you can do is have the client timed to reopen the connection (basically automatically click the refresh button) at set intervals.

  • Can not refresh page after save properly(When not saving master record)

    I am using jdeveloper 11g R2 (11.1.2.3) JSF Facelet
    In some use case I have Address as master table and Person as detail table
    For some business reason I need to don't save same addresses
    eg:
    If +1 Test St+ is in database already and new user coming and adding this address with new person
    I need to use the row in database not creating a new address
    I do saving in doDML method of Address with some hashing algorithm and it is fine
    My problem is that I can not refresh page after save properly
    User coming to page think Adding a new address and a new person but in fact no new
    address added because of business I describe above
    Any ideas how I can implement this?
    Appreciate that
    Regards
    Mohsen

    Hi,
    from your description it is not clear why the page doesn't refresh. It could be a problem in your implementation code - who knows. What if you perform the address check on a command button that actually submits the new address? If the check returns true (address exists) you would call row.refresh(forget new row); and re-query the view object so the address coming from the database is displayed. If you wanted to use the doDML then yuou need to be aware that doDML doesn't help removing the row the user created. It just ignores the database update but the entity is still around, which in my suggested solution wont be the case.
    Frank

  • Refresh page but SAVE USER INPUT in tabular form WITHOUT UPDATE

    Hi,
    When there is a tabular form in the page and user refreshes it (in anyway) tabular form's elements are always computed with values from the table in db. Can we somehow save user input in fields so that after refreshing page user will see what he/she has typed but not submitted to db?
    Regards,
    Tom

    Hello Andy,
    Let me introduce you to the problem.
    There is a tabular form based on a source table. User modifies the data and after he/she clicks Submit button the validation procedure is being run before MRU. If the result of validation is positive then MRU is run otherwise data should not be submitted to db and user should be informed about the result. Moreover, he/she should see the invalid data in fields. Not the correct one from db.
    Is there any way to save a session state of these fields or of a whole tabular form? I cannot save the data in other table in db.
    User cannot click 'Add row' several times in my app because after he clicks it once then the button disappears and appears again only when he/she clicks 'Submit' first (so after validation procedure).
    Maybe there is some way to store fields' values in memory and then compute the form when page is loading again?
    Imagine the situation that there are 100 rows in tabular form and user modifies it for one hour, clicks Submit, validation result is negative and his/her whole one hour work is lost, because the form has been refreshed according to what is stored in db. Such situation should never occur.
    Regards,
    Tom

  • This might be a simple question.   On those sites that do not differentiate between models when on the internet I.e. Facebook when after your comment and you cannot hit "enter" on an iPad for examp. And speed is slow to connect.  What is = to post?

    This might be a simple question. On those sites that do not differentiate between CRT, laptop, tablet etc. such as an iPad Mini and using the Facebook site fir example when going to post a comment and you do not have a enter button on the IPad and the speed is slow how do you get your comments to post if we do not have a enter button? 
    <Email Edited By Host>

    I don't have facebook so I cannot answer but for your personal security, I have asked the hosts to remove your e-mail address.   It is very unwise to publish this.

Maybe you are looking for

  • Can I intall a 32-bit version of Windows?

    I just purchased a C650D Laptop computer with 64-bit version of Windows 7.  I have a 32-bit version disc of Windows 7 at home from another computer.   Will I be able to use it to install a 32-bit version on the C650D?  Can I simply use the product co

  • Linksys AE1200 wifi adapter with Broadcom BCM43235 driver not working

    I followed the instructions on the Broadcom wireless page from ArchWiki, and I tried every method, and none worked at all. The interface never showed up with "ifconfig -a", and I could not get ndiswrapper to work with the windows drivers either. Any

  • What is the best way to recover from an error which requires a reconnect (e.g. ORA-01033)?

    We use 11g with the OCI library.  A session pool was created for the server process (OCISessionPoolCreate), and a session was obtained in a thread (OCISessionGet).  Is it sufficient to call OCISessionRelease(...,OCI_SESSRLS_DROPSESS) in the thread, a

  • Dynamic xml messages in alerts

    Hi, I have a ccBPM where I throw an alert on an application exception. I want to include the entire xml message in the alert and email it to assigned users. I tried doing a document-to-string conversion of the xml message and putting the string in al

  • SNMP trap for STP

    Hi, does command "snmp-server enable traps bridge newroot topologychange" work for all spanning tree modes (PVST, RPVST, MST)? i.e. will it be sent when there is new root in MST, or if there is new root in one VLAN in PVST+? Is there information in t