How to Render A Page From beginning(even if it was rendered)?

Hi there,
our problem is like...
we use popup windows in our jsf ERP application to fill some fields of opener window,
like when we open the popup window, there are a few query fields and sorting part and datatable, selection fills the opener window's specific areas,
lets come to the problem, after querying and closing the window,when we want to reopen that popup it shows the old page, with datas inside it....
we solved the problem by resetting bean(session) in the page code and giving null values to the components in the components.
but we want to bring a global solution, we have lots of different popups like this, and all these popups are opening via javascript with a 'reset' parameter.
we want to render the page from beginning if it has 'reset' parameters.(this means if it was rendered before , render component tree from beginnin even if it exist)
we tried to do this at phaseListener before restroView, but failed.
any brilliant solution with code example?
regards
Edited by: etahan on Oct 30, 2008 2:21 AM

what i find as a solution , to check these pages in a phaseListener. but at which phase?
if u use before RestoreView u wont be able to get viewId , so it is better to check this at after RestoreView Phase,
I already eliminate other phases
Because I want only a fresh render from beginning so no need to tire the server for nothing.
so second problem how to distinguish the popup query windows from others
because i dont want this check to be done for every page:)
when we call these popup windoes we send a parameter that u can pick up anything useful for u, we use “reset” here, and u can pick this code inthe
public void afterPhase(PhaseEvent e) method.
FacesContext context=FacesContext.getCurrentInstance();
HttpServletRequest request = (HttpServletRequest)context.getExternalContext().getRequest();
if(request.getParameter(“reset”)!=null)
if(e.getPhaseId()==PhaseId.RESTORE_VIEW)
{ Application application = context.getApplication();
ViewHandler viewHandler = application.getViewHandler();
UIViewRoot viewRoot =viewHandler.createView(context,context.getViewRoot().getViewId());
context.setViewRoot(viewRoot);
}of course u have to register ur phase listener in your faces-config
nowww whenever one of the pages with “reset” paramater
it will be cleared and rendered in that way.
but opppps probably u will get data in ur datatable! Probably because u use session bean ,
u can sort this problem out doing like this
in the Getter method of ur bean instance,
check the “reset” parameter if it exists then
set ur bean null, then u wont have data in ur binded fields.
Edited by: etahan on Oct 30, 2008 8:14 AM

Similar Messages

  • In alv report , how to reserve 20 lines from beginning of page

    hi experts
    in alv report , how to reserve 20 lines from beginning of page.
    regards
    subhasis.

    If by reserve you mean should not move on scrolling then make them KEY from fieldcatalog.
    But I think maximum of 10-12 can be handled by that.
    Regards,
    Amit
    Reward all helpful replies.

  • How do you extract pages from .indd to create a new .indd?

    How do you extract pages from .indd to create a new .indd?

    Laubender schrieb:
    @moseymums – two answers here:
    1. Duplicate the document and remove all not wanted pages.
    2.a Duplicate all selected pages in the Pages Panel to a different open InDesign file (the target) with the "Move Pages…" command.
    2.b Remove all unwanted pages from the target InDesign file.
    Uwe
    But take care on text threads accross several pages. If you delete a page with a text frame linked to a thread accross several pages, the text will change to the beginning of the thread on every first page.
    So it might be good to run a script which will unlink threadened text frames before.
    If you have often to do this task, there are several plugins which will help you to perform this. E.g. Output factory from http://zevrix.com/

  • How do I transfer Pages from one user account to another

    How do you transfer Pages from one user account to another on the same Mac?

    Welcome to the Apple Support Communities
    If you haven't modified anything, Pages is installed on /Applications. All users have access to this folder, identified as "Applications" on the Finder sidebar, so you don't have to move anything, because Pages will work on all your users.
    If you have installed Pages on ~/Applications (being ~ your user folder), then you have to move Pages to /Applications. After doing this, you will be able to access to Pages on all users

  • How to open web pages from japplet??

    Hi
    Does anybody know how to open web pages from java japplet??
    Any help is apreciated!
    zick

    the getAppletContext() method of the Applet class will get you an AppletContext, with which you can call the ShowDocument(URL url) or ShowDocument(URL url, String target) method...
    check it out at http://java.sun.com/j2se/1.4/docs/api/java/applet/AppletContext.html
    have a good one :)
    Jay

  • How do I prevent Pages from changing earlier parts of a document when I am in an 8 page newsletter. Going back to check something and items are jumbled up!

    How can I stop Pages from changing parts of a document when I am progressing through an 8 page newsletter. When I go back to check something some headings have moved and been put out of context. I can't lock the individual pages of the document to prevent this happening.

    The Amazon iWork '09 is a DVD in a boxed set.
    Downloading is transferring something from the Internet.
    I think you are talking about not having a DVD drive?
    To install the DVD version, either get an external USB DVD drive, they are cheap on eBAy or borrow another computer and drag the iWork Installer onto a USB Flash Drive and install from that.
    Peter

  • How do you combine pages from separate PDFs?

    How do you combine pages from separate PDF files into one document?

    I use Adobe Acrobat for this.

  • How to block a page (from a business job searching website) from appearing on my screen without me searching for it?

    How to block a page (from a business job searching website) from appearing on my screen without me searching for it?

    Look under:
    System preferences > Network > WiFi > ( Advanced ) > DNS
    System Preferences > Network > Ethernet > ( Advanced ) > DNS
    There should be two or more IP addresses there.
    Those addresses should be EXACTLY the ones your current ISP provided when you signed up for service. They do not start with 85 or 86 -- those are hacker sites.
    If you are in the US, you could also use OpenDNS:
    208.67.222.222
    208.67.220.220

  • How do I install Pages from iWorks on my iMac onto the iPad?

    How do I install Pages from iWork on my iMac onto my iPad?

    You don't. The Mac version of Pages works on Macs - not on iPad.
    You need to buy the iPad version of Pages from the AppStore, and install that on your iPad:
    http://itunes.apple.com/gb/app/pages/id361309726?mt=8

  • How can I delete pages from a pdf file

    How can I delete pages from a pdf file

    Hi timk,
    None of the Acrobat.com online services allow you to edit a PDF file. But, in checking your account, I see that you purchased an Acrobat Standard subscription, and you can certainly use that to edit a PDF file.
    Have you downloaded and installed Acrobat Standard? It sounds to me as though you may be opening the PDF file in Adobe Reader, rather than Acrobat. (Reader doesn't allow you to edit PDF files.)
    If you haven't already, download and install Acrobat from https://cloud.acrobat.com/acrobat. Then, make sure that you're opening your PDF files in that rather than Reader, when you want to edit them.
    Please let us know how it goes!
    Best,
    Sara

  • How do i extract pages from within a pdf document?

    how do i extract pages from within a pdf document?

    Hi adobespurs,
    To extract pages from a PDF, you need to use Acrobat. If you don't have Acrobat, you can try it for free for 30 days. Please see www.adobe.com/products/acrobat.html for more information.
    Best,
    Sara

  • How do I delete pages from my iPhone without it being deleted from my macbook pro as well?

    how do I delete pages from my iphone without deleteing it from my macbook pro as well?

    Hold you finger down on the iPone App icon until it starts shaking then hit the x to delete it.
    Pages does not get deleted from your Mac because they are 2 separate applications on two separate operating systems, that just share a same file format.
    Peter

  • How do I delete pages from Preview (Mt Lion)?

    How do I delete pages from Preview? (Mountain Lion)

    Oh so you want to clear the list of recently opened files. Apple Logo, Recent Items, at the bottom Clear Menu. That should do it.
    No that's not it.
    With Preview open File menu item. Oh well strikke that also. It seems the option abiove does clear all Recently opened items.

  • How do I extract pages from a Secured PDF file

    How do I extract pages from a Secured PDF file?

    Adobe would call that hacking, and don't allow discussion of it in this forum. You should contact the copyright holder and see if they are prepared to release the password, or an unsecured document, to you. If it's something made for you like a bank statement you should tell the bank how inconvenient their choices are.

  • Just had Adobe Reader 11 installed on my Mac desktop.  How do I extract pages from a PDF?

    Just had Adobe Reader 11 installed on my Mac desktop.  How do I extract pages from a PDF?

    You can extract pages with Adobe Acrobat, not Adobe Reader.

Maybe you are looking for

  • Illustrator CS4 error notification: "Error Loading Plugins. PhotoshopImport.aip"

    I am working on a Mac 10.10 Yosemite with Adobe Illustrator CS4 however every time I try to open Illustrator it brings up error notification: "Error Loading Plugins. PhotoshopImport.aip". I can't click on the OK button and the only thing I can do is

  • I am getting an error when trying to add a caption.

    I get the following error when trying to add a caption to a photo.   "An error occurred while reading files or writing files to disc.  The disc may be full or there may be a problem with the source media."    I am running Windows 7 Pro.   The files a

  • Problems with JFrame

    I have this class which connect to a mySQL-database: import java.sql.*; import java.net.*; import javax.swing.*; import java.awt.*; import java.awt.event.*; public class main {     private static JFrame frameLoading;     public static void main(Strin

  • HT201401 Lower volume button not working

    Kinda of inconvenient being not able to lower down the volume.

  • Derived Column: Assigning and and Using as a Condition

    Hi, I have 1 derived column component with 2 derived columns (see below). 1st derived col: DerivedColName: col1 Derived Column: Replace 'col1' Expression: REPLACENULL(col1, col1_DHH) 2nd derived col: DerivedColName: col2 Derived Column: Replace 'col2