What you need to do, at a minimum:

- In your Renderer, make sure that the root element
 passes the UIComponent to ResponseWriter.startElement(),
 and that a unique ID is written on that same root element.

If you do that, and just that, RequestContext.addPartialTarget() will
work.

If you want partialTriggers to work, then you need to:

- Add a partialTriggers attribute on your component
- If you don't extend from UIXComponentBase, copy the following code
 from UIXComponentBase.decode() to your decode() methods:

   Object triggers = getAttributes().get("partialTriggers");
   if (triggers instanceof String[])
   {
     RequestContext rc = RequestContext.getCurrentInstance();
     if (rc != null)
       rc.addPartialTriggerListeners(this, (String[]) triggers);
   }

And that's it!

-- Adam




On 3/9/07, Bertrand, Shawn R <[EMAIL PROTECTED]> wrote:
Hi all,



I have a custom component I've developed that I'd like to be able to
refresh with PPR as a result of a selectOneChoice component trigger.
The custom component simply outputs an HTML table at this point, so
wouldn't I need to just wrap the custom tag with a panelGroup or some
other component and make that component trigger off of the
selectOneChoice?  Are there any requirements on the custom component
side in order for PPR to work?



Thanks in advance,



Shawn




Reply via email to