You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2011/10/17 22:32:48 UTC

svn commit: r1185360 - in /myfaces/tobago/trunk: tobago-example/tobago-example-demo/src/main/webapp/content/02/00/ tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/

Author: bommel
Date: Mon Oct 17 20:32:48 2011
New Revision: 1185360

URL: http://svn.apache.org/viewvc?rev=1185360&view=rev
Log:
master-detail example with <tc:columnEvent>
fixed rendered partially for columnEvent

Modified:
    myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/02/00/sheet-master-detail.xhtml
    myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/02/00/sheet-master-detail.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/02/00/sheet-master-detail.xhtml?rev=1185360&r1=1185359&r2=1185360&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/02/00/sheet-master-detail.xhtml (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/02/00/sheet-master-detail.xhtml Mon Oct 17 20:32:48 2011
@@ -41,14 +41,13 @@
         <tc:out value="#{luminary.name}" id="t_name"/>
       </tc:column>
       <tc:columnEvent event="click">
-						<tc:command actionListener="#{demo.selectLuminary}">
-							<tc:attribute name="renderedPartially" value=":page:detail" />
+						<tc:command actionListener="#{demo.selectLuminary}" renderedPartially=":page:detail">
 						</tc:command>
 					</tc:columnEvent>
     </tc:sheet>
 
-    <tc:panel id="detail" rendered="#{demo.currentSolarObject != null}">
-      <tx:in label="Name" value="#{demo.currentSolarObject.name}"/>
+    <tc:panel id="detail">
+      <tx:in label="Name" value="#{demo.currentSolarObject.name}" readonly="#{demo.currentSolarObject == null}"/>
     </tc:panel>
 
   </tc:panel>

Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js?rev=1185360&r1=1185359&r2=1185360&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js Mon Oct 17 20:32:48 2011
@@ -453,7 +453,7 @@ Tobago.Sheet.prototype.doSelection = fun
         var action = this.id + ":" + rowIndex + ":" + this.clickActionId;
         //LOG.debug("Action " + action);
         if (this.clickReloadComponentId && this.clickReloadComponentId.length > 0) {
-          Tobago.reloadComponent(srcElement, this.clickReloadComponentId[0], action)
+          Tobago.reloadComponent(srcElement, this.clickReloadComponentId, action)
         } else {
           Tobago.submitAction(srcElement, action);
         }
@@ -488,7 +488,7 @@ Tobago.Sheet.prototype.doDblClick = func
         var action = this.id + ":" + rowIndex + ":" + this.dblClickActionId;
         //LOG.debug("dblAction " + action);
         if (this.dblClickReloadComponentId && this.dblClickReloadComponentId.length > 0) {
-          Tobago.reloadComponent(srcElement, this.dblClickReloadComponentId[0], action)
+          Tobago.reloadComponent(srcElement, this.dblClickReloadComponentId, action)
         } else {
           Tobago.submitAction(srcElement, action);
         }