[seam-commits] Seam SVN: r9570 - in trunk/seam-gen: view and 1 other directory.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Sat Nov 15 16:55:58 EST 2008
Author: dan.j.allen
Date: 2008-11-15 16:55:58 -0500 (Sat, 15 Nov 2008)
New Revision: 9570
Modified:
trunk/seam-gen/icefaces/view/conversation.xhtml
trunk/seam-gen/view/conversation.xhtml
Log:
show begin and end buttons conditionally based on state of conversation
Modified: trunk/seam-gen/icefaces/view/conversation.xhtml
===================================================================
--- trunk/seam-gen/icefaces/view/conversation.xhtml 2008-11-15 21:55:28 UTC (rev 9569)
+++ trunk/seam-gen/icefaces/view/conversation.xhtml 2008-11-15 21:55:58 UTC (rev 9570)
@@ -31,11 +31,11 @@
<div class="actionButtons">
<h:commandButton id="begin" value="Begin"
- action="#{@componentName at .begin}"/>
- <h:commandButton id="inc" value="Increment"
- action="#{@componentName at .increment}"/>
- <h:commandButton id="end" value="End"
- action="#{@componentName at .end}"/>
+ action="#{@componentName at .begin}" rendered="#{not conversation.longRunning}"/>
+ <h:commandButton id="inc" value="Increment"
+ action="#{@componentName at .increment}" rendered="#{conversation.longRunning}"/>
+ <h:commandButton id="end" value="End"
+ action="#{@componentName at .end}" rendered="#{conversation.longRunning}"/>
</div>
</ice:form>
Modified: trunk/seam-gen/view/conversation.xhtml
===================================================================
--- trunk/seam-gen/view/conversation.xhtml 2008-11-15 21:55:28 UTC (rev 9569)
+++ trunk/seam-gen/view/conversation.xhtml 2008-11-15 21:55:58 UTC (rev 9570)
@@ -27,11 +27,11 @@
<h:form id="@componentName@">
<div class="actionButtons">
<h:commandButton id="begin" value="Begin"
- action="#{@componentName at .begin}"/>
+ action="#{@componentName at .begin}" rendered="#{not conversation.longRunning}"/>
<h:commandButton id="inc" value="Increment"
- action="#{@componentName at .increment}"/>
+ action="#{@componentName at .increment}" rendered="#{conversation.longRunning}"/>
<h:commandButton id="end" value="End"
- action="#{@componentName at .end}"/>
+ action="#{@componentName at .end}" rendered="#{conversation.longRunning}"/>
</div>
</h:form>
More information about the seam-commits
mailing list