How to prevent refresh button?

how to prevent refresh button?
ould anybady know pls tell it me

Double-posted. See reply on http://forum.java.sun.com/thread.jspa?threadID=715948&tstart=0

Similar Messages

  • How to add Refresh button

    Hello...
    This is my code. How to add REFRESH button in this code
    package sample.view;
    import javax.faces.event.ActionEvent;
    public class Student {
        public Student() {
            super();
        private String name;
        private String id;
        private String course;
        public void setName(String name) {
            this.name = name;
        public String getName() {
            return name;
        public void setId(String id) {
            this.id = id;
        public String getId() {
            return id;
        public void setCourse(String course) {
            this.course = course;
        public String getCourse() {
            return course;
        public void dosubmittoActionisterner() {
            // Add event code here...
            System.out.println(getName() + " " + getId() + " " + getCourse());
        public void dorefershActionlistener(ActionEvent actionEvent) {
            // Add event code here...

    Hi,
    is this a home work you are working on? Even as a student you should be able to express questions more clearly.
    Frank

  • How to prevent (X button) closing window

    Hi!
    I am wondering how to prevent X button on
    the right top corner on the window closing
    the window.
    My jdev java app is intended to close window
    when user explicitly presses return button.
    That's works fine ... but how to catch
    window close event (X sys btn) and stop it?
    null

    Hi,
    You need to change the default close operation of JDialog or JFrame:
    myFrame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);

  • How to hide refresh button in crviewer?

    Hi,
      I want to hide refresh button when view the crystal report in webi, but don't know how to do that
      Pls give me some advice,thanks~

    Hi Julian,
      I tried, but the fresh button is still there. Just when click this button,it says you have no right to refresh the report.
      i guess if we want to hide the refresh button,we may edit the viewer.js in Crystal reports web application folder,but not sure and don't know how to do that, pls help me~

  • How to detach refresh button from address bar in the new UI of FF29?

    IN FF28 it was possible to detach the refresh button from the address bar, but now the whole address bar is just one element. I am really used to have the button on the left side and not on the right side of the screen. I would love to have the opportunity back again to separate them!
    Best,
    Robin

    Firefox is just caught up in the industry wide disease of simplifying their user interface to satisfy the needs of mobile device users. It's probably true that they make up the vast majority of users. It is troubling that this trend ruins the experience for the few of us that still use powerful computers with huge and multiple display screens.
    As a developer of web pages, I often go through a cycle of looking at a web page I am developing, tweaking it, and refreshing the browser. No matter how many times I just proofread the content, I still find mistakes that need correction. So the view, correct, refresh cycle is so frequent that I need it to be efficient with well placed controls to accomplish the cycle.
    I don't mind making the GUI extremely simple for the majority of users, but I am upset with how often these "improvements" make it difficult for the experienced user/developer to use the tool in the way that suits them.

  • How to find  REFRESH  Button code in CFolder Brower (Backend BSP Applica)

    Hi ,
    Please let me know how  to find code  for  REFRESH button of  cFolder browser, its  backend is BSP  Application CFX_RFC_UI.
    Thanks,
    Ravi

    Hi Michael,
    thank you for your advice! This problem is solved...
    ...but I have another issue. Ive implemented 2 editable fields in my popup. The user should fill that fields with context and that context should be processed in the calling view of my popup.
    My question is how to transfer these information from my popup to my calling view or method?
    I tried the following...
          lv_context_node ?= m_popup->get_context_node( 'QUICKACT' ).
          IF lv_context_node IS NOT INITIAL.
            lv_text = lv_context_node->get_date( attribute_path = '' ).
          ENDIF.
    But it doesnt work! The context node object is always empty/initial.
    Thank you!
    PS: Another possibility could be that the object / node of the calling view is transferred to the pop-up in order to process it there.
    Edited by: Marcus Findeisen on Feb 22, 2011 12:13 PM

  • How to disable refresh button in webi reports in BOXI3.1SP2-Java SDK

    Hi all,
    We have integrated Java with BO, here end users will give parameters through java screen. After submitting all the parameters webi reports will opens in separate window.
    Here requirement is end users should pass the parameters from java screen and they should able to save the report in to excel/PDF.
    Refresh/edit buttons should disable/hide in the webi report.
    below is the sample url we are using in the java.
    http://" + CMS + ":8080/ OpenDocument/opendoc/openDocument.jsp?"+ "iDocID=" +ReportID + "&sType=wid&sRefresh=N&sWindow=New&lsSEnter List Name: =+List&token=" + token
    we tried with using &buttonrefresh=hide in above URL.
    Note: We are also having hyperlink reports in the Webi.
    Please provide me inputs to disable refresh button.
    Thanks,
    Subash

    Hi,
    why do not set this over the authorization scheme? Just deny your users the right to refresh/edit the report.
    Regards,
    Stratos

  • How to stop 'refresh' button from 'submitting' in advance?

    Hi,
    I am trying to create a web page that shows a list of records to be updated individually by a click of its button.
    I realised that the records are 'updated' again when the page is refreshed!
    Basically the codes are like this:
    html>
    <title>Activate Users</title>
    <head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
    <link rel="stylesheet" type="text/css" href="stylesheet.css">
    <body bgcolor="#FFFFFF">
         <Form name= "activate" action="./activated.jsp" METHOD="GET">
    <%try{ %>
         <%@ include file="./connect/makeCon.jsp" %>
    <TABLE BORDER=1 width="75%" border="1">
    <TR><TH>Userid</TH><TH>Name</TH><TH>Status</TH><TH>Activate</TH></TR>
    <%
         PreparedStatement stmtt = ocon.prepareStatement("Select * from studentacct where studentacct_status=?");
    stmtt.setInt(1,2);     
         ResultSet rc = stmtt.executeQuery();
    %>
    <%
    while(rc.next()){
         String userid=rc.getString("studentacct_userid");//column names must be exactly the same as that in the database.a
    String name=rc.getString("studentacct_name");
    int status=rc.getInt("studentacct_status");
    %>      
         <TR><TD><%out.println(""+userid);%></TD>
    <TD><%out.println(""+name);%> </TD>
    <TD><%out.println(""+status);%></TD>
    <TD><INPUT TYPE="Submit" VALUE="Activate"></TD>
    </TR>
         <%     PreparedStatement stmtt2 = ocon.prepareStatement
                                  ("UPDATE studentacct set studentacct_status=? where studentacct_status=2");
    stmtt2.setInt(1,1);
              ResultSet rc2 = stmtt2.executeQuery();                    
         } %>
    </TABLE>
    <BR>
    <%@ include file="./connect/closeCon.jsp" %>
    <%     }catch(Exception e){
              System.out.println(e.getMessage());
              e.printStackTrace();
    %>
    <BR>
    <%@ include file="footer.jsp" %>
    </body>
    <script language="JavaScript">
    <!--
    window.open = SymRealWinOpen;
    //-->
    </script>
    </html>
    The connection to the database is succesful, but I am not sure if I should use Javascript or is there something wrong with my codes ?
    Please help thanks!

    First, tou have several items from the select statement, right? So you have several rows in the table, all with a submit button. When you click the submit button, how do you know what submit button was clicked? There is nothing in that code that would let you know what button for what row was picked. So that is one problem. Without solving that problem you can't handle anything else.
    You can do one of two things:
    1) Make each row, or each button table cell, a form where you have a hidden field that contains some identifying info so you know which thing you are submitting.
    2) Use one select button for the whole table and have radio buttons or checkboxes to allow selection of which to submit.
    Then on the server side, the page the form submits to should check that the form values were submitted and if so, do the DB updates.
    Second, there is no need to be running an update statement for each item selected (in the loop of DB rows). If you do like I mentioned above, you can get rid of that part.

  • How to prevent a Button from playing a Sound overlaped?

    I have a Button named "Bt1P" that when I click on it, the Sound "S1.mp3" begin to play.
    This is the code:
    Bt1P.addEventListener (MouseEvent.MOUSE_DOWN, Bt1PDown);
    function Bt1PDown (event:MouseEvent):void {
    clicked = 1;
      var str:String = "S1.mp3";
        var ClassRef:Class = Class(getDefinitionByName(str));
      var playSound:* = new ClassRef();
      playSound.play();       
    My question is, what is the right code to tell this Button not to repeatedly play "S1.mp3" while it is already Playing!
    because when i click it for the 2nd and 3rd time, the file overlaped, and 3 same sounds play together at once....you know what I mean?
    any Help please??....thanks a lot.

    Hey Pouradam! How are you!!
    I found the answer myself....I just need to Add the RED code as below :
    Bt1P.addEventListener (MouseEvent.MOUSE_DOWN, Bt1PDown);
    function Bt1PDown (event:MouseEvent):void {
      clicked = 1;  
      SoundMixer.stopAll();
      var str:String = "S1.mp3";
      var ClassRef:Class = Class(getDefinitionByName(str));
      var playSound:* = new ClassRef();
      playSound.play();       
    Hope it solved my problem??  Yes It did!

  • How to prevent command button in jsf

    Hi,
    I have one problem in my login page in jsf. When i am clicking the command button, the values are erased and again asking username and password, then its called to my actionevents?
    In my command button onclick i called js script for validating client side.
    can you please provide information for how to avoid this??
    Thanks
    MOhan

    HI,
    I am using RAD6.0. Some times its working fine. some times not working.
    I think this is not an server proplem, jsf problem.
    Why do I need to click my action method commandButton twice?
    Any solution to solve the problem , pleae help me

  • How to prevent refresh

    When I move from tab to tab in android , it makes refresh to the page .
    How to make it like desktop

    I also want to know

  • 10.1.3 ADF -- How to prevent "submit" button submits data?

    Hi,
    In an Edit JSP page, there are several inputText fields that the users can modify data. And a "submit" button they can click when they are done with modification. I also add a validator for a inputText field to check whether the input is valid.
    When the users click "submit", I can see the error msg on top of the page if the data is invalid. Because I change the navigation string to "null" if the input is invalid, the page does not get forwarded. But here comes the problem, if I cancel this page and navigate to the next, I see the invalid data I just input.
    In another word, even with the validator and error msg, the data still gets submitted to the database.
    I haven't registered the validator in the face-config.xml. Will that help solve the problem? Any other idea? Any help is appreciated.
    Annie

    Hi Annie,
    If the input is invalid the current page is redisplayed by default.
    if you want to cancel this page and want to go to another page without
    displaying error messages, specify immediate="true" attribute
    with cancel button.
    Shakir

  • [Flex 4.5.1] How to prevent Radio Button from being selected when clicked on? No Changing Event?

    I have a very common use case where you have a few radio buttons and only one can be selected at a time. Some of them are basic and on click should be selected right away, but other are more complex and open a pop up which requires some additional user selections after which the user selected OK or CANCEL for example and only after that the selection of the radio button should be applied programatically.
    So to solve this issue I've come up with 2 workarounds:
    1) make the entire group, that holds the radio button, act as a button with buttonMode="true" mouseChildren="false" and programatically change the radio button within it.
    2) hold the current radio button selection in a variable and in the changeHandler of that radio button return the selection back to what was selected before. But this also causes a small flickering of the radio button which gets selected and deselected immediately after that.. not cool.
    So my question is... is there something I am missing that could do the job without these workarounds... like a Changing event which I use for the ButtonBar but I can't find on the RadioButton or RadioButtonGroup... thanks!

    Hi,thanks for the reply. Actually that was my third option, but not sure if it's very good also..
    Here is a simple scenario:
    User must select between 2 radio buttons:
    1) no volume -> sets variable volume=0 and selects the radio button (that is the normal use case)
    2) set volume -> opens up a pop up with a list that has a X button to close and 4 options: 25% volume, 50% volume, 75%, 100%
    At this point the set volume radio button should not be selected and the user has 2 choices:
    -> hit the X button to close - nothing changes and no volume radio button is still selected and volume is still = 0
    -> hit one of the volume % buttons -> the set volume radio button gets selected and the variable volume=25/50/75/100 depending on the button selected by the user.
    That's a pretty common scenario and it's bugging me that I can't easily alter the radio button selection logic since whenever I click it, it gets selected and I can't put a logic in between in a standard way. This should apply to any component with selection, just like ButtonBar has it with the Changing event.
    So is there any other more convenient way to accomplish this scenario that you could recommend?
    Thanks!

  • How to prevent Apply button from automatic execution

    I'm using OBIEE 11.1.1.5.
    When user enter my dashboard he can see section with many prompts and some chart based reports below.
    Usually, when entering the page the reports are executed with default prompts values and it may take a while.
    Only after most of reports are being generated, user is able to open the listboxes in the prompts and select his desires.
    The listbox is not filled quick since the DB is busy on the reports execution.
    My question is:
    Can I prevent the reports to be executed automatically when entering the dashboard?
    I would like user to click on Apply in order to get results.

    Hi,
    Tune up your RPD,
    Make sure that joins are implemented correctly,
    use cache management to increase the performance to load.
    login to em and in overview you will get the cache management their also u can increase the performance
    even in RPD also u can tune the cache management to increase the perfrmance.
    Regards
    VG

  • How to prevent creation of view object rows when using browser refresh butt

    HI i have the following problem:
    I have a creation form using a partial submition. The problem is that if i have entered some value by using autosubmit , this value will be setted as attribute in the ViewObject . After that if i click refresh button of the browser then the new Row of the view object will be created and i will have a pending row with setted attribute. So if execute commit then the both rows will be tried to commit. How can i prevent this?
    Krasi

    Hi,
    If i've understood you have a invokeAction that create a new row, right? If yes put on condition that it invokeAction won't invoke if is a postback.
    Let me know if i miss understand your doubt.
    Best Regards

Maybe you are looking for

  • Access Connections issues

    I am very frustrated with my machine, I ordered and received a L512 Thinkpad with no troubles, but the internet connectivity is not functioning properly and it is making me anxious for the future, as I need this laptop to participate in my Grad Schoo

  • Proxy problem:not able to see namespaces/SWC's in sproxy

    hi, I am not able to see the namespaces/SWC's when i use the transaction SPROXY. But strange thing is it is showing BASIS components in the list. Rest of the SWC's are not visible. Help needed. Ranjit

  • Scheduling problem in planned order.

    Hi all, I have a problem in scheduling of planned orders. I had mentioned the following parameters. 1. Available capacity in the work center as 06:00:00 to 12:00:00 2.Set up time is 10mins in the routing. 3. The planned order qty is 100 nos. While do

  • SSL/MSSTD settings Outlook anywhere

    All, just want to raise a question, as I noticed a strange behaviour. I have Exchange 2013 with Outlook Anywhare configured in this way: So external and internal hostname is the same, SSL required only from external. Internal connection works just fi

  • Group Contacts

    How do I create a group email contact?