Hi,

i think you cannot update single components in an iframe because it can be 
theoretical possible that the site is hosted on a different server or comes 
from a different session. But you can update the whole iframe with JavaScript 
if you like. Here is a short example:

<!-- submit should trigger the JavaScript -->
<tr:inputText autoSubmit="true" id="inputComp" value="#{bean.text}" 
label="InputText:"/>

<iframe id="embeddedComp" frameborder="0" marginheight="0"
  marginwidth="0" scrolling="auto" src="/embeddedComp.faces" align="middle"
  height="100%" width="100%"/>

<!-- re-render the iframe -->
<trh:script id="script-embeddedCompRefresh" 
  text="var embeddedComp = document.getElementById('embeddedComp'); 
embeddedComp.src='/embeddedComp.faces';"
  partialTriggers="inputComp" />

Hope this will help you...

Regards
Sven

-----Ursprüngliche Nachricht-----
Von: hij [mailto:[EMAIL PROTECTED] 
Gesendet: Sonntag, 25. November 2007 16:14
An: users@myfaces.apache.org
Betreff: Re: [Trinidad] Refreshing of components within an iframe via PPR


Can nobody help me?
Can I realize that with Trinidad?


Thanks,
hij



hij wrote:
> 
> Hi!
> 
> I'm using Trinidad 1.0.2.
> I have a parent-jsf-page which contains an iframe and other components.
> The iframe contains/refers to a child-jsf-page. 
>  
> Now here's what I'd like to realize:
> If a specific component on the parent-page is changed, another 
> specific component within the iframe shall be updated/refreshed via 
> the PPR-feature.
> 
> 
>     Example of my problem:
>       the parent-jsf-page contains:
>           -   inputText-component (is in a form; id is set;
> autoSubmit-attribute is 'true')
>           -   iframe-component contains:
>                  -   outputText-component (partialTriggers-attribute
> contains the id of the
>                                                       
> inputText-component)
> 
>         If the inputText-comp is changed, the outputText-comp shall be 
> refreshed via PPR. But it doesn't
>         work.
> 
> 
> So can anyone tell me how to refresh a specific component within an 
> iframe when a PPR-request is triggered by another specific component 
> an the parent-page via PPR ?
> 
> [And how works the whole thing vice versa: If I want a component on 
> the parent-page to refresh when a component within an iframe is 
> changed?]
> 
> Thank you very much,
> hij
> 
> 

--
View this message in context: 
http://www.nabble.com/-Trinidad--Refreshing-of-components-within-an-iframe-via-PPR-tf4843264.html#a13936462
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to