myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r691068 - /myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tabbedpane/HtmlTabbedPaneRenderer.java
Date Mon, 01 Sep 2008 21:43:24 GMT
Author: lu4242
Date: Mon Sep  1 14:43:24 2008
New Revision: 691068

URL: http://svn.apache.org/viewvc?rev=691068&view=rev
Log:
TOMAHAWK-1309 t:panelTab onclick attribute doesn't seem to work (Thanks to Paul Rivera)

Modified:
    myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tabbedpane/HtmlTabbedPaneRenderer.java

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tabbedpane/HtmlTabbedPaneRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tabbedpane/HtmlTabbedPaneRenderer.java?rev=691068&r1=691067&r2=691068&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tabbedpane/HtmlTabbedPaneRenderer.java
(original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tabbedpane/HtmlTabbedPaneRenderer.java
Mon Sep  1 14:43:24 2008
@@ -449,6 +449,10 @@
                 String inactiveSubStyleUserClass = tabbedPane.getInactiveSubStyleClass();
                 String onclickEvent = tab.getAttributes().get(HTML.ONCLICK_ATTR) != null
? (String) tab.getAttributes().get(HTML.ONCLICK_ATTR) : "";
                 
+                if(!("").equals(onclickEvent) && onclickEvent.charAt(onclickEvent.length()-1)
!=  ';') {
+                    onclickEvent += ";";
+                }
+                
                 writer.writeAttribute(HTML.ONCLICK_ATTR,
                                       onclickEvent
                                       + "return myFaces_showPanelTab("



Mime
View raw message