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@.begin}"/>
- <h:commandButton id="inc" value="Increment"
- action="#{@componentName@.increment}"/>
- <h:commandButton id="end" value="End"
- action="#{@componentName@.end}"/>
+ action="#{@componentName@.begin}" rendered="#{not
conversation.longRunning}"/>
+ <h:commandButton id="inc" value="Increment"
+ action="#{@componentName@.increment}"
rendered="#{conversation.longRunning}"/>
+ <h:commandButton id="end" value="End"
+ action="#{@componentName@.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@.begin}"/>
+ action="#{@componentName@.begin}" rendered="#{not
conversation.longRunning}"/>
<h:commandButton id="inc" value="Increment"
- action="#{@componentName@.increment}"/>
+ action="#{@componentName@.increment}"
rendered="#{conversation.longRunning}"/>
<h:commandButton id="end" value="End"
- action="#{@componentName@.end}"/>
+ action="#{@componentName@.end}"
rendered="#{conversation.longRunning}"/>
</div>
</h:form>