-
1. Re: [a4j] poll+actionparam
ilya_shaikovsky Dec 14, 2007 9:28 AM (in response to mail.micke)parameetrs works fine for me for poll component.
-
2. Re: [a4j] poll+actionparam
vgangel Dec 14, 2007 9:47 AM (in response to mail.micke)<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<ui:composition>
<rich:separator height="1"/>
<a4j:region>
<h:form>
<a4j:poll id="poll" interval="100" enabled="#{userBean.pollEnabled}" reRender="serverDate"/>
</h:form>
</a4j:region>
<h:form>
<h:panelGrid columns="2" width="80%">
<a4j:commandButton style="width:120px" id="control"
value="#{userBean.pollEnabled?'Stop':'Start'} Polling"
reRender="poll, control">
<a4j:actionparam name="polling" value="#{!userBean.pollEnabled}"
assignTo="#{userBean.pollEnabled}"/>
</a4j:commandButton>
<h:outputText id="serverDate" style="font-size:16px" value="Server Date: #{userBean.date}"/>
</h:panelGrid>
</h:form>
<rich:separator height="1" style="padding-top:10px"/>
</ui:composition> -
3. Re: [a4j] poll+actionparam
mail.micke Dec 14, 2007 10:15 AM (in response to mail.micke)What I was thinking about (and tried) is something like this:
<a4j:poll ....> <a4j:acctionparam .../> </a4j:poll>
My test didn't work, sometimes it seemd to work for the first couple of polls but I'm not sure.
Is it suppose to work, then I'll give it another go and properly check what is going on.