[Trinidad] panelPopup: how to avoid full page refreshing

2007-09-25 Thread Renzo Tomaselli
Hi, I'm using tr:panelPopup in modal mode only. It works well, but since it can host alternative panels (e.g. components in the Facelets sense), the entire page is refreshed whenever a panel is replaced by another one. Not a nice effect. Panel navigation occurs from user actions (next/previous)

Re: [Trinidad] panelPopup: how to avoid full page refreshing

2007-09-25 Thread Danny Robinson
Renzo, Do you have a small test-case you can post, you certainly should be able to use PPR inside a model panelPopup. Although it may be a better option to use lightweight dialogs for what you're suggesting. Danny On 9/25/07, Renzo Tomaselli [EMAIL PROTECTED] wrote: Hi, I'm using

Re: [Trinidad] panelPopup: how to avoid full page refreshing

2007-09-25 Thread Renzo Tomaselli
Danny, assume a panelPopup holds a Facelets ui:included component. Thus in general it can be anything. All actions originated by panel contents can either to close the panel or to change its contents. In the latter case, refreshing should not affect the overall page. My actual modal panel

Re: [Trinidad] panelPopup: how to avoid full page refreshing

2007-09-25 Thread Andrew Robinson
Why can't you just put a component in the top level of the included page that has partialTriggers for your event generating components? There is no need to re-render the entire page. The PPR works on client IDs, so it doesn't matter if the component is in the DIV tag of a popup (the popup is

Re: [Trinidad] panelPopup: how to avoid full page refreshing

2007-09-25 Thread Renzo Tomaselli
This means that if my panelPopup specifies the id of its contained component as a partialTrigger target, all I need is to generalize the contents to provide a single id to the container. Then *any* action occurring inside that contained component would lead to a container PPR ? Unfortunately,

Re: [Trinidad] panelPopup: how to avoid full page refreshing

2007-09-25 Thread Andrew Robinson
If I am right, a trinidad component can trigger if one of its children have an event, so the following should work: tr:panelPopup tr:panelBox id=popupContents background=transparent partialTrigger=popupContents // your include here /tr:panelBox /tr:panelPopup You can use any trinidad

Re: [Trinidad] panelPopup: how to avoid full page refreshing

2007-09-25 Thread Renzo Tomaselli
This seems not working, I just tried with (added partialTriggers to existing code, not a popupPanel): tr:panelBorderLayout id="navigator" styleClass="navigator" partialTriggers="navigator" under Firebug. This component contains others, with navigation links. Any click forces a full page

Re: [Trinidad] panelPopup: how to avoid full page refreshing

2007-09-25 Thread Adam Winer
On 9/25/07, Andrew Robinson [EMAIL PROTECTED] wrote: If I am right, a trinidad component can trigger if one of its children have an event, so the following should work: No, this example below means repaint the panelBox 'popupContents' if the component itself has an event. This is basically an