Created
June 15, 2013 08:48
-
-
Save olivier-schmitt/5787439 to your computer and use it in GitHub Desktop.
JSF and AJAX : use case sample
This file contains 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
<h:body> | |
<h:form id="mainform"> | |
<h:commandButton | |
id="cmd" | |
action="#{ajaxCounterBean.execute}" | |
value="Ajax" | |
immediate="true"> | |
</h:commandButton> | |
<h:panelGroup id="output"> | |
<input id="counter" value="#{ajaxCounterBean.count}"/> | |
</h:panelGroup> | |
</h:form> | |
<h:panelGroup id="output2"> | |
<input value="#{ajaxCounterBean.count}"/> | |
</h:panelGroup> | |
<h:form id="secondform" prependId="false"> | |
<h:panelGroup > | |
<h:panelGroup id="output3"> | |
<input value="#{ajaxCounterBean.count}"/> | |
</h:panelGroup> | |
</h:panelGroup> | |
</h:form> | |
</h:body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment