Reset to Defaults button in JSP portlet missing?

Is there a reason why a customize page for a JSP portlet doesn't show a Reset to Defaults button? The PortletRendererUtil.renderCustomizeFormHeader() displays the Apply, OK, and Cancel buttons, but not Reset to Default. Is this just an oversight or is there some way that I haven't found to get it to display that button as well?
Thanks!

It's possible the default implementation does not include revert to default. You could subclass and include it.

Similar Messages

  • Request more info for how to offer a 'Reset to Default' button for portlets

    Hi,
    I would like to provide a 'Reset to Default' button for the customization function of my java portlets and URL portlets. However, I don't know what necessary codes do I need to write or to include to enable such function? Would anyone help to give me some guideline? If possible, would you please give me some code sample?
    Thanks a lot!

    you either have to code for everything to reset or you can reload your current page:
    loadMoveNum(this._url,0);

  • When click on button in jsp portlet, the portlet is reloaded

    Hi all
    I have a jsp portlet containing a number of divs and buttons. When the user clicks on a specific button, I use javascript to hide and/or display specific divs.
    However, in Weblogic Portal 10.3 (using IE 8 or FF 3.5.3) the whole portlet is reloaded when I click on a button.
    This results in the default screen being displayed again.
    Is there a way that I can prevent Weblogic Portal from reloading the portlet when javascript is executed in the portlet?

    Can you send source for how you create your button? Is it <input> or <button> ?
    I suspect what's happening is that your button has no type, so it's defaulting to "submit" behavior, reposting the page.
    Try using <button type="button" ...> and see if that doesn't fix it.
    -Chris

  • Verizon Jetpack 4510l where is the reset to default button

    I need to reset my Verizon Jetpack 4510l to defaul,t need help please.

        Hi Jimmy33,
    Never fear help is here! For instructions on how to Hard Reset your Verizon Wireless Jetpack 4510L click here http://vz.to/1bZ6K4R

  • Reset to Defaults on customize screen - timing out?

    "Portlet 1 responded with content-type text/plain when the client was requesting content-type text/html"
    I get the above error when the "Reset to Defaults" button is used on the customize screen on which there is a very large LOV. My LOV contains 10,941 entries and populates fine upon entry, but the "Reset to Defaults" option seems to have it's own (shorter) timeout duration. Any idea how to change it?
    Thanks.

    Hello krish_go,
    Thanks for using Apple Support Communities.
    Since you have already tried restarting and resetting the device to get the control center option enabled, the next step would be to first back up the iPhone and then restore to its factory settings.
    Use iTunes to restore your iOS device to factory settings - Apple Support
    Take care,
    Alex H.

  • Reset to defaults

    I am unsure how you enable the "Reset to defaults" button in the "Edit" mode... is this a provider.xml option or a header render option.
    Thanks,
    - Nick

    The default implementation doesn't support it at this point.
    You find details here:
    http://forums.oracle.com/forums/message.jsp?id=457169

  • Default Button: switched to last focussed, but want Windows behavior, how?

    In a JDialog, if I add components and set one to be the default button, plus
    use the Windows L&F, I expect the Windows L&F behavior, that is, as long
    as I tab along buttons, an Enter will activate a button if it has focus, but if I
    tab to another component, the desired default button should be visually marked (darker edge)
    and an Enter should activate it.
    In Plugin's JRE 1.3.1, this is not the case. The default button is reset to the last button that had
    the keyboard focus.
    In a JVM 1.2.2, the same code produced the expected result!
    The bug db listed a few solutions, one of them was to use a Focus Manager to
    track focus and then "manually" reset the default button each time the focus is not on a button.
    Anyone out there with a more details on this solution?
    Or perhaps, there is a better solution than tracking focus events manually?
    Sylvia

    Found a solution myself, which at least works for windows l&f:
    make all buttons non-default capable (setDefaultCapable(false)), except for the one button, that is to be the default button. This has the unfortunate effect, that a non-default button, which has input focus, does not react to to ENTER, but the ENTER is sent to the default button instead.
    So must add a keyboard action to handle the ENTER:
    KeyStroke keyStroke = KeyStroke.getKeyStroke ("ENTER");
    ActionListener action = new ActionListener(){
    public void actionPerformed() {getMyButton().doClick();}};
    getMyButton().registerKeyboardAction (action, keyStroke, WHEN_FOCUSED);
    That did it for my case.
    Sylvia

  • Reset to Default Printer

    We recently upgraded from Crystal 9 to Crystal XI and are having a printer issue. In C9, there was a printer setup option that had a "Reset to Default" button available if you did not want a specific printer assigned to a report. In Crystal XI, even though Help says there is such a thing in the Page Setup but I am unable to find it. Any assistance would be greatly appreciated as I currently have to open the report in C9 to click "Reset to Default" and then re-open in Crystal XI to continue working on the report. Lisa

    Here's a great link with a fix that worked for me.
    [http://saalwaechter-notes.blogspot.com/2008/01/firefox-and-default-printer.html Firefox and the default printer]

  • The back button no longer works. I have disabled all add-ons, rebooted & reset the defaults for the browser and nothing has changed. This happens on all webpages.How do I get the back button to light up again?

    the back button no longer works. I have disabled all add-ons,rebooted & reset the defaults for the browser and nothing has changed. This happens on all webpages.How do I get the back button to light up again?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    *Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    Another possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.com/kb/Bookmarks+not+saved#w_places-database-file

  • The reset security questions button missing how to fix?

    im trying to reset my questions but the reset by email button is missing

    Use the link in the following quotation from https://support.apple.com/en-us/HT201485
    If you couldn't send a reset email, don't have a rescue email address, or can't access email at your rescue email address, contact Apple Support. Apple may ask you to generate a temporary support PIN to verify your identity. After you reset your security questions, you might want to update your rescue email address.

  • Cursor becomes invisible in JTextField after using default button

    In my application there is an update screen (JPanel). I am using default button in that panel. The input field is a normal JTextField. When the update is over the cursor goes back to the input JTextField.
         Now my problem is that when I carry out update with mouse, the cursor is correctly placed into the input JTextField and is visible after the update is over. On the other hand, if I carry out the same update operation using default button (using keyboard), the cursor gets placed correctly in the input JTextfield column, but becomes invisible. If I minimize and then again maximize the window, the cursor appears back. What am I missing ? Note that I am using component.requestFocusInWindow() to get focus back to the input JTextField.
    regards,
    nirvan

    While trying to reproduce the behaviour for SSCCE, I found that it is the JOptionPane.showMessageDialog() that is causing the problem. Here is the SSCCE.
    package com.ns;
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.awt.Toolkit;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JOptionPane;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    import javax.swing.WindowConstants;
    public class TestFocus extends javax.swing.JFrame {
        // Variables declaration - do not modify
        private JTextField field1;
        private JTextField field2;
        private JPanel jPanel1;
        private JButton reset;
        private JButton update;
        // End of variables declaration
        public TestFocus() {
            initComponents();
            setDefaultButton();
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">
        private void initComponents() {
            jPanel1 = new JPanel();
            field1 = new JTextField();
            field2 = new JTextField();
            update = new JButton();
            reset = new JButton();
            setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
            field1.setPreferredSize(new Dimension(40, 20));
            jPanel1.add(field1);
            field2.setPreferredSize(new Dimension(40, 20));
            jPanel1.add(field2);
            update.setText("Update");
            update.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent evt) {
                    updateActionPerformed(evt);
            jPanel1.add(update);
            reset.setText("Reset");
            reset.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent evt) {
                    resetActionPerformed(evt);
            jPanel1.add(reset);
            getContentPane().add(jPanel1, BorderLayout.CENTER);
            Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
            setBounds((screenSize.width-385)/2, (screenSize.height-258)/2, 385, 258);
        }// </editor-fold>
        public void setDefaultButton(){
            this.getRootPane().setDefaultButton(update);
        private void updateActionPerformed(ActionEvent evt) {
            // TODO add your handling code here:
            JOptionPane.showMessageDialog(this,"Activity Updated Succesfully in Database.",
                                            "Information",
                                            JOptionPane.INFORMATION_MESSAGE);
            update.setEnabled(false);
            field1.setEditable(false);
            reset.setEnabled(true);
            this.getRootPane().setDefaultButton(reset);
        private void resetActionPerformed(ActionEvent evt) {
            // TODO add your handling code here:
            field1.requestFocusInWindow();
            field1.setText("");
            field1.setEditable(true);
            reset.setEnabled(false);
            update.setEnabled(true);
            this.getRootPane().setDefaultButton(update);
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new TestFocus().setVisible(true);
    }If I remove the JOptionPane.showMessageDialog() method, everything works fine with mouse as well as keyboard.
    regards,
    nirvan.

  • Adding a "revert to defaults" button

    jpdk 1,3
    I'd like to add a "revert to defaults" button
    on my customize page. When I use PortletRendererUtil.renderCustomizeFormHeader(pr, out, null, "action", null, null) Only the 'apply' and 'ok' buttons are rendered. Do I have to do it manually or is there a utility I can use to do this?
    thanks,
    -sancho

    You are right - the PDK article "Guidelines for Portlets in Edit Mode" describes such a button, which currently the JPDK doesn't support. Looking at some of the default portlets on a Portal home page, it would seem that the convention is now for this button to be called "Reset to Defaults". I have logged bug 1771249 against the JPDK and bug 1771238 against the articles to sort out these issues.

  • I don't have my navigation bar at all. I tried to start in safe mode but I never get the dialog box the y say you should get to reset to defaults. Help?

    i don't have my navigation bar at all. I tried to start in safe mode but I never get the dialog box the y say you should get to reset to defaults. Help? I have even uninstalled and reloaded firefox
    == This happened ==
    Every time Firefox opened
    == My wife hit a button and doesn' know what happened

    See if this helps. View > Toolbars, if no check beside Navigation Bar, click on Navigation Bar to check it.
    <u>'''Can't see the Menu Bar'''</u> (File, Edit, View, History, Bookmarks, Tools, Help)?
    Turning the Menu Bar on and off is a new feature in version 3.6.
    ''(~~red:Linux & OSX see~~: [[Menu bar is missing]] )''
    <u>''Windows'' Method 1.</u> '''''Hold down''''' the key and press the following letters in this exact order: V T M then release the key
    <u>''Windows'' Method 2.</u> Tap once on the F10 key, while the Menu bar is visible, choose "View > Toolbars", click "Menu Bar" so that a check mark is placed next to Menu Bar
    <u>''Windows'' Method 3.</u> Tap once and release the key. The Menu Bar will be displayed; then choose ~~red:V~~iew > ~~red:T~~oolbars and click on ~~red:M~~enu Bar so that a check mark is placed next to Menu Bar
    The Menu Bar should now be displayed permanently, unless you turn it off again using View > Toolbars. Check mark = displayed, NO check mark = not displayed.
    See:
    http://support.mozilla.com/en-US/kb/Menu+bar+is+missing
    http://kb.mozillazine.org/Toolbar_customization#Restoring_missing_menu_or_other_toolbars
    <u>'''Navigation Toolbar, Bookmarks Toolbar and other Toolbars'''</u> under View > Toolbars. Clicking on one of them will place a check mark (display) or remove the check mark (not displayed).
    <u>'''To display the Status Bar'''</u>, View, then click Status bar to place a check mark (display) or remove the check mark (not displayed).
    <u>'''Full Screen mode'''</u>
    http://kb.mozillazine.org/Netbooks#Full_screen
    Also see:
    ''' [[Back and forward or other toolbar buttons are missing]]'''
    '''[[Navigation Toolbar items]]'''
    '''[http://support.mozilla.com/en-US/kb/How+to+customize+the+toolbar How to customize the toolbar]'''
    <u>'''''Other Issues'''''</u>: ~~red:You have installed plug-ins with known security issues. You should update them immediately.~~
    <u>'''Update Java'''</u>: your ver. 1.6.0.18; current ver. 1.6.0.20 (<u>important security update 04-15-2010</u>)
    (Firefox 3.6 and above requires Java 1.6.0.10 or higher; see: http://support.mozilla.com/en-US/kb/Java-related+issues#Java_does_not_work_in_Firefox_3_6 )
    ''(Windows users: Do the manual update; very easy.)''
    ~~red:Check your version here~~: http://www.mozilla.com/en-US/plugincheck/
    See: '''[http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates Updating Java]'''
    Do the update with Firefox closed.
    <u>'''NOTE:'''</u> Java version 1.6.0.21 has been released. It is mainly an update for developers of Java applications and most users do not need to be concerned about downloading version 1.6.0.21. <u>'''''At this time'''''</u>, the update option in existing installations of Java 1.6.0.20 are not updating to version 1.6.0.21; <u>'''''at this time'''''</u>, it must be manually downloaded and installed. According to the Java release notes:
    ''"'''Bug Fixes'''''
    ''Java SE 6 Update 21 does not contain any additional fixes for security vulnerabilities to its previous release, Java SE 6 Update 20. Users who have Java SE 6 Update 20 have the latest security fixes and do not need to upgrade to this release to be current on security fixes."'' Source: http://java.sun.com/javase/6/webnotes/6u21.html
    <u>'''Install/Update Adobe Flash Player for Firefox (aka Shockwave Flash)'''</u>: your ver. 10.0 r45; current ver. 10.1 r53 ('''important security update 2010-06-10'''; see: http://www.adobe.com/support/security/bulletins/apsb10-14.html)
    ~~red:Check your version here~~: http://www.mozilla.com/en-US/plugincheck/
    See: '''[http://support.mozilla.com/en-US/kb/Managing+the+Flash+plugin#Updating_Flash Updating Flash]'''
    -'''<u>use Firefox to download</u>''' and <u>'''SAVE to your hard drive'''</u> (save to Desktop for easy access)
    -exit Firefox (File > Exit)
    -''<u>In Windows,</u>'' check to see that Firefox is completely closed (''Ctrl+Alt+Del, choose Task Manager, click Processes tab, if "firefox.exe" is on the list, right-click "firefox.exe" and choose End process, close the Task Manager window'')
    -''<u>In Windows,</u>'' double-click on the Adobe Flash installer you just downloaded to install/update Adobe Flash
    -when the Flash installation is complete, start Firefox, and test the Flash installation here: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15507&sliceId=1
    *<u>'''NOTE: On Vista and Windows 7'''</u> you may need to run the plugin installer as Administrator by starting the installer via the right-click context menu if you do not get an UAC prompt to ask for permission to continue (i.e nothing seems to happen). See this: http://vistasupport.mvps.org/run_as_administrator.htm
    *'''<u>NOTE for IE:</u>''' Firefox and most other browsers use a Plugin. IE uses an ActiveX version of Flash. To install/update the IE ActiveX Adobe Flash Player, same instructions as above, except use IE to download the ActiveX Flash installer. See: [[ActiveX]]
    *Also see: http://kb.mozillazine.org/Flash ~~red:'''''AND'''''~~ [[How do I edit options to add Adobe to the list of allowed sites]]
    <u>'''You '''</u>~~red:<u>'''MAY'''</u>~~<u>''' need to Update Adobe Reader for Firefox (aka Adobe PDF Plug-In For Firefox)'''</u>: your ver. N/A; current ver. 9.3.3 (important security update release 06-29-2010; see: http://www.adobe.com/support/security/bulletins/apsb10-15.html)
    ~~red:Check your version here~~: http://www.mozilla.com/en-US/plugincheck/
    See: http://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox#Installing_and_updating_Adobe_Reader
    ''<u>You may be able to update from the Adobe Reader installed on your system</u>'' instead of going to the Adobe site and downloading. Open the Adobe Reader installed on your system (''in Windows, Start > Program Files, find and click Adobe Reader to open''), click Help, click Check for Updates. Allow the download/update to occur. If you use this method, no need to proceed with the instructions below, <u>'''but'''</u> do look at the two bulleted items at the bottom "'''<u>NOTE for IE:</u>'''" and "Also see:". Restart Firefox and check your new version here: http://www.mozilla.com/en-US/plugincheck/
    ''<u>If you go to the Adobe site to download the current Adobe Reader:</u>''
    -'''<u>use Firefox to download</u>''' and <u>'''SAVE to your hard drive'''</u> (save to Desktop for easy access)
    ~~red:-See the images at the bottom left of this post to see the steps to take on the Adobe site~~
    -exit Firefox (File > Exit)
    -In Windows: check to see that Firefox is completely closed (''Ctrl+Alt+Del, choose Task Manager, click Processes tab, if "firefox.exe" is on the list, right-click "firefox.exe" and choose End process, close the Task Manager window'')
    -In Windows: double-click on the Adobe Reader installer you just downloaded to install/update Adobe Reader
    *<u>'''NOTE: On Vista and Windows 7'''</u> you may need to run the plugin installer as Administrator by starting the installer via the right-click context menu if you do not get an UAC prompt to ask for permission to continue (i.e nothing seems to happen). See this: http://vistasupport.mvps.org/run_as_administrator.htm
    *'''<u>NOTE for IE:</u>''' Firefox and most other browsers use a Plugin. IE uses an ActiveX version. To install/update the IE ActiveX version, same instructions as above, except use IE to download the ActiveX installer. See: [[ActiveX]]
    *Also see: http://kb.mozillazine.org/Adobe_Reader ~~red:'''''AND'''''~~ [[How do I edit options to add Adobe to the list of allowed sites]]

  • How do I reset to default state when there is no icon to click?

    Firefox is slow and crashes a lot. So I went to the Help menu that told me to reset to default state, but there is no icon in the upper right corner of the screen and all it keeps doing is telling me to reset and I can't reset it

    Hi Odattbrett,
    Sorry for the confusion! Does your device have a physical menu button below the screen? If it does, Firefox will automatically hide the 'three dots' menu icon that would normally be at the top of the screen - because pressing the menu button on your device should bring up the menu instead. This helpful article has more information:
    [[Firefox menu icon is missing on Android - how to access the menu]]
    Also, doubly sorry to hear that Firefox is running slowly! :(
    A good way to try to fox this would be by uninstalling Firefox and then installing it again. Doing this would give you a completely fresh start (all your history, bookmarks, passwords and extensions would be removed). To uninstall and reinstall Firefox:
    # Open your device's Settings screen (you might be able to find this by swiping down from the top of the screen, or look for the settings icon on your device's main menu)
    # Press ''Apps'' and then swipe from right to left until you reach the ''All'' section
    # Firefox should be near the top of the list. Press it and on the next screen press ''Uninstall''
    # Go back to your device's main menu. Open ''Google Play'', search for and install Firefox.
    I hope this helps. Reply to let us know if the problem is fixed!
    Jayelbe

  • Upload file form problem in JSP portlet !!!

    Hi!
    I use "OrdHttpUploadFile" class for upload file in JSP portlet to database!
    Problem is that this class must use FORM ENCTYPE="multipart/form-data" whis I suppose dont work in portlet!?
    Which FORM ENCTYPE should I use in portlet! Or there is some other solution for upload file in JSP portlet!?
    Thanks!
    Kristjan

    Thanks for u r reply Mr.Prasad.
    Sorry for the delay for reply.
    My scenario is in 2 phases
    Phase 1. I am taking input from the front end using jsp and writing the contents in to a file and then downloading that file on to my desktop.(Now let us say this one as file downloading)
    Phase 2. Now I had designed a page,which locates the downloaded file by using the following tag.
                        <td><input type ="file" name ="xmlFileName"></td>
        In the downloaded xml file I am having applicationid. I am checking whether the application id already xists in the database (or)not.
    If already exists in the database , the end user will get one confirmation msg,saying application already exists in the database.
    If the user clicks ok again the request has to go to the servlet.
    Now the actual problems are
    1. When I locate the file on the desktop let us say c:\desktop\krish and click on submit button, it is locating to the file that is present in the server(this is the case for the first time means before checking the application id in the database).
    2. when the end user clicks "ok" on the confirmation box , I am not getting the file name,that has to be submitted to the servlet.
    Can u plz help me how to resolve this issue.
    regards,
    Krish

Maybe you are looking for

  • How to Get MAC

    Dear ALL I wonder how to get the MAC Address of a certain Machine PS: I read through of the Forums but did not find the answer to my question Hope you could Help

  • Virus on mac mini?

    When I go to the Chase site to view my accounts, I am getting a popup window from "Fraud Protection Services." Chase says not to respond to it, of course, and I simply closed the window when it came up. Chase suggests there might be a virus on my com

  • No central person is assigned to Business Partner

    Hi, we are using srm 3.0 with ebp 4.0 While updating the org strcuture we deleted the Position entry & the assignment for one user. Also the BP entry was deleted using bupa_del. we have few shopping carts open in the system which , so we used users_g

  • Instant client with sqlldr (win32)

    Hi all, I am successfully using the instant client(IC) for sqlplus in winXP (32) machines. Now I would very much need to use the sqlldr in the same IC-environment. Does anybody know, which additional DLLs of the full-client I need? If I have the choi

  • Apple Mail randomly decided to delete my email accounts on restart!

    Hey Folks, A few days ago I did the apple updater thing, and I had restarted my computer since then with no problems! Now all of a sudden all my email accounts along with the emails that were displaying in my Apple Mail app are all gone. Here's a sna