You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Wolfgang <wk...@ebi.ac.uk> on 2007/11/30 10:47:48 UTC
a4j:poll reRender
Hi,
the homePage.print method sets a value for the homePage.text and then
the poll should reRender the h:outputText.
But it does not work...Any ideas?
Cheers
<h:form id="form">
<h:panelGrid id="grid2">
<h:outputText id="outText" value="#{homePage.text}"></h:outputText>
</h:panelGrid>
</h:form>
<a4j:region>
<h:form>
<a4j:poll id="polling" interval="2000" enabled="true"
actionListener="#{homePage.print}" reRender="supp">
</a4j:poll>
</h:form>
</a4j:region>
Re: a4j:poll reRender
Posted by Matthias Wessendorf <ma...@apache.org>.
IMO tags like "ajax-region" are ugly.
I am not really familiar w/ ajax4jsf anyway, but the Trinidad' poll
component works.
The doc is visible on [1] and [2] shows a demo.
That said, using POLL is also, something... well :-)
Imagine 5000 users all watch the same page, that does a poll very 1000 ms :-))
HTH,
Matthias
[1] http://myfaces.apache.org/trinidad/trinidad-api/tagdoc/tr_poll.html
[2] http://www.irian.at/trinidad-demo/faces/components/poll.jspx
On Nov 30, 2007 10:47 AM, Wolfgang <wk...@ebi.ac.uk> wrote:
> Hi,
>
> the homePage.print method sets a value for the homePage.text and then
> the poll should reRender the h:outputText.
> But it does not work...Any ideas?
>
> Cheers
>
> <h:form id="form">
> <h:panelGrid id="grid2">
> <h:outputText id="outText" value="#{homePage.text}"></h:outputText>
> </h:panelGrid>
> </h:form>
>
>
> <a4j:region>
> <h:form>
> <a4j:poll id="polling" interval="2000" enabled="true"
> actionListener="#{homePage.print}" reRender="supp">
> </a4j:poll>
> </h:form>
> </a4j:region>
>
>
>
>
--
Matthias Wessendorf
further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org