"Reset" pageflow portlet state (SP2 Fix causing problems)

Hello-
In SP2 there was a modification that prevents the begin() method from being called
in a pageflow portlet on a page refresh. I am trying to port an application that
depends on the former behavior. Basically when I click on the navigation item
for a page, I want the portlet on that page to run the begin() action, regardless
of the current state. Does anyone know how to force this behavior? Is there a
way I can reset the state of a portlet after running a specfic action?
thanks,
Howie

A little more investigation reveals that "_nfls=false" actually resets ALL pageflows.
Not what we wanted.
We have a messy technique that depends on us knowing the pageLabel, the portlet
definition label AND the controller path. We're not proud of it, so any suggestions
are very welcome.
I've received the following suggestion from BEA, but this is also too messy and
disjointed for us to be happy with:
Description:
CR129301 adds a new attribute called "refreshAction" to the
<netuix:pageflowContent> control in .portlet files. This new attribute allows
you to specify a page flow action to be executed during refresh conditions.
This attribute is only available for page flow portlets.
To use this new functionality, open the .portlet file for a page
flow portlet in a text editor and add the "refreshAction" attribute to the
<netuix:pageflowContent> control:
<netuix:content>
<netuix:pageflowContent contentUri="/portlets/test/testController.jpf" refreshAction="portalRefresh"
/>
</netuix:content>
The value of the "refreshAction" should be the name of an action in your page
flow. If the action specified does not exist, you will get
ActionNotFoundExceptions when the page flow portlet is refreshed.
To avoid unexpected ActionNotFoundExceptions, specify a default refresh action
in your web application's Global.app:
* @jpf:action
* @jpf:forward name="success" return-to="page"
protected Forward portalRefresh()
return new Forward("success");
On refresh this action will cause the portlet to render the last page
that was displayed by the page flow. Placing this action in Global.app will
cause it to be invoked for any page flow that does not explicitly provide a
refresh action.
The existing page flow portlet refresh behavior is still available even with
the "refreshAction" specified. The page flow's onRefresh() lifecycle method
is always called. The exact behavior with the refreshAction enabled is:
1. The refreshAction is executed
2. If the refreshAction forwards to somewhere else, we don't restore attributes
from the previous request. If the refreshAction returns null, the old request
attributes are restored as if the refreshAction was never invoked
3. onRefresh is called
So to not have the attributes from the previous request restored you must:
1. Specify a "refreshAction" for the page flow portlet
2. Make sure the refreshAction forwards somewhere (return-to="page" and
return-to="action" should work fine as a default case)
"Graham Patterson" <[email protected]> wrote:
>
I'm sorry it's taken me a while to get around to trying this, but...
THANK YOU! This innocent looking parameter is exactly what we need.
just add "_nfls=false" to your URL to reset the pageflow state.
I haven't found this documented anywhere, except as a reserved parameter,
so I
wonder if this could change in a future release?
"mikeladze" <[email protected]> wrote:
try to add the loadstate param (GenericURL.LOADSTATE_PARAM)
to your page url and set it to false.
"Graham Patterson" <[email protected]> wrote:
We too, desperately need a fix to reset pageflow state.
This should enable us to go from one page to another with confidence
that the
destination page is in an appropriate state.
We really need a way to do this from a pageflow action method.
The closest I have got is for a pageflow to set it's next action to"begin"
when
the page changes. This way, when the user returns to the page it is
in it's initial
state. This technique is initiated from a JSP and has severe limitations.:
Define a backing file for one of the books (this seems to get invoked
for ALL
incoming URLs).
In the handlePostbackData method, check for a "pageChange" parameter
and invoke
setupPageChangeEvent(pageChange) on the BookBackingContext. This takes
the user
to the specified page in it's current pageflow state.
NOTE: handlePostbackData is called BEFORE any action in the pageflow,
so this
sequence has to be initialised from the JSP (i.e. an anchor with a
"pageChange"
parameter, or a form with a "pageChange" hidden field). This is aserious
limitation,
as the destination page may depend on data entered in a form, or there
may be
some server-side validation to do which should result in a return to
the JSP with
an error message.

Similar Messages

  • HT5642 Upgraded this morning. All worked fine for about 30min then "no service". Still the same problem and a reset of the device only fixes the problem for 15min. then we are back to no service?? When will apple fix this???

    Upgraded this morning. All worked fine for about 30min then "no service". Still the same problem and a reset of the device only fixes the problem for 15min. then we are back to no service?? When will apple fix this???

    Tried to reset network settings ...only fixes it for 15min. Did a firmware restore and a clean new phone setup. no settings restore. still have network service after around 60min. still running 6.1. i do get a prompt that i have to update settings to LTE. Have not excepted the settings as yet. Cellular data is still set to 3G....

  • I have Safari on an HP desktop running Windows 7, 64-bit. When I want to clear the history from Safari, the "Reset Top Sites Also" button is always checked. This can cause problems. Any way to have it unchecked all the time?

    I have Safari on an HP desktop running Windows 7, 64-bit. When I want to clear the history from Safari, the "Reset Top Sites Also" button is always checked. This can cause problems. Any way to have it unchecked all the time?

    Welcome to the HP Forums Hinalover,
    I see by your post that you are having issues with the print spooler on the Windows 7 computers.
    I can help you with this issue.
    Download and run the Print and Scan Doctor. It will diagnose the issue and might automatically resolve it. Find and fix common printer problems using HP diagnostic tools for Windows?
    Try running the Microsoft Fix It Tool to see if it will fix the print spooler.
    Diagnose and repair Windows File and Folder Problems automatically.
    You can also run the System File Checker to repair corrupted or missing files.
    System File Checker: Run sfc /scannow & analyze its logs in Windows 7 | 8.
    You might end up having to do a repair of Windows.
    Please let me know the results.
    Have a nice day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • My Mac is 15 months old and all of a sudden it has started resetting the time and date then I get a message saying not all apps will work because of the pre Jan date any help as to why ? Causing problems with wireless router.

    My Mac book pro is 15 months old and now suddenly it has started resetting the date and time, causing problems with applications and my wireless access. Any suggestions as to why this is happening and how to fix it?

    Seems the time isn't being saved to your computer correctly, it may be a corrupt file that isn't saving the time anymore.
    You can move the
    com.apple.systempreferences.plist
    file out of your Users/Library/Preferences folder to the desktop and reboot.
    then go to your System Preferences > Date and Time and set a time server close to your location (or in your time zone)
    (trash the file on the desktop if no ill issues occur later on)
    or you can follow/bookmark these support docs to reset your PRAM and SMC (and for future reference)
    http://support.apple.com/kb/TS2570
    http://support.apple.com/kb/TS1440
    http://support.apple.com/kb/HT1455
    http://support.apple.com/kb/ht3964
    http://support.apple.com/kb/HT1379
    http://support.apple.com/kb/ht1379
    http://support.apple.com/kb/HT1509
    I don't remember exactly where OS X is keeping it time settings now, but I think one of those choices should help resolve your issue and won't hurt anything giving them a shot. Perhaps someone else could refresh my memory.

  • Every time I try to download an app it says billing info is incorrect but its all correct it won't let me sign in using a diff apple id even when I reset my phone anyone else had this problem if so how do I fix it?

    Every time I try to download an app it says billing info is incorrect but its all correct it won't let me sign in using a diff apple id even when I reset my phone anyone else had this problem if so how do I fix it?

    Amylovelyy wrote:
    Every time I try to download an app it says billing info is incorrect but its all correct ...
    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact
    Amylovelyy wrote:
    ...  it won't let me sign in using a diff apple id ...
    Settings > iTunes and App store > Apple ID = Sign Out... Then Sign In using the preferred Apple ID.
    It should be Noted that anything Downloaded with a Particular Apple ID is tied to that Apple ID and Cannot be Merged or Transferred to a Different Apple ID.

  • HT201407 during a update of apple my iphone 3GS crashed an now the operating system wont load up..ive tried to reset the phone to the factory settings it took 4 hours an completed but my iphone still wont come on..what can i do to fix the problem? please

    during a update of apple my iphone 3GS crashed an now the operating system wont load up..ive tried to reset the phone to the factory settings using itunes it took 4 hours and completed but my phone still wont come on..what can i do to fix the problem? please help #

    In trying to include what information all that I could I should have specified I DON'T KNOW THAT IT WAS DEFINATELY JAILBROKEN when I took it to the apple store they told me there's no way for them to tell if it was jail broken or not. I'm only going by what ppl have told me COULD HAVE BEEN DONE TO THE PHONE. With that said the only thing I know for sure is that the apple tech at the Genius Bar told me that someone took control of my root menu in February &amp; I've had no control of my phone since. I asked him how to regain control &amp; how he knew his exact words were "oh that is out of our scope of capabilities here at this level &amp; you would need an apple engineer to fix it". I said ok then how do I get an apple eng then? He laughed &amp; said you can't!!!! To which I was furious I came home &amp; called apple requesting to speak w/the fraud dept to file a report they said we don't have a fraud dept!! So after a 45 mn phone call again I left w/no answers.
    @TJBUSMC1973-
    I DON'T HAVE THOUSANDS OF DOLLARS TO SPEND HIRING AN ATTORNEY &amp; Although I appreciate your suggestion I fail to how an attorney would be able to facilitate in any way since there's no suspect. I cannot prove that it's him doing it so I certainly can't pursue legal action w/no proof &amp; no money. :'((
    Again I thank you for your advice but I don't think that will help.
    I was looking more for a TECHNICAL way to avoid this happening w/a new phone should I buy one or trying to get them out of my phone now! Such as installing some kind of software protection?? Someway to clear out the entire phone (other than factory reset which was done 10 x's w/no success, etc. if this person got in then there HAS TO BE A WAY OF GETTING HIM OUT, right????

  • I recently purchase an ipad2.  I also have a mac laptop.  Now, when I facetime call using my iphone to my ipad2 or mac, it states busy.  how can i fix this problem?  I have the same apple id e mail for both ipad2 and mac.  it might be getting confuse now.

    I recently purchase an ipad2.  I also have a mac laptop.  Now, when I facetime call using my iphone to my ipad2 or mac, it states busy.  how can i fix this problem?  I have the same apple id e mail for both ipad2 and mac.  it might be getting confuse now.  I want to be able to face time also using my ipad2 to my laptop especially if one of the members of the family is traveling.  Thanks.

    thanks.  your answer was correct, clearer.  I have another question, maybe you can answer.  I just purchase my ipad2 2 days ago.  yesterday, there was a sound.  today there is no sound.  there is a sound only in movies and you tube and music.  but no sound on all apps and keyboards.  I look it up and seems like ther are few that have this problem.  I called walmart coz I bought it there and they told me that they have not heard that before but if I can't fix it, just return it and exchange it with anew one since I have 14 days to do that.  I tried rebooting it and still won't work.  Should I just restore it?

  • Using Mavericks Spelling and Grammar in Pages document causes Pages to freeze. Must Force Quit. Mavericks spell checker works OK in Text and Emails. How can I fix this problem?

    Using Mavericks' Spelling and Grammar in a Pages document causes Pages to freeze, Must Force Quit. How can I fix this problem?
    Mavericlks Spelling and Grammar works in Pages when used manually. And it works automatically in Text and email.

    Another autocorrect bug:
    I type a lot of lyrics, which tend to cotain words like ’cause and ’em instead of because and them.
    I've set up autocorrect instances to change a plain apostrophe with an ending, single curly quote for these words, but they are invariably changed to a beginning, single curly quote mark by Pages. The only way I can get the correct curly quote is to type over the wrong quote manually and hope that I don't have to edit the rest of the word again, as this would cause autocorrect to kick in again and change the quote to the wrong, beginning curly mark again.
    Does anyone know how to get around this tedious problem?

  • I have a classic that seems to be stuck in restore mode, the screen says "do not disconnect'' and i can't restore using itunes. i have tried resetting it and still no good, what can i do to fix this problem ?

    i have a classic that seems to be stuck in restore mode, the screen says "do not disconnect'' and i can't restore using itunes. i have tried resetting it and still no good, what can i do to fix this problem ?

    Be good to know what the diagnostic results are.
    I've also just run into an issue where I couldn't restore an iPod with a corrupt file system, and the "super fix" in that linked article wasn't working for me. I've run across a potentially useful workaround.
    iPod Classic went on the fritz today just after syncing. Couldn't restore via iTunes, kept getting 1439 errors, Windows wouldn't format as FAT32, claimed the "Volume is too big for FAT32". Finally tracked down EaseUS Partition Master Home Edition (Free) and formatted as FAT32 with 128k clusters. The iPod is filling back up again. Might be worth a shot here...
    tt2

  • Will resetting the whole PC fix any problem?

    So I had this problem with my NEWLY HP PAVILION that it said that there was an error in something during the startup. So I researched and look for some ways to fix it. Luckily I found this an answer, in the site too.
    Here's the link: http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01443463&tmp_task=solveCategory&cc=us&dlc=en&lc...
    I did it and everything went well. But then the next time I opened my laptop again, the same problem came. I finally decided to reset everything since I just bought it and I have not made many things with the laptop yet.
    It's in the process of resetting everything now and it's really taking some time. I would just like to know if after this resetting and everything, will the same problem persist?

    Hi,
    Factory reset will bring your machine back to day 1. Unless error due to faulty hardware otherwise it will fix all problems.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • HT4623 I am unable to switch on my IPad as it states that 'iPad is disabled'.  How do i fix this problem when I have no access to the iPad?  Any help or advice will be gratefully received.

    I am unable to switch on my IPad as it states that 'iPad is disabled'.  How do I fix this problem when I have no access to the iPad?  Any help or advice will be gratefully received.

    Forgotten Passcode or device disabled after entering wrong passcode

  • I "Reset Firefox – easily fix most problems", but it doesn't look like the view on getting started: ie

    I "Reset Firefox – easily fix most problems", but it doesn't look like the view on getting started tutorial, ie: there's no "Firefox tab". I would really like to clean out all the old stuff, including add-ons and plug-ins that I've tinkered in, but don't know about or need any more, then start fresh with the latest Firefox. How can I do that?

    The Firefox button does not or did not showupon Windows XP by default.
    It is easy to display that just remove the option to display the menu bar toolbar. Note
    # The functions and available optons are much the same just organised differenttly
    # Menu tool bar may be displayed temporarily; even if the Firefox Button is present: by holding down the keyboard '''Alt''' key
    #To remove the menu toolbar use '''View -> Toolbars -> []Menu Toolbar'''<br /> see [[Display the Firefox button menu instead of the menu toolbar]]

  • I cannot create a new business catalyst site with Dreamweaver CC 2014. The error message states that Dreamweaver cannot connect with server, try again later. How can I fix this problem?

    I cannot create a new Business Catalyst site with Dreamweaver CC 2014 (Mac). The error message states that Dreamweaver cannot connect with server, try again later. In addition, I am also unable to load remotely a previously created Business Catalyst site as it says there is something wrong with my username or password. However when I put my password in and press test connection, it says it has connected successfully. What is going wrong and how can I fix this problem?
    Thanks

    Hi Ozy08,
    Can you try the solutions mentioned in Re: Can't Login to Business Catalyst within Dreamweaver CS6?
    If you still have problems, and you have a purchased version of DW CC, send me your Adobe ID, location, and contact details over a private message. Click my picture and use the message option.
    Thanks,
    Preran

  • After updating to ios 5, my calendar sometimes freezes when entering a new event. I have tried syncing but it doesn't fix the problem. Are there any bug fixes for this? Any ideas would be great thanks, I don't really want to have to reset everything!

    After updating to ios 5, my calendar sometimes freezes when entering a new event. I have tried syncing but it doesn't fix the problem. Are there any bug fixes for this? Any ideas would be great thanks, I don't really want to have to reset everything!

    Try to reset the iPod by  pressing the home and sleep button for about 10sec, until the Apple logo comes back again. You will not lose data doing a reset, but it can clear some glitches after installing new software or apps.

  • Help!  In the middle of using an app my ipad1 will  shut down and return to my homescreen. Also while using Pinterest, the images will disappear and it will have to reset my ipad to return to using the app. Any ideas how to fix the problem?

    Any suggestion on how to fix the problem or what the problem is...would be greatly appreciated.  Thank you!

    Hi there,
    Here are my answer to your questions.
    1) What's causing this problem -- me, software, or hardware?  
    Depends are you listening or playing those songs online ? This Can be caused by Software or Hardware. but based on your description it sounds like that this might just be a driver issue
    2) How can I avoid it? (work-arounds)
    Reinstall SOUNDCARD DRIVER  or get a faster internet connection ( For streaming musics )
    3) How can I eliminate the problem completely?
    Reinstall the soundcard driver, or get a faster internet connection ( For streaming musics )
    4) Is there any way that the sound and internet are actually related problems, or are they just coincidental?
    Soundcard and Internet will be related to each other if you are listening or Playing those songs online. Since it needs to buffer first before you will be able to play the whole song completely without cutting off.
    Message Edited by iSkO on 12-15-2008 09:29 PM
    "I'm Not the Message... Just the Messenger.. i Don't Play the Music... The music plays through me... Im just a Channel..... That's all I AM "

Maybe you are looking for

  • Calendar in a "Crash Loop"

    Today I opened up "Calander" in a Mid-2012 MacBook Air and it continually gives the message that "Calendar unexpectedly quit".  I click to re-open and it just gives the same message.  I've tried shutting down and restarting, but the proble persists;

  • Hard Drive Failed how to backup

    My boss's daughters Macbook Pro has a hard drive failure. You get the blinking folder with the question mark when it starts up. I've tried a lot of different things. 1. I've removed the battery and started it up. No success. 2. I've connected it via

  • Connect Oracle Form Builder 10g to Oracle Database 10g Express

    Hi, I'm new to Oracle. I've installed both form builder and database 10g express. I tried to connect form builder to HR sample database in 10g express with the following: user name: hr password: hr database: hr but I received message: ora-12154: tns

  • How to Restrict one more line item in Purchase Requisition

    Dear SAP MM Guru's My business Requirement is to Restrict one more line item to create in Purchase Requisition, Using T code : ME51N  i have  created a PR with 10 (TEN) Line item's on 20 June '14 , Using T Code : ME52N  on 23 June '14 my business dem

  • Scaling in EvDRE Report

    Hi, Can anyone tell me how can I Scale the values (in thousands or lakhs) in report built through EvDRE?