incubator-adffaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jwald...@apache.org
Subject svn commit: r450643 - /incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/html/layout/CorePanelAccordionRenderer.java
Date Thu, 28 Sep 2006 00:03:36 GMT
Author: jwaldman
Date: Wed Sep 27 17:03:35 2006
New Revision: 450643

URL: http://svn.apache.org/viewvc?view=rev&rev=450643
Log:
ADFFACES-199 fix panelAccordion component for ppr-disabled browsers like BlackBerry 4.0. Committed
for Piyush Hari.

Modified:
    incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/html/layout/CorePanelAccordionRenderer.java

Modified: incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/html/layout/CorePanelAccordionRenderer.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/html/layout/CorePanelAccordionRenderer.java?view=diff&rev=450643&r1=450642&r2=450643
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/html/layout/CorePanelAccordionRenderer.java
(original)
+++ incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/html/layout/CorePanelAccordionRenderer.java
Wed Sep 27 17:03:35 2006
@@ -1,12 +1,12 @@
 /*
  * Copyright  2005,2006 The Apache Software Foundation.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -488,12 +488,17 @@
     }
     else
     {
+      //PH: Previous Code had event set to 'show' (event:'show')
+      //at all times. As a result a showDetail item will 'show'
+      //but won't 'hide'. Therefore, I changed it to event:event.
       StringBuilder onClickHandlerBuff = new StringBuilder("submitForm('")
                                   .append(formName)
                                   .append("',")
                                   .append(validate)
-                                  .append(", {event:'show',source:'")
-                                  .append(detailItemId)
+                                  .append(", {event:'")
+	                           .append(event)
+	                           .append("',source:'")
+	                           .append(detailItemId)
                                   .append("'});return false;");
 
       onClickHandler = onClickHandlerBuff.toString();



Mime
View raw message