Created
July 27, 2012 16:03
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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