How can I reusable component of PPR - java to determine the complete naming container?

Using JDeveloper 11.1.1.4.0

I'm trying to find a way to refresh (PPR) a reusable component when the chain of full path of containers is not available during the design of the component. I want to do the truly free and reusable component confined. If the component was used only on one page, the string of path names naming container would look like "document: model: region: panelcollection:table. However, I don't know what the real string would look like before panelcollection I see this component. In java, how can I determine the full chain of names naming container to pass to a method of partial page refresh? The method I use to update with is lower (uid would be = to the full chain of names naming container). If there is another way to get a RPP on a component, I'm also open to trying this.
    private void partiallyRefreshUIComponent(String uid) {
        FacesContext fctx = FacesContext.getCurrentInstance();
        UIViewRoot viewRoot = fctx.getViewRoot();
        UIComponent component = viewRoot.findComponent(uid);
        partiallyRefreshUIComponent(component);
    }

    private void partiallyRefreshUIComponent(UIComponent component) {
        AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
        if (component != null) {
            adfFacesContext.addPartialTarget(component);
        }
    }
Thank you
Troy

Hello

If the outside of it, you can declarative set up the component for PPR. If you want PPR components inside in the declarative component, then generally refresh is in response to an event (ActionEvent, ValueChangeEvent) on another component in the declarative component. The event object, you get the event source by calling getSource() or getUIComponent(). If the Update component is a close relative, you just call findComponent ('id') of the origin of the event to find a refreshing it.

Frank

Tags: Java

Similar Questions

Maybe you are looking for

  • There are older versions of garageband?

    There are older versions of garageband?

  • Drivers Vista for Satellite P100-188

    Seems not be updates driver for the P series, is likely t be all and if so any idea when. I've only had this machine for a few months (bought from pc world) would like to upgrade to Vista, but there seems to be some problems of software/driver and re

  • Upgrade to Snow Leopard and Time Machine

    Hello. I found this topic in an old topic, but it has been blocked so I couldn't answer. Here is a new. I have a fairly old MacBook Pro... mid-2007. Provided with Tiger. Upgrade to Leopard in 2010 or more. I want to now upgrade to Snow Leopard and ma

  • DVD player not reading disc or disc.

    Hello I bought a 4545 s of HP ProBook Windows 7 64 bit pro service pack 1 last year and never try to use the cd-rom drive. I wanted the cd/dvd drive, think someday I might want to burn a cd or dvd. When I tried to burn a cd/dvd, I realized that the s

  • [LabVIEW 2013] Update Service NOR recommend to install the update for the 2012 LabVIEW runtime engine

    Update service NOR recommend to install the patch f5 for the 2012 LabVIEW runtime engine. However, I have LabVIEW 2013 currently running on this computer and never had installed LabVIEW 2012. Is this expected behavior and it is actually recommended t