After a little more thought, it would be really cool to implement a
partialTriggers attribute on the custom component, and in the decode
method, add the component as PPR:
public void decode(FacesContext context)
{
Map<String, String> parameters =
context.getExternalContext().getRequestParameterMap();
Object source = parameters.get("source");
String id = this.getClientId(context);
if (id.equals(source))
{
RequestContext.getCurrentInstance().addPartialTarget(component);
}
}
Is that possible?
Shawn
________________________________
From: Bertrand, Shawn R
Sent: Friday, March 09, 2007 12:58 PM
To: [email protected]
Subject: PPR effects on custom component
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