How to avoid Page Refreshes ?

Hi !
i'm new to jsp and i'm trying to avoid total page refreshes each time some data is posted.
in asp.net there is something called script callback. i'm looking for something either like dhtml DOM Objects or java Applet but in JSP.
thanks in advanced !!!

I don't think you can easily.
ASP.net can do that sort of thing because it is hotwired into the IE browser and windows environment.
The dhtml DOM objects are still available for client side manipulations, but you can't make any server calls without refreshing a page somewhere.
One workaround is to do your submits to an "invisible" frame and when that frame loads back copy the values with javascript. Its far from the optimal solution though.
Cheers,
evnafets

Similar Messages

  • How to avoid page break up in background

    hi all,
              i have developed new report i don't given page break statement .. in foreground it s coming correct  without any page break..
    when i have  schedule in background page break is coming please let me know how to avoid page break in background process.
    regards ,
    santosh
    Edited by: santosh jajur on Jul 8, 2009 12:16 PM
    Edited by: santosh jajur on Jul 8, 2009 12:46 PM

    Hi,
    When you view the output from the report run in batch you are presumably looking at the spool output.  Because you are viewing a preview of what is sent to the printer the spool applies page breaks based on the printer parameters.  When you run the report in dialog you view the report on the screen, and the spool is not involved, so no page breaks.
    If you print your report in dialog then review the spool you'll find it has the page break just as the background run has.
    Regards,
    Nick

  • How to avoid page break in row other that the option "Avoid page break"

    Hi Experts
    Is there any way to avoid a row to be broken or extended to other page. "Avoid page break" option can not be used as it creates a lots of white spaces.
    Regards
    Sourashree

    If it is related to visibility you can choose Draft Mode or change the Page size.

  • How to detect Page Refresh or Reload

    Hello experts, I want to detect if user refreshed a page by pressing F5 or browser's refresh button or by any other means. Is there any way to check it?
    I have written a PagePhaseListener from which I am navigating user to home page if the URL is not bookmarkable. I am determining if the URL is bookmarkable by checking if the value of a parameter "_bkm-state" of query string; for all bookmarkable URL the value of this parameter is true.
    Also I have a checking on "_afrWindowMode" and "_afrWindowId". I have seen if a page is visited by pressing browser's back/forward button these two parameter get set to the URL, by the oracle.adfinternal.view.faces.webapp.rich.RichWindowManager.
    Here is my PagePhaseListener:
    import java.util.HashMap;
    import java.util.Map;
    import javax.servlet.http.HttpServletRequest;
    import oracle.adf.controller.ControllerContext;
    import oracle.adf.controller.TaskFlowId;
    import oracle.adf.controller.v2.context.LifecycleContext;
    import oracle.adf.controller.v2.lifecycle.Lifecycle;
    import oracle.adf.controller.v2.lifecycle.PagePhaseEvent;
    import oracle.adf.controller.v2.lifecycle.PagePhaseListener;
    import oracle.adf.share.Environment;
    import oracle.adfinternal.controller.state.ControllerState;
    import oracle.adfinternal.controller.state.RootViewPortContextImpl;
    import org.apache.commons.lang3.StringUtils;
    import com.mhis.posm.web.application.manager.BookmarkManager;
    import com.mhis.posm.web.constant.TaskFlow;
    import com.mhis.posm.web.utils.UrlUtils;
    public class BookmarkInterceptingPagePhaseListener implements PagePhaseListener {
        public BookmarkInterceptingPagePhaseListener() {
            super();
           public void afterPhase(PagePhaseEvent event){
      @Override
      public void beforePhase(PagePhaseEvent event){
           if(event.getPhaseId() != Lifecycle.PREPARE_MODEL_ID) {
                return;
           LifecycleContext lifecycleContext = event.getLifecycleContext();
           Environment environment = lifecycleContext.getEnvironment();
           if(environment.getRequest() instanceof HttpServletRequest) {
                HttpServletRequest servletRequest = (HttpServletRequest)environment.getRequest();
                try {
                     ControllerState state = ControllerState.getInstance();
                     RootViewPortContextImpl rootViewPort = state.getCurrentRootViewPort();
                     if(StringUtils.equalsIgnoreCase(servletRequest.getMethod(),"GET") & StringUtils.contains(servletRequest.getRequestURI(),"adf.task-flow")) {   
                          boolean bookmarkable = Boolean.valueOf(UrlUtils.getParameterValue(servletRequest.getQueryString(),"_bkm-state"));             
                          boolean newWindow = StringUtils.isNotEmpty(UrlUtils.getParameterValue(servletRequest.getQueryString(),"_afrWindowMode")) || StringUtils.isNotEmpty(UrlUtils.getParameterValue(servletRequest.getQueryString(),"_afrWindowId"));             
                          boolean returnedFromUCM = StringUtils.isNotEmpty(UrlUtils.getParameterValue(servletRequest.getQueryString(),"fromUCM"));   
                          if(newWindow & !bookmarkable & !returnedFromUCM) {   
                               TaskFlow defaultTaskFlow = TaskFlow.CATALOG_HOME;        
                               TaskFlowId taskFlowId = new TaskFlowId(defaultTaskFlow.getDocument(), defaultTaskFlow.getId());        
                               Map<String,Object> params = new HashMap<String,Object>();   
                               params.put("_bkm-state",bookmarkable ? true : false);   
                              params.put("_bkm-id",BookmarkManager.getInstance().getBookmark());
                              rootViewPort.redirectToUrl(ControllerContext.getInstance().getTaskFlowURL(false, taskFlowId,params));   
                catch (Exception ex) {
                     ex.printStackTrace();   
    Now this method serves well for the following cases:
    If someone save the URL which is not bookmarkable for later usage.
    If someone copy non-bookmarkable URL to a new tab or new window.
    If someone try to access this non-bookmarkable page by pressing browser's back or forward button.
    But the drawback of this code is it is navigating to default home page if someone refresh the page which staying on a non-bookmarkable page.
    Any pointer would be very helpful for me to solve the problem.
    I am using JDeveloper 11.1.1.6.0.

    Hello,
    Yes  I am not keeping track of the last viewId.
    If I call RootViewPortContextImpl.getViewId() I can get the viewId.
    But there would be a problem.
    Say I stored the viewId in session. And the last visited viewId is "/catalog/home". Now while staying in "/catalog/home" in one tab user opened a tab and paste and go the URL of "/catalog/home". In that case also the viewId will be "catalog/home" and the URL will have "_afrWindowMode" and "_afrWindowId". I would have no way to distinguish between them. Isn't it?
    Tapas.

  • I would like to adjust how often a page refreshes itsel...is there a way to do this?

    I frequently have multiple windows at once, and find when going back to one I have to manually refresh the page to get the latest content.

    The Reload Every addon should work great for you. Learn more about it here: https://addons.mozilla.org/en-us/firefox/addon/reloadevery/ Just make sure to disable the Smart links feature it includes.

  • How to avoid table refresh on row selection

    Hi,
    I have a table where the row selection happens on selecting the check box in the first column of the row. The check box is bound to the transient Boolean attribute of my VO to support this functionality which is missing in new version of ADF. The selection is working fine, however I am facing the issue with table refresh. Everytime I click checkbox to select or unselect a row my whole table is getting refreshed which is very unusual for user point of view. This is my code for the checkbox column:
    <af:column sortProperty="isSelected" sortable="true"
    headerText="#{bindings.pricingObjects.hints.isSelected.label}"
    id="c4"
    inlineStyle='#{(row.isSelected)?"background-color: #E7E7E7":""};'>
    <af:selectBooleanCheckbox value="#{row.bindings.isSelected.inputValue}"
    required="#{bindings.pricingObjects.hints.isSelected.mandatory}"
    shortDesc="#{bindings.pricingObjects.hints.isSelected.tooltip}"
    id="it4" simple="true"
    autoSubmit="true">
    <f:validator binding="#{row.bindings.isSelected.validator}"/>
    </af:selectBooleanCheckbox>
    I have to keep autoSubmit="true" on selectBooleanCheckbox because the table has to change color of the row everytime the checkbox is selected or deselected. Also, there are multiple commandToolbarButton such as "Delete" which needs to be enabled/disabled depending on the row selection.
    Is there anyway, I can achieve this behaviour with minimal refresh of table?

    Hi Marge,
    Yes I do have Add and Delete toolbar button in the panelCollection and also set partialTrigger="tableId" on them. I need this partialTriggers because Delete button should enable/disable depending on number of rows added in the table. However, I tried removing them but it did not work for me, table is still refreshing. BUT this solution does work in combination of other solution i.e. removing ChangeEventPolicy="ppr" on the iterator. I need ppr because I have a form which is bound to the same iterator and should change on table selection. The design is like this,
    - Read-only Table on top
    - Editable Form below
    - Select the row in table and edit the fields in the form
    If I remove ppr then my form is not updating with the row selection.
    Regards,
    Afroz

  • How to avoid page validation in JSF / ADF

    In my form I have "cancel" button ( type="reset" ). But when I press it, validation started. But I don't need validation when this button pressed.
    What I can do to avoid validation ?

    You should set the immediate="true" attribute.
    Regards,
    Kati

  • How to avoid postback while filter document library using metadata navigation filters?

    Hi All,
             Please help me with this scenario. I have a document library with metadata columns and normal columns and have enabled metadata navigation settings and key filters.
            It filters fine. But only problem every time i click the whole page will refresh. is there any way we can avoid page refresh while filtering.
    Or
    Any alternative solutions also much appreciated.
    Thanks for your help in advance.

    You're not going to be able to avoid that post back. The pages haven't been designed to allow AJAX behaviour and trying to re-build them would be a monster for MS let alone for you.

  • How to avoid multiple copies of data in page refresh

    How to avoid multiple copies of data in page refresh

    If you are talking about a page with an insert query, ignore the fact that it's a page refresh.  It's just another way that someone can insert duplicate records.  I like to handle this in my insert query.
    insert into thetable
    (f1, f2, etc)
    select distinct
    value1, value2, etc
    from some_small_table
    where you don't already have that record

  • How to avoid printing a blank page when there is 'no data' in the report.

    how to avoid printing a blank page when there is 'no data' in the report.

    try like this
    if@section:IND=1
    this template
    end ifsectionbreak
    if@section:IND=2
    this template
    end if

  • How to avoid blank page in the report?

    adding a field in the grouping and checking the page break option means then we are getting blank page as the first page of the report? How to avoid this blank page?

    Usually blank pages appear as first page due to the presence of filler lines (//////) on top of report header.Please ensure that the top header is exactely started from top of page itself.

  • Cheque printing. How to avoid last page in case of check printing in F110?

    F-68 prints only one page whereas F110 prints 2 pages.
    How to avoid last page in case of check printing using F110? Is there any other option than changing the Script.

    Hi,
    Im also facing the same issue. Generates 1 page with F-58 but 2 pages with f110. Kindly let me know how to resolve.

  • How to retain value in LoV item in Tabular Form, after Page Refresh

    Hi,
    I have a tabular form, which contains 2 items(columns), of type "Select List - named LoV".
    Now, 2nd item(column) in tabular form, that LoV should get populated based on user's selection value in first item LoV.
    1. So how do I refer to the value, that user selected in first item's LoV? I will have to use this value as reference in LoV query of my 2nd item ( on this tabular form)
    2. Everytime I select value in first item LoV, page gets refreshed, as my requirement is to calculate 2nd item's LoV based on selected value in first item. So after this page refresh, first item LoV loses its value that was selected before the page refresh happened. So how do i retain this value in first item LoV? I have an unconditional process, that on every submit(refresh) of page, I set all my items with their corresponding values. But problem is what do i mention there to refer to this first item ( of type LoV) of tabular form?
    I looked in view source of my page, this item is referred as f03.
    So i used "apex_application.g_f03", to set this item to its value, in my uncoditional submit process. But it did not work. I tried to refer this item as "f03" in this unconditional submit process. But still it did not help, the selected item loses its value after page refresh(submit).
    Please help.
    Thanks and Regards,
    Ravi.

    Hi Rave,
    You will have to use Javascript and Ajax to change the values as ApEx submissions will lose your results unless they are saved into the database.
    Remember, that as you are using a tabular form there will be lots of items called f01, fo2, fo3 etc on the page (one per row).
    Regards
    Michael
    Edited by: MKii on Jun 4, 2009 10:13 AM

  • How to avoid database logon dialog on every action of refreshing reports

    I am using Crystal reports 208 SP2 and has a database connection to oracle database. Connection is esablished and report retrieves desired data, The problem is when ever i open this report ( which has this connection set) and do a refresh,  the report the LogOn dialog pops up.
    How to avoid or save this log on info such that it does not pops up the LogOn dialog when i open the report and do a refresh(F5).?

    Hi Don,
    Thanks for the reply. To try  your suggested approach, i need some clarifications .
    _Problem summary:for refrence, _
    I am following the steps mentioned below to establish a database connection, and fetch the data.
    1) I am using Oracle drivers for configuring the ODBC data source. As part of configuration i will specify the Oracle server name
    2) In crystal reports, Using "Database" menu, i open "Database Expert" dialog and "Make New connection" by specifing the data source mentioned in step 1). During this process, (ODBC)logon information will be filled in. The user ID and password used has all the rights to access the tables in the database. Logon will be successful and connection is established.
    3) Further i use the database table from the "Database Expert" on to the report and refresh(F5) to fetch the data.
    After step 3, I close the report  and reopen it. Now trying to refresh the database logon dialog pops up. I need to avoid this pop up
    Requesting Clarification:;
    1) You have specified "When you connect you have the option to use Trusted Authentication, check this option on". Where is this option. Is it in the crystal reports or is it available during data source configuration. Kindly specify.
    2) Here "Enterprise logon info that has been configured on the Oracle server." implies the oracle database login information right? If yes, this login details are available and i am using this logon information(i.e. UseriD and Password) during database connection.
    If No, Is "Enterprise logon info " is something which should be specifically enabled by DBA in oracle11g configuraion.
    Kindly suggest.
    Edited by: R Guru on Oct 17, 2009 7:32 PM

  • How to avoid printing a balnk page at the end in the Adobe form output

    Hello Experts,
        Can anyone please let me know as how to avoid/delete the blank page at the end of adobe form output.
    I have a master page with header n footer and a body page seperate.
    For ex.. I have 3 line items and i want each line item to be displayed in the new page. I am able to get this functionality . I have set the settings in the paginationb tab of the subform as
    "after " Go to Next content Area" " but an extra page is getting printed at the end. 3 + 1 extra pages total. I want to avoid this blank page. I have checked the Allow page break with in content box but it is still not working.
    Can someone guide me as how to solve this problem.
    Any help is appreciated. Thanks in advance.
    Regards,
    Mahesh

    hey mahesh,
    this normally happens because of triggering a new page manually, what u would have done is that you would be checking for the new line item and when this condition is satisfied , you are triggering a new page , the reason for the last blank page is that the condition gets satisfied ( beacuse the line item number changes from the last line item no to  initial or space).
    This can be handled by doing the following
    By knowing the number of line items by the following stmt.
    describe table itab lines v_lines.
    Now you have the value in v_lines.
    use a counter in ur form and keep it increasing it by 1  ( say v_sno ) ie v_sno = v_sno + 1 in the loop of ur internal table.
    ONLY WHEN V_LINES IS LESS THAN OR EQUAL TO V_SNO , TRIGGER THE NEW PAGE
    this should be along with the condition which u have already put, ie when ever line item no changes
    when both these conditions are satisfied , then only the new page will be triggered.
    Hope it helps,
    Reward if useful,
    Regards,
    KP.

Maybe you are looking for

  • Return Order for Free Goods

    Hi We need to put Returns order for Free good items with reference to the Billing document number which has the free goods item category. We created on item category copying ( RENN ) and assigned to (RE) . We made copy control for Bill doc to return

  • My computer died

    Hello, Ihave an ipod and an iphone, and 15 days ago, my computer died and I only had a bac up for my music in an exernal hard driver , I borrowed a computer for a while and I hav already restored my music . Is there a way to retrieve my playlists, an

  • Update camera raw  in cs5 for nikkon d600

    update camera raw  cs5 for a nikkon D600?

  • Indexing of NMH 410 Never Stops

    Indexing of NMH 410 Never Stops.  Does anyone from Linksys or Cisco have a solution?

  • How do i change the platform for elements from windows to Mac?

    I Bought photoshop elements a while back for windows. I just bought a Macbook & would like to know how to download to my macbook with the right platform. Thanks in advance.