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 Dot Com

Similar Messages

  • How to make an appointment with a contact from the address book directly to iCal

    What is the easiest way to make an appointment with a contact from the address book. My idea is that once you identify a contact down the bottom where it has Text message Share contact, add to favorites it would be nice if it had make appointment in iCal. The open up iCal to todays date and go from there with all the relevant details?

    In the Print dialogue box select Lists in the Style drop down box.

  • How to make html file on server side from the data entered in text area

    Hi!
    I want to know how to make .html file on server side. Like if i enter the data in text area ( or like we normaly see when we write mail that editor) and we can use html tages in it and when user submit form all the data in that field will be saved on server side as an html formate. Is it possible to do so??? or any ruff idea how to design it???

    Erm ...
    Whats the problem with that?!
    Ok, here the code ...
    String myparameter = request.getParameter("paramname");
    String htmltemplate = "<html>\n"
                         +"<head><title>demo</title></head>\n";
                         +"<body>@parametertag@</body>\n";
                         +"<html>";
    String htmlpage = htmltemplate.replaceAll("@parametertag@",myparameter);
    File yourHTMLfile = new File("wheredoyouwannagotoday.html");
    FileOutputStream fos = new FileOutputStream(yourHTMLfile);
    fos.write(htmlpage.getBytes());
    fos.close();You're done.
    Happy Coding! :-) &copy;

  • How to make a simple C program universal from the command line???

    Hi all,
    I've developed widgets that use a simple C program. I had no clue how to make it universal. Apple documentation is all about big projects to be developed inside Xcode and so on, but I don't understand even the introductory remarks...
    As far as I've read, I have to make a binary for PPC and a binary for i386, and then merge it with lipo. Fine. I get my PPC binary from:
    gcc-4.0 prog.c -o prog_ppc -lm -arch ppc -arch ppc64
    Now, it seems that I have to use:
    gcc-4.0 prog.c -o prog_i386 -lm -arch i386
    The latter command didn't work until I added -L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/ at the end. With this, it creates a binary file, but with the following message:
    /usr/bin/ld: warning fat file: /usr/lib/system/libmathCommon.A.dylib does not contain an architecture that matches the specified -arch flag: i386 (file ignored)
    and I guess this is quite an issue if I don't have the common math functions, no?...
    Can somebody help me? I googled a lot on this, and found nothing helpful.
    Cédric

    Thanks, it helped me. I googled a bit to build up my Makefile, and this is what I got.
    CC= gcc-4.0
    CFLAGS= -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386
    LDFLAGS= -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -lm
    TARGETS= skycalc.fixed.c
    all: $(TARGETS)
    $(CC) $(TARGETS) $(CFLAGS) $(LDFLAGS) -o skycalc_universal
    Thanks again.

  • How To Make Printer Only Use One Color From the Cartridge?

    Several weeks ago I had accidetnally found the settings, and now can not for the life of me find it. I want to make the default settings of the printer to only print in blue, so It only uses blue from the ink and will only print blue stuff. Its a multi colored image, and only want it to print the blue. its not just text i can change to blue.  Any ideas, I checked the printer properties and preferences, cant find it. I have a MG3120 and windows 8

    Hello. Please try the following steps to adjust the color settings: 1. Close all programs that are open.2. Click Start and open the Control Panel.3. Open Printers or Devices and Printers.4. Right-click the MG3100 and choose Printing Preferences.5. In the Main tab, change the Color/Intensity to Manual.  Then click Set. Once there, you can adjust the color settings as desired. This didn't answer your question or issue or need additional assistance? Find more help at Contact Us.  

  • 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

  • I'm trying to delete an old itunes account off the computer to put a different one on, how do I do that without losing anything from the new device?

    Help please! I can't figure it out.

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • How to make a button load a sprite from library??

    PLEASE HELP!!
    Hey everyone.. iv been looking for help for a few weeks but cant seem to find the awnsers
    I am trying to create a newspaper that consists of four pages. Each   page i have created and are sitting in the library as sprites. Each page   has buttons that need linking so that when pressed it loads the next   page or page that i want. This is the part i am confused with =/ how do i   make the buttons on each page load the next page (sprite) from the   library??
    Basically i want to no how to make a button load a sprite from the library when clicked. Does anyone no the script for this?
    Thanks for any help

    A question arises as to whether or not you are posting in the right forum.  Sprites are AS3 objects.
    If you want to add movieclips to the stage from the library using AS2, then you need to assign them each an Identifier via right clicking them in the library and selecting the Linkage option... from there you slect the option to Export for Actionscript and then assign the Identifier.
    You then use the attachMovie() method to make use of that Identifier to dynamically load the library object.

  • How to make youtube video gallery auto play (&autoplay=1) work properly?

    Does anybody know how to make youtube videos play when clicked on the thumbnails in the video gallery? I have added the auto play function in the iframe code
    (<iframe width="600" height="335" src="http://www.youtube.com/embed/lwnhB8PEuDY? rel=0&autohide=1&showinfo=0&autoplay=1&theme=dark&color=white&modestbranding=1" frameborder="0" allowfullscreen></iframe>)
    for both videos but both videos play at the same time. The videos stop playing at the same time when once clicked on one of the thumbnails.
    Here is html test file and Muse project file to see what I mean.
    Help would be much appriaciated.
    Silvis.

    Hi Vinayak,
    Thank you for you response.
    Here silvis.co.uk/muse_test.zip is a valid link.

  • How can you shrink the size of an upright picture to make it smaller without losing any of the detail in it??? At the moment, if I view them on my laptop, landscape photos fill the screen, but portrait photos only show the middle part.

    How can you shrink the size of an upright picture to make it smaller without losing any of the detail in it (in Slideshow)??? At the moment, if I view them on my Mac Laptop, landscape photos fill the screen, but portrait photos only show the middle part, so I loose the top and bottom of the picture.  Have tried cropping, but that means I lose top and bottom part of the picture, so that is not the answer!!

    Homestly haven't a clue what's going on there. 
    Try trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder.
    (On 10.7: Hold the option (or alt) key while clicking on the Go menu in Finder to access the User Library)
    (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    What's the plist file?
    For new users: Every application on your Mac has an accompanying plist file. It records certain User choices. For instance, in your favourite Word Processor it remembers your choice of Default Font, on your Web Browser is remembers things like your choice of Home Page. It even recalls what windows you had open last if your app allows you to pick up from where you left off last. The iPhoto plist file remembers things like the location of the Library, your choice of background colour, whether you are running a Referenced or Managed Library, what preferences you have for autosplitting events and so on. Trashing the plist file forces the app to generate a new one on the next launch, and this restores things to the Factory Defaults. Hence, if you've changed any of these things you'll need to reset them. If you haven't, then no bother. Trashing the plist file is Mac troubleshooting 101.

  • How to make things fly without a greenscreen in Motion 5

    How to make things fly without a greenscreen in Motion 5

    green-screen = color-key is just one method to 'punch out' the wanted parts of a pic from the unwanted.
    other methods:
    • luma-key: object is in front of a plain black (or white) background ...
    • alpha-key: 'object' is a computer-generated image, rendered with an alpha-key
    • rotoscoping: you mask the the object by hand from the unwanted parts.
    ...and 'fly' is just key-framing the scenery so it looks like the object is hovering over all .........
    very unspecific question, hm?

  • I am new to Firefox; how do I set up for auto fill for the various forms that need the same info time and time again; thanks.

    I am new to Firefox; how do I set up for auto fill for the various forms that need the same info time and time again; thanks.

    Make sure that you do not run Firefox in permanent Private Browsing mode.
    *https://support.mozilla.org/kb/Private+Browsing
    *Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    *Deselect: [ ] "Always use private browsing mode"
    *Select : [X] "Remember search and form history"
    See also:
    *https://support.mozilla.org/kb/Form+autocomplete
    <i>[locking thread due to the age]</i>
    If you have further questions then please start a new thread.
    *[[/questions/new start a new thread]]

  • My InD docs auto-expand from the dock - how can i stop it?

    why do my InD docs auto-expand from the dock when i close an active InD doc or make InD the active app (tabbing through dock apps) — and more importantly, how can i make it stop. its driving me crazy.

    that's not really the problem.
    clearly few others have encountered this.
    1. i open an InD document and make edits.
    2. i get an email from a client who'd like edits made in an illustrator file.
    3. i place the current InD document i've been working on, into the dock — I DO NOT CLOSE INDESIGN
    4. i tab thru my OPEN apps, and highlight illustrator; i open the Illus doc, make the edit, send the proof.
    5. i get a NEW request to make a flyer from scratch.
    6. i tabbed through my OPEN apps and select IND.
    7. i hit command-N, but before the "new document box can open" —
    7. the document i had originally worked on, and previously docked, automatically expands from the dock and becomes active. if i close this document, and there others i had previously worked and then placed in the dock, those expand as well. i have to deal with EVERY InD document (because they have not automatically expanded and become active) before i can create a new document.
    i have stopped docking my InDesign documents. i close them and re-open them as i need them. its not worth the trouble. but its supper annoying — especially if i'm working on several things at once, which is usually the case.
    four waters
    PRESIDENT
    four waters media, inc.
    916/743-2782 I cell
    concept  I  messaging strategies  I  design
    Say what you mean. Mean what you say.
    facebook.com/FourWatersMedia

  • Is there another way of getting apps from the appstore without putting your credit card number in, ive heard about the itunes gift card thing can anybody just give me more info about that and how i can buy free things free things from the appstorepls help

    Is there another way of getting apps from the appstore without putting your credit card number in, ive heard about the itunes gift card thing can anybody just give me more info about that and how i can buy free things free things from the appstore...pls help as im only a teenager and have no credit credit and my parents dont trust me with theres and they dont care about the fact that you can set up a password/.... PLEASE SOMEONE HELP I WILL BE SO GRATEFUL... And i would really like to get the iphone 4 but if there is no way of etting apps without your credit number then i would have to get a samsung galaxy s3 maybe ...

    You can set up an Apple ID without a credit card.
    Create iTunes Store account without credit card - Support - Apple - http://support.apple.com/kb/ht2534

  • How can I sync apps from my iTunes on Macbook Air without syncing apps from the iPad 2 to my Macbook Air?

    How can I sync apps from my iTunes on Macbook Air without syncing apps from the iPad 2 to my Macbook Air? (As my Macbook Air is only 64GB and my iPad is 64GB and that my Macbook Air only has 40 GB left...) Or is there no other way but to sync apps from iTunes to iPad without syncing apps from iPad to iTunes(it says Backing Up , then it says Converting files to iTunes, then it shows the name of the app on the bottom...)

    Yes, sign in with the same Apple ID as your stolen one in the new iPod Touch.

Maybe you are looking for

  • Error while deploying an apache ant script in Jdeveloper for webcenterspace

    Hi, I am trying to deploy the ExtendWebCenterSpaces project in Jdeveloper. I right clicked the build.xml -> Run Ant Target -> clean stage. This was successful. However, when I right-click build.xml -> Run Ant Target -> deploy-shared-lib, I get the fo

  • Safari cannot open the page because the server cannot be found (Cellular Data)

    Hi there. I'm having some trouble loading a website (that I've built) from Safari on my iPhone via cellular/4G, as the topic states, it comes up with the error: Safari cannot open the page because the server cannot be found All other websites load no

  • Scripting for database connection

    I am wondering if it is possible to create a new panel (like the folders panel). The reason I ask is that, at work we use bridge to process all of our images, but use a database to store them all. The database uses a tree structure that I want to see

  • Created 'unread' mails in 'Sent' box

    If I reply to a message, there are no problems. However, when I create a new message and send it, it shows up in my 'Sent' box as unread, i.e. the little blue dot appears next to the message in the 'Sent' box. This is a new problem since I upgraded t

  • Creating an Network IP tool

    Hi, I just have a few questions. I run a couple computer labs and they all are on the same subnet (ex. 202.128.34.1), and all the computers have unique static IP addresses (ex. 202.128.34.34). Many times I forget what IP addresses I have already assi