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 2013/02/19 17:11:11 UTC

svn commit: r1447788 - /myfaces/tobago/branches/tobago-1.5.x/tobago-example/tobago-example-demo/src/main/webapp/content/02-sheet/00/sheet-master-detail.xhtml

Author: lofwyr
Date: Tue Feb 19 16:11:11 2013
New Revision: 1447788

URL: http://svn.apache.org/r1447788
Log:
TOBAGO-1038: ResetInputActionListener to reset all EditableValueHolder in a page or in a subform or a part of the component tree 
- example

Modified:
    myfaces/tobago/branches/tobago-1.5.x/tobago-example/tobago-example-demo/src/main/webapp/content/02-sheet/00/sheet-master-detail.xhtml

Modified: myfaces/tobago/branches/tobago-1.5.x/tobago-example/tobago-example-demo/src/main/webapp/content/02-sheet/00/sheet-master-detail.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.5.x/tobago-example/tobago-example-demo/src/main/webapp/content/02-sheet/00/sheet-master-detail.xhtml?rev=1447788&r1=1447787&r2=1447788&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.5.x/tobago-example/tobago-example-demo/src/main/webapp/content/02-sheet/00/sheet-master-detail.xhtml (original)
+++ myfaces/tobago/branches/tobago-1.5.x/tobago-example/tobago-example-demo/src/main/webapp/content/02-sheet/00/sheet-master-detail.xhtml Tue Feb 19 16:11:11 2013
@@ -48,7 +48,9 @@
           <tc:out value="#{luminary.name}" id="t_name"/>
         </tc:column>
         <tc:columnEvent event="click">
-          <tc:command actionListener="#{demo.selectLuminary}" renderedPartially=":page:detail"/>
+          <tc:command actionListener="#{demo.selectLuminary}" renderedPartially=":page:detail" immediate="true">
+            <tc:resetInputActionListener/>
+          </tc:command>
         </tc:columnEvent>
       </tc:sheet>
     </tc:box>
@@ -59,7 +61,7 @@
         <f:facet name="layout">
           <tc:gridLayout rows="auto;auto;auto;auto;auto;auto;auto;auto;auto"/>
         </f:facet>
-        <tx:in label="Name" value="#{demo.currentSolarObject.name}"/>
+        <tx:in label="Name" value="#{demo.currentSolarObject.name}" required="true"/>
         <tx:in label="Number" value="#{demo.currentSolarObject.number}"/>
         <tx:in label="Orbit" value="#{demo.currentSolarObject.orbit}"/>
         <tx:in label="Distance" value="#{demo.currentSolarObject.distance}"/>