How to remove default Apply, OK and Cancel buttons in portlet edit mode.

Hi,
Iam facing problem in customizing default edit mode of portlet, my question is how to remove those default buttons and how to implement our own links for SAVE and CANCEL functionality. Because if we implement our own <form> in edit JSP page then default form will override our own <form> and default buttons works rather then our own forms.
Please someone help me on this.
Thanks
Abhishek

Ah, this one is easy, if im not mistaken, set this tag in your provider.xml
<renderCustomize>false</renderCustomize>
Defines whether RenderManager should automatically render the portlet's container (border and title) in "Edit" and "EditDefaults" modes before and after processing/invoking the page.
This however means you have to write your own renderer for the customize page. Then you can add your own code for the buttons and the events behind them.
I created my own derived container and added this line to my provider.xml
<containerRenderer class="nl.rsm.eventCalendar.myContainerRenderer"/>
This is however for rendering the showmode of the servlet, dont know if this is the same
render class for the editmode.
Do you realy need custom save functionality, Oracle also has something called DBPreferenceStore, you can store self defined attributes into the database. Perhaps this is sufficiant enough.
anyway good luck, if you find out all the correct steps to take, please share, im also interested

Similar Messages

  • How to make a redirect without auto-redirect from the portlet "edit" mode?

    How to make a redirect without auto-redirect from the portlet "edit" mode?
    I use some sofisticated customizing with server-side validation of the form data. I want to redirect to the page of the portlet "show" mode and to the "edit" mode depending on the validation results. How can I do it?

    Heay.....this worked for me.
    I am able to change the mode programatically from edit to show.
    HttpPortletRendererUtil.handleEditAction(portletRenderRequest,"OK");
    I removed Apply , OK and Cancel buttons and applied my own Submit and Back button in Personalize mode and then change the mode to show on click of Back button using the above mentioned statement.
    Thanks
    ~Neeraj Sidhaye
    Try_Catch_Finally @ Y !
    ExtremePortal @ Gmail&#12288;&#65316;&#65359;&#65364;&#12288;&#65315;&#65359;&#65357;

  • How to change default close maximize and minimize button in mac?

    How can I change default close, maximize and minimize button in mac?

    no. but you can make resizable.

  • How to remove the standard Exit and Help buttons from the iviews

    Hi All,
    We migrated the ESS application from standalone ITS based on 4.6c to ECC 6 based Integrated one.  After converting that into ICF service and when we created the iview for it in the portal(EP 7)  It is showing two hyperlink items EXIT and HELP by default at the top of every iview.  So, Can anybody tell me how to remove them from visibility.
    And also, the iviews are not showing the table grids etc in the integrated environment.  Is there any change that need to be done, for getting the table grids and all to look as it is in the previous envoronment.
    Thanks & Regards,
    Ravi

    Hello Ravi,
    You should be aware that many of the ESS transaction are not supported on the Integrated ITS, see note 870126 for more details.
    To remove the "Exit" and "Help" you can use the ~webgui_simple_toolbar parameter, please see note 1010519. 
    Some tables have an option to show the gridlines or not.  Please see if there is a table options icon in the upper right of the table to change the configuration.  I'm not sure if what kind of table you're referring to so it may or may not be available.
    Edgar

  • Popups how top program the ok and cancel button

    How do I program the ok and cancel button in the popups. I want to add functionality to the existing ok and cancel buttons in the popup
    Thanks,
    Veena

    You can ise a dialog inside the popup and use a dialogListener to check how hte dialog has been closed
    public void handleDialog(DialogEvent event)
      if (event.getOutcome().equals(DialogEvent.Outcome.no))
        setGender(getOldGender());
        // reference to the gender component is from component binding
        // see selectOneRadio above - binding="#{sharedPopup.genderComponent}
        RequestContext.getCurrentInstance().addPartialTarget(getGenderComponent());
    }{code}
    Timo                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to remove xcode 4.1 and then install xcode 3.2.6?

    how to remove xcode 4.1 and then install xcode 3.2.6?

    Just an FYI I had xcode 3.2 installed on my snow leopard system and have today just installed Lion and I just cleaned and rebuilt an App I had developed prior to the Lion install to test to see if it would work. I was told it would but wanted to make sure and it successfully rebuilt and works in the simulator.
    My issue is a bit different I need to install 4.1 WITHOUT corrupting my 3.2 installation as I may have to go back to rebuild a 3.2 App as we had a fairly unique setup for our xcode. The problem as I see it currently is I do not know how LION installs things in LION xcode is an App downloaded from the App store but I need to be able to download to something other than the default directories and I am not sure if I have that option in LION when installing an App(xcode) from the App Store

  • I thought I upgraded to Pro, but my account shows both Basic and Pro. How can I upgrade to Pro and cancel Basic without losing my forms?

    I thought I upgraded to Pro, but my account shows both Basic and Pro. How can I upgrade to Pro and cancel Basic without losing my forms?

    Hi Rochdr,
    You can use the following article to help you address this issue with your mail account in OS X:
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/kb/ts3276
    Thanks for using the Apple Support Communities. Have a good one!
    -Braden

  • How I can internatiolization OK and Cancel buttons confirmDialog?

    private void clickButton() {
              int response = JOptionPane.showConfirmDialog(this, resBundle.getString("Confirmation_text_itroduction"),
    resBundle.getString("Confirmation_title"), JOptionPane.OK_CANCEL_OPTION,
                        JOptionPane.QUESTION_MESSAGE);
    if (response == JOptionPane.OK_OPTION) {
                   System.out.println("OK button clicked");
              } else if (response == JOptionPane.CANCEL_OPTION) {
                   System.out.println("Cancel button clicked");
    As you can see I internatiolization the title of confirm dialog and text (use object resBundle). OK!
    But how I can internatiolization OK and Cancel buttons is this confitm dialog?

    OK, I can internatiolization buttons "OK" and "Cancel" in confirm dialog:
    private void clickTestKindButton(String message) {
              Object[] options = { resBundle.getString("OK"),
                        resBundle.getString("Cancel") };
              int response = JOptionPane.showOptionDialog(this, message, resBundle
                        .getString("Confirmation_title"), JOptionPane.OK_CANCEL_OPTION,
                        JOptionPane.QUESTION_MESSAGE, null, options, options[0]);
              if (response == JOptionPane.OK_OPTION) {
                   new IntroductionTest();
              } else if (response == JOptionPane.CANCEL_OPTION) {
                   System.out.println("Cancel button clicked");
         }It's work OK!
    But how I can internatiolization buttons "OK" and "Cancel" in the input dialog ?

  • How to handle "ok" and "cancel" button of dialog popup?

    Hello everyone,
    I'm using a dialog with type="okCancel". My question is how to handle ok and cancel button of this popup window. Here is my code below:
    <af:popup id="kriterPopup">
    <af:dialog title="Kriter Seçiniz" type="okCancel" inlineStyle="width:500px;height:400;" id="d2"
    dialogListener="#{BasvuruDegerlendirmeBean.kriterDialog}">
    <af:selectManyCheckbox label="Kriterler :" id="smc2"
    binding="#{BasvuruDegerlendirmeBean.kritersCheckbox}">
    <af:forEach items="#{BasvuruDegerlendirmeBean.kriterList}" var="item">
    <f:selectItem itemLabel="#{item.ybKriter.tur}" itemValue="#{item.ybKriter.tur}" id="si3"/>
    </af:forEach>
    </af:selectManyCheckbox>
    </af:dialog>
    </af:popup>
    I want to handle ok and cancel button of this window, and redirect to the pages which I want.
    Can anyone help me how I can do?
    Thanks, with my regards.
    Ali

    You need dialogListener..
        public void dialog1_dialogListener(DialogEvent dialogEvent) {
            if (dialogEvent.getOutcome().equals(DialogEvent.Outcome.yes)){ //for Yes
            }else{ //for Cancel
        }

  • How to remove forget icloud id and pass word after restore, how to remove forget icloud id and pass word after restore

    how to remove forget icloud id and pass word after restore

    If the device belonged to someone else whose Apple ID and password you don't know, then your device is useless.

  • HT2470 The Finder toolbar, by default, has Previous and Next buttons that let you navigate back and forth in folders. I somewhat change that setting and can't go back and foreward. How do I change this setting to the original one? I tried everything!

    The Finder toolbar, by default, has Previous and Next buttons that let you navigate back and forth in folders. I somewhat change that setting and can't go back and foreward. How do I change this setting to the original one? I tried everything! Help!

    Select a Finder window, Finder->View->Customize Toolbar…, and add it back.

  • How to remove ghostery, google analytics, and yahoo toolbar? thx.

    Question
    how to remove ghostery, google analytics, and yahoo toolbar? thx.

    Ghostery and the Yahoo toolbar are extensions.<br />
    https://support.mozilla.com/en-US/kb/Uninstalling%20add-ons#w_how-to-uninstall-extensions-and-themes
    Google analytics is a service for webmasters which collects statistics about usage of their websites. Not sure how that would affect website users - unless you installed a GA extension. If you got it, it can be uninstalled just like the other two extensions.

  • HT201456 how to remove the icon Apple and Bootcam on the screen ?

    how to remove the icon Apple and Bootcam on the screen ?

    please forgive me, I usually ask question on these boards, not answer them :/ but wouldnt...
    btn.setIcon(null)do it?

  • Would like to change my home page. I click on options and my general tab is blank with only the ok and cancel buttons showing. How do I fix this?

    In options, under the general tab, it is blank all except the ok and cancel buttons. I can't change my home page. Please help.

    Hi cor-el,
    Thank you for your reply. Before I had seen your reply. I went into options and under general, all of a sudden it showed what should be there. I closed browser and did it again and it didn't show. It has been blank for roughly two months. Just seems funny that I ask a question and after all this time of not showing what it should, it does, to only be blank again.
    I have also been trying to update the flash player. That comes up completely blank as well with nothing showing at all. I did this several times the day before I posted my question. That same day I also hit the reset button for firefox when I was having trouble trying to update the flash player.
    I did as you said to do. Nothing has changed. Is there something else that I could try?

  • Mapping enter and esc to ok and cancel buttons

    Hi,
    Does java's fine API offer any method of mapping Enter and ESC to OK and Cancel buttons in a customized JDialog?
    The current way I'm doing it is through a brute force of adding a KeyListener to every component in the dialog box (in an automated way), is there another way?
    Any suggestions would be appreciated.

    Uh oh, should I be scared because he knows more about
    Swing than just about anyone?
    Yes. Because if you really get stuck then he won't help you and then you are doomed.
    If anybody was rude it was him, and if anybody is an
    idiot it's you. See how easy it is to make claims
    without providing any reasons or rationale?Reasons and rationale have been provided but I guess you didn't grasp them the first go around so here goes.
    1) You were impatient
    You waited 30 minutes before whining and bumping. That is impatient. Nobody is being paid to deliver answers to you.
    2) You posted in the wrong forum.
    This is not the Swing forum is it? No it is not.
    3) You should learn to search
    If you had searched for even up to 15 minutes (and you wouldn't have needed this long) then you would have had your answer in half the time. Searching saves YOU time.
    4) You were rude
    When the facts (and please note the use of the word "fact" not personal opinion) above were pointed out to you then you were rude.
    Finally the "you are an idiot" problem. I will give you this is the most subjective of the lot although given that you cannot dispute ANY of the above facts (although you seem to be trying and that's helping to make the case that you're quite the idiot) that's really not saying much.
    However, it seems to me that if Person A wants the assistance of Person B (who is a valuable resource of information for person A and others) it does not seem wise for Person A to be rude to person B. So in the case of Person A who is rude to Person B who they are relying on as a free resource we can make the assertion that Person A is an idiot.
    In case you couldn't follow that you are Person A.

Maybe you are looking for

  • IPod Classic Syncing Error

    I have an iPod Classic 80GB from a few years ago. and everything works well besides i cannot sync it or see my music that was on it before it started to have issues. I can still scroll throught the menus, so it is not the OS, but i cannot see my musi

  • HT3819 why wont some music tracks play on other computers

    I cant get itunes to play some tracks I imported from itunes on my other computer in home sharing. Does anyone know why this happens and how can i fix it?

  • Need help with download

    HELP! During download I am getting message "Internet Explorer has blocked this site from using ActiveX control in an unsafe manner. As a result this page may not display correctly." How can I procede with download of Adobe Flash? I'm not too computer

  • Power adapter male pin BROKEN

    My son called today with power adapter problems...took awhile for me to figure it out, but the tip of the adapter pin has apparently broken off inside the computers female power port. (the pin is flush with the metal collar while it protrudes about 1

  • Can't apply default transitions or copy attributes

    I have no means of getting Premiere to apply default transitions. I select clips, try via Sequence menu, nada I place the cursor on the timeline Ctrl-D, nothing happens I copy a clip and paste attributes - NOTHING. No change at all. Could there be an