Skip to content

Instantly share code, notes, and snippets.

@donatasnicequestion
Created July 27, 2012 16:03
Show Gist options
  • Save donatasnicequestion/3188872 to your computer and use it in GitHub Desktop.
Save donatasnicequestion/3188872 to your computer and use it in GitHub Desktop.
A excerpt with essential parts to show a usage of af:activeOutputText in conjunction with af:ajax tag
<!-- Data push --> <!-- anonymous javascript function onevent does nothing -->
<f:ajax event="propertyChange" onevent="function(e) {}" render="t1 t2 ot1">
<af:activeOutputText value="#{chatListenerBean.message}" id="aot1">
<f:ajax/> <!-- this tag does nothing -->
</af:activeOutputText>
</f:ajax>
<!-- Output text Alive:true -->
<af:outputText id="ot1"
value=" Alive:#{chatListenerBean.pong}"
clientComponent="true"/>
<!-- .. layout tags stripped .. -->
<!-- Table with chat messages - displayed in a center -
some formatting attributes stripped -->
<af:table id="t1" value="#{chatBean.messages}" clientComponent="true"
var="row" contentDelivery="immediate" displayRow="last" >
<!-- Table Users displayed on a right panel -->
<af:table id="t2" value="#{chatBean.users}" clientComponent="true"
contentDelivery="immediate" var="row">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment