You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2016/11/18 11:42:06 UTC
svn commit: r1770367 -
/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/080-sheet/30-event/sheet-event.xhtml
Author: lofwyr
Date: Fri Nov 18 11:42:06 2016
New Revision: 1770367
URL: http://svn.apache.org/viewvc?rev=1770367&view=rev
Log:
TOBAGO-1572: Sheet: use of <tc:columnEvent> not possible with <tc:popup>
Modified:
myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/080-sheet/30-event/sheet-event.xhtml
Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/080-sheet/30-event/sheet-event.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/080-sheet/30-event/sheet-event.xhtml?rev=1770367&r1=1770366&r2=1770367&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/080-sheet/30-event/sheet-event.xhtml (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/080-sheet/30-event/sheet-event.xhtml Fri Nov 18 11:42:06 2016
@@ -17,7 +17,7 @@
* limitations under the License.
-->
-<ui:composition template="/plain.xhtml"
+<ui:composition template="/main.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:tc="http://myfaces.apache.org/tobago/component"
xmlns:ui="http://java.sun.com/jsf/facelets"
@@ -34,6 +34,7 @@
<tc:selectItem itemValue="0" itemLabel="on click with AJAX"/>
<tc:selectItem itemValue="1" itemLabel="on click with full request"/>
<tc:selectItem itemValue="2" itemLabel="on double click with full request"/>
+ <tc:selectItem itemValue="3" itemLabel="open popup on click with AJAX"/>
<f:ajax render="example"/>
</tc:selectOneRadio>
<p>Select an object from the SolarObjects list.</p>
@@ -59,10 +60,48 @@
<tc:resetInputActionListener/>
</tc:event>
</tc:row>
+
+ <tc:row id="sample3" rendered="#{sheetController.columnEventSample == 3}">
+ <f:ajax execute=":::popup" render=":::popup" listener="#{sheetController.selectSolarObject}" id="columnEventPopup"/>
+ <tc:event omit="true">
+ <tc:operation name="show" for=":::popup"/>
+ </tc:event>
+ </tc:row>
+
</tc:sheet>
</tc:box>
- <tc:box id="detail" label="Details">
+ <tc:panel id="reloadable">
+
+ <tc:popup id="popup">
+ <tc:box label="Details">
+ <tc:in label="Name" value="#{sheetController.selectedSolarObject.name}" required="true"/>
+ <tc:in label="Number" value="#{sheetController.selectedSolarObject.number}"/>
+ <tc:in label="Orbit" value="#{sheetController.selectedSolarObject.orbit}"/>
+ <tc:in label="Distance" value="#{sheetController.selectedSolarObject.distance}"/>
+ <tc:in label="Period" value="#{sheetController.selectedSolarObject.period}"/>
+ <tc:in label="Obliquity" value="#{sheetController.selectedSolarObject.incl}"/>
+ <tc:in label="Eccentricity" value="#{sheetController.selectedSolarObject.eccen}"/>
+ <tc:in label="Discoverer" value="#{sheetController.selectedSolarObject.discoverer}"/>
+ <tc:in label="Discover Year" value="#{sheetController.selectedSolarObject.discoverYear}"/>
+ <tc:button>
+ <tc:operation name="hide" for="popup"/>
+ </tc:button>
+ <tc:buttons>
+ <tc:button id="submit" label="Submit" action="#{popupController.closePopup1}">
+ <f:ajax execute="popup" render=":::example"/>
+ <tc:operation name="hide" for="popup"/>
+ </tc:button>
+ <tc:button id="cancel" label="Cancel" omit="true">
+ <tc:operation name="hide" for="popup"/>
+ </tc:button>
+ </tc:buttons>
+ </tc:box>
+ </tc:popup>
+
+ </tc:panel>
+
+ <tc:box id="detail" label="Details" rendered="#{sheetController.columnEventSample le 2}">
<tc:panel rendered="#{sheetController.selectedSolarObject != null}">
<tc:in id="name" label="Name" value="#{sheetController.selectedSolarObject.name}" required="true"/>
<tc:in label="Number" value="#{sheetController.selectedSolarObject.number}"/>