Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to call partial trigger on JSFF component from separate managed bean?

eevictimNov 17 2010 — edited Nov 18 2010
Guys and Gals,

Using JDev 11.1.1.2.0. Looked on the forums and google. Initial results aren't so great.

Is it possible to call a PPR on a JSFF component from a separate managed bean? It seems calling the FacesContext in this instance calls the root JSPX, which only contains one child: the RichDocument.
      UIComponent component =
         FacesContext.getCurrentInstance().getViewRoot().findComponent("pc1:table1");
      if (component != null)
      {
         AdfFacesContext context = AdfFacesContext.getCurrentInstance();
         context.addPartialTarget(component);
      }
      System.out.println(FacesContext.getCurrentInstance().getViewRoot().getChildCount());
Returns 1 :(

Ideas for a workaround?

Edited by: LovettWB on Nov 17, 2010 3:39 AM

Edited by: LovettWB on Nov 17, 2010 4:11 AM

Edited by: LovettWB on Nov 17, 2010 4:12 AM
This post has been answered by Joonas Linkola-Oracle on Nov 17 2010
Jump to Answer

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Dec 16 2010
Added on Nov 17 2010
8 comments
1,325 views